The top-level HDL Code Generation pane contains buttons that initiate code generation and compatibility checking, and sets code generation parameters.
The buttons in the HDL Code Generation pane perform functions related to code generation. These buttons are:
Generate: Initiates code generation
for the system selected in the Generate HDL for menu.
See also makehdl . |
Run Compatibility Checker: Invokes
the compatibility checker to examine the system selected in the Generate
HDL for menu for compatibility problems. See also checkhdl . |
Browse: Lets you navigate to and select the target folder to which generated code and script files are written. The path to the target folder is entered into the Folder field. |
Restore Factory Defaults: Sets model parameters to their default values. |
Select the subsystem or model from which code is generated. The list includes the path to the root model and to subsystems in the model.
Default: The root model is selected.
Pass
in the path to the model or subsystem for which code is to be generated
as the first argument to makehdl
.
Select the language (VHDL® or Verilog®) in which code is generated. The selected language is referred to as the target language.
Default: VHDL
VHDL
Generate VHDL code.
Verilog
Generate Verilog code.
Property: TargetLanguage |
Type: character vector |
Value: 'VHDL' | 'Verilog' |
Default: 'VHDL' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
Enter a path to the folder into which code is generated. Alternatively, click Browse to navigate to and select a folder. The selected folder is referred to as the target folder.
Default: The default target
folder is a subfolder of your working folder, named hdlsrc
.
Property: TargetDirectory |
Type: character vector |
Value: A valid path to your target folder |
Default: 'hdlsrc' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
Enable or disable HDL code generation for the model.
Default: On
Generate HDL code.
Do not generate HDL code.
Property: GenerateHDLCode |
Type: character vector |
Value: 'on' | 'off' |
Default: 'on' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
Enable or disable generation of a validation model that verifies the functional equivalence of the original model with the generated model. The validation model contains both the original and the generated DUT models.
If you enable generation of a validation model, also enable delay balancing to keep the generated DUT model synchronized with the original DUT model. Validation fails when there is a mismatch between delays in the original DUT model and delays in the generated DUT model.
Default: Off
Generate the validation model.
Do not generate the validation model.
Property: GenerateValidationModel |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
Enable or disable generation of an HTML code generation report with hyperlinks from code to model and model to code.
Default: Off
Create and display an HTML code generation report. See Create and Use Code Generation Reports.
Do not create an HTML code generation report.
Property: Traceability |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
Enable or disable generation of an HTML resource utilization report
Default: Off
Create and display an HTML resource utilization report. The report contains information about the number of hardware resources (multipliers, adders, registers) used in the generated HDL code. The report includes hyperlinks to the referenced blocks in the model. See Create and Use Code Generation Reports.
Do not create an HTML resource utilization report.
Property: ResourceReport |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
Specify whether to generate a highlighting script that shows the estimated critical path.
Default: Off
Generate a highlighting script that shows the estimated critical path.
The highlighting script is displayed as a link you can click to highlight the estimated critical path in the generated model. If your design contains blocks without timing information, another highlighting script is generated to highlight those blocks.
Do not calculate the estimated critical path.
Property: CriticalPathEstimation |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
Enable or disable generation of an HTML optimization report
Default: Off
Create and display an HTML optimization report. The report contains information about the results of streaming, sharing, and distributed pipelining optimizations that were implemented in the generated code. The report includes hyperlinks back to referenced blocks, subsystems, or validation models.See Create and Use Code Generation Reports.
Do not create an HTML optimization report.
Property: OptimizationReport |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
Include the model Web view in the code generation report to navigate between the code and model within the same window. You can share your model and generated code outside of the MATLAB environment. You must have a Simulink® Report Generator™ license to include a Web view of the model in the code generation report.
Default: Off
Include model Web view in the code generation report.
Omit model Web view in the code generation report.
Parameter: GenerateWebview |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
To set this property, use hdlset_param
or makehdl
. To view the property value,
use hdlget_param
.