This section contains parameters in the Diagnostics option under Advanced tab in the Configuration Parameters dialog box. Select HDL Code Generation > Global Settings. To check for name conflicts in black box interfaces and for the presence of reals in the generated HDL code, use these parameters.
Specify whether to check for duplicate module or entity names in generated HDL code and black box interface HDL code.
Default: Warning
Do not check for black box subsystems that have the same HDL module name as a generated HDL module name.
Check for black box subsystems that have the same HDL module name as a generated HDL module name. Display a warning if matching names are found.
Check for black box subsystems that have the same HDL module name as a generated HDL module name. Display an error if matching names are found.
Property:
DetectBlackBoxNameCollision |
Type: character vector |
Value:
'None' | 'Warning' |
'Error' |
Default:
'Warning' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
For example, you can specify this property while generating HDL code for the
symmetric_fir
subsystem inside the
sfir_fixed
model using either of these methods.
Use hdlset_param
to set the parameter on the
model. Then generate HDL code using
makehdl
.
hdlset_param('sfir_fixed','DetectBlackBoxNameCollision','None') makehdl('sfir_fixed/symmetric_fir')
Pass the property as an argument to the
makehdl
function.
makehdl('sfir_fixed/symmetric_fir','DetectBlackBoxNameCollision','None')
Specify whether to check for reals in the generated HDL code.
Default: Error
Do not check for reals in the generated HDL code.
Checks and warns of presence of real data types in the generated HDL code. Real data types in the generated HDL code are not synthesizable on target FPGA devices.
Checks and generates an error if the generated HDL code uses real
data types. If you are generating code for simulation purposes and
not for synthesizing your design, you can change this setting to
Warning
or None
. To
generate synthesizable HDL code, set the Floating Point IP
Library to Native Floating
Point
.
Property:
TreatRealsInGeneratedCodeAs |
Type: character vector |
Value:
'None' | 'Warning' |
'Error' |
Default:
'Error' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
For example, you can specify this property while generating HDL code for the
symmetric_fir
subsystem inside the
sfir_fixed
model using either of these methods.
Use hdlset_param
to set the parameter on the
model. Then generate HDL code using
makehdl
.
hdlset_param('sfir_fixed','TreatRealsInGeneratedCodeAs','Warning') makehdl('sfir_fixed/symmetric_fir')
Pass the property as an argument to the
makehdl
function.
makehdl('sfir_fixed/symmetric_fir','TreatRealsInGeneratedCodeAs','Warning')