This page describes parameters that reside in the HDL Code Generation > Global Settings > Coding Style tab of the Configuration Parameters dialog box.
`timescale
directivesSpecify use of compiler `timescale
directives in generated Verilog® code.
Default: On
Use compiler `timescale
directives in generated
Verilog code.
Suppress the use of compiler `timescale
directives in generated Verilog code.
The `timescale
directive provides a way of specifying
different delay values for multiple modules in a Verilog file. This setting does not affect
the generated test bench.
This option is enabled when the target language (specified by the Language option) is Verilog.
Property:
UseVerilogTimescale |
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
.
timescale
specificationSpecify the timescale that you want to use in the generated Verilog code.
Default:
`timescale 1 ns/1 ns
HDL Coder™ applies this option to the timescale directive in the generated Verilog code. You can customize the default timescale and specify a valid, compilable timescale directive. The Verilog language uses this directive to determine the time units and the precision for calculating delay values.
By default, both the time units and precision are 1ns
. For
example, if you customized the timescale to `timescale 1 ns/1
ps
, a delay unit becomes 1ns
and the value is
precise to the nearest 1 ps
.
This option is enabled when:
The target language (specified by the Language option) is Verilog.
The Use Verilog `timescale directives option is enabled.
Property:
Timescale |
Type: character vector |
Value: A character vector that is a valid timescale value |
Default:
`timescale 1 ns/1 ns |
Specify whether generated VHDL® code includes inline configurations.
Default: On
Include VHDL configurations in files that instantiate a component.
Suppress the generation of configurations and require user-supplied external configurations. Use this setting if you are creating your own VHDL configuration files.
HDL configurations can be either inline with the rest of the VHDL code for an entity or external in separate VHDL source files. By default, HDL Coder includes configurations for a model within the generated VHDL code. If you are creating your own VHDL configuration files, suppress the generation of inline configurations.
This option is enabled when the target language (specified by the Language option) is VHDL.
Property:
InlineConfigurations |
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
.
Specify use of syntax for concatenated zeros in generated VHDL code.
Default: On
Use the type-safe syntax,
'0' & '0'
, for concatenated zeros.
Typically, this syntax is preferred.
Use the syntax "000000...
" for concatenated
zeros. This syntax can be easier to read and more compact, but it
can lead to ambiguous types.
This option is enabled when the target language (specified by the Language option) is VHDL.
Property:
SafeZeroConcat |
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
.
Specify generation of obfuscated HDL code. By using obfuscation, you can share the HDL code with a third-party without revealing the intellectual property. Obfuscation reduces readability of the code. The generated HDL code does not have comments, newlines or spaces, and replaces identifier names with other random names.
Default: Off
Generate obfuscated HDL code.
Do not generate obfuscated HDL code.
To enable this parameter, the Generate HDL Code check box must be selected.
Property:
ObfuscateGeneratedHDLCode |
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
.
To generate obfuscated HDL code by using
makehdl
:
makehdl('dutname', 'ObfuscateGeneratedHDLCode', 'on')
To generate obfuscated HDL code by using
hdlset_param
:
hdlset_param('modelname', 'ObfuscateGeneratedHDLCode', 'on') makehdl('dutname')
Specify whether or not to include time and date information in the generated HDL file header.
Default: On
Include time/date stamp in the generated HDL file header.
-- ---------------------------------------------------- -- -- File Name: hdlsrc\symmetric_fir.vhd -- Created: 2011-02-14 07:21:36 --
Omit time/date stamp in the generated HDL file header.
-- ---------------------------------------------------- -- -- File Name: hdlsrc\symmetric_fir.vhd --
By omitting the time/date stamp in the file header, you can more easily determine if two HDL files contain identical code. You can also avoid redundant revisions of the same file when checking in HDL files to a source code management (SCM) system.
Property:
DateComment |
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 requirements comments as comments in code or code generation reports.
Default: On
If the model contains requirements comments, include them as comments in code or code generation reports. See Requirements Comments and Hyperlinks.
Do not include requirements as comments in code or code generation reports.
Property:
RequirementComments |
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
.