Package: coder
HDL codegen
configuration object
A coder.HdlConfig
object contains the configuration
parameters that the HDL codegen
function requires
to generate HDL code. Use the -config
option to
pass this object to the codegen
function.
creates a hdlcfg
=
coder.config('hdl')coder.HdlConfig
object
for HDL code generation.
Basic
|
Minimum bit width for shared adders, specified as a positive integer. If Values: integer greater than or equal to 2 | ||||||||
|
Specify active clock edge. Values: | ||||||||
|
Priority for distributed pipelining algorithm.
Values: | ||||||||
|
Generate an HDL test bench, specified as a Values: | ||||||||
|
HDL coding standard to follow and check when generating code. Generates a compliance report showing errors, warnings, and messages. Values: | ||||||||
|
HDL coding standard rules and report customizations, specified
using HDL Coding Standard Customization Properties. If you want to customize the
coding standard rules and report, you must set Value: HDL coding standard customization object | ||||||||
|
HDL lint tool script to generate. Values: | ||||||||
|
HDL lint script initialization name, specified as a character vector. | ||||||||
|
HDL lint script command. If you set custom_lint_tool_command -option1 -option2 %s | ||||||||
|
HDL lint script termination name, specified as a character vector. | ||||||||
|
Specify whether to initialize all
block RAM to Values: | ||||||||
|
Specify whether to include inline configurations in generated VHDL code. When When Values: | ||||||||
|
Loop optimization in generated code. See Optimize MATLAB Loops.
| ||||||||
|
Specify whether to omit generation of clock enable logic. When When | ||||||||
|
Specify maximum input bit width for hardware multipliers. If a multiplier input bit width is greater than this threshold, HDL Coder™ splits the multiplier into smaller multipliers. To improve your hardware mapping results, set this threshold to the input bit width of the DSP or multiplier hardware on your target device. Values: integer greater than or equal to 2 | ||||||||
|
Minimum bit width for shared multipliers, specified as a positive integer. If Values: integer greater than or equal to 2 | ||||||||
|
Generate instantiable HDL code modules from functions. Values: | ||||||||
|
Prevent distributed pipelining from moving design delays or
allow distributed pipelining to move design delays, specified as a Persistent variables and Values: | ||||||||
|
Share adders, specified as a If Values: | ||||||||
|
Share multipliers, specified as a If Values: | ||||||||
|
Simulate generated code, specified as a Values: | ||||||||
|
Maximum number of simulation iterations during test bench generation, specified as an integer. This property affects only test bench generation, not simulation during fixed-point conversion. Values: unlimited (default) | positive integer | ||||||||
|
Simulation tool name. Values: | ||||||||
|
Synthesis tool name. Values: | ||||||||
|
Synthesis target chip family name, specified as a character vector. Values: | ||||||||
|
Synthesis target device name, specified as a character vector. Values: | ||||||||
|
Synthesis target package name, specified as a character vector. Values: | ||||||||
|
Synthesis target speed, specified as a character vector. Values: | ||||||||
|
Synthesize generated code or not, specified as a Values: | ||||||||
|
Target language of the generated code. Values: | ||||||||
|
Test bench function name, specified as a character vector. You must specify a test bench. Values: | ||||||||
|
Timing controller architecture.
| ||||||||
|
Postfix to append to design name to form name of timing controller, specified as a character vector. Values: | ||||||||
|
Create and use data files for reading and writing test bench input and output data. Values: | ||||||||
|
Target library name for generated VHDL® code, specified as a character vector. Values: |
Cosimulation
|
Generate a cosimulation test bench or not, specified as a Values: |
|
Simulate generated cosimulation test bench, specified as a Values: |
|
Time (in clock cycles) between deassertion of reset and assertion of clock enable. Values: |
|
The number of nanoseconds the clock is high. Values: |
|
The number of nanoseconds the clock is low. Values: |
|
The hold time for input signals and forced reset signals, specified in nanoseconds. Values: |
|
Log and plot outputs of the reference design function and HDL simulator. Values: |
|
Specify time (in clock cycles) between assertion and deassertion of reset. Values: |
|
HDL simulator run mode during simulation. When in Batch mode, you do not see the HDL simulator GUI, and the HDL simulator automatically shuts down after simulation. Values: |
|
HDL simulator for the generated cosim test bench. Values: |
FPGA-in-the-loop
|
Generate a FIL test bench or not, specified as a Values: |
|
Simulate generated cosimulation test bench, specified as a Values: |
|
FPGA board name, specified as a character vector. You must override the default value and specify a valid board name. Values: |
|
IP address of the FPGA board, specified as a character vector. You must enter a valid IP address. Values: |
|
MAC address of the FPGA board, specified as a character vector. You must enter a valid MAC address. Values: |
|
List of additional source files to include, specified as a character vector. Separate file names with a semi-colon (";"). Values: |
|
Log and plot outputs of the reference design function and FPGA. Values: |
You can also generate HDL code from MATLAB code using the HDL Workflow Advisor. For more information, see Basic HDL Code Generation and FPGA Synthesis from MATLAB.