7
Customizing Your Environment
This appendix covers the following topics:
For information on the SKILL functions associated with VHDL Toolbox, see Digital Design Netlisting and Simulation SKILL Reference.
Setting VHDL HNL Variables
The following table shows VHDL HNL variables, which VHDL netlister uses while netlisting a design. You can also set these variables in the .simrc file.
| Variable Name | Type | Value | Description |
|---|---|---|---|
hnlInhConnPrefix |
string |
"" |
|
hnlUserSimViewName |
string |
"" |
|
hnlUserStopCVList |
list |
("sample" "basic" "ieee") |
|
hnlVHDLBusRangeNotation |
string |
"Ascending"/"Descending"/"Auto" |
|
hnlVHDLMergeSignals |
boolean |
t/nil |
|
hnlVHDLCheckSameStopCellFromMultLibs |
boolean |
t/nil |
|
hnlVHDLConfigSpecForCommonMaster |
string |
" |
|
hnlVHDLDefaultClauseList |
list |
(("IEEE" "std_logic_1164" "all") ("STD")) |
|
hnlVHDLDefaultDataType |
string |
"bit" |
|
hnlVHDLDefaultInhPortDataType |
string |
"bit" |
|
hnlVHDLDefaultInhPortMode |
string |
"IN"/"OUT"/"INOUT" |
|
hnlVHDLDefFileExts |
list |
("vhd" "vhdl") |
|
hnlVHDLDonotUseCdsNmp |
boolean |
t/nil |
|
hnlVHDLEnforceVHDLViewList |
list |
("symbol_inh" "symbol_xxx") |
|
hnlVHDLGenTestBench |
string |
t/nil |
|
hnlVHDLIEEESyntax |
string |
"1076-1993" |
|
hnlVHDLInstanceBinding |
string |
"Direct"/"Configuration" |
|
hnlVHDLLibraryBinding |
string |
"Merge"/"Preserve" |
|
hnlVHDLConfigUseLibNameForStoppingCell |
boolean |
t/ni |
|
hnlVHDLMaxErrors |
int |
10 |
|
hnlVHDLMaxExtFileErrCount |
int |
1 |
|
hnlVHDLParseExtDataSeverity |
string |
"error" |
|
|
boolean |
t/nil |
|
hnlVHDLPriorityType |
list |
(?aType? ?bType?) |
|
hnlVHDLResetExternalVHDLData |
boolean |
t/nil |
|
hnlVHDLSingleNetlist |
boolean |
t/nil |
|
hnlVHDLSkipGenericWithNoDefaultValue |
boolean |
t/nil |
|
hnlVHDLSplitConfigEnabled |
boolean |
t/nil |
|
hnlVHDLSplitInstsInConfig |
string |
"" |
|
hnlVHDLTestBenchInstName |
string |
"dut" |
|
hnlVHDLTypeConflictSeverity |
string |
"error" | "warning" |
|
hnlVHDLTypeConversionFuncs |
list |
("typeA" "typeB" "fn_typeA2typeB" "fn_typeB2typeA" |
|
hnlVHDLTypeResolverDefs |
list |
"typeA" typeB" "typeC" |
|
hnlVHDLUserComment |
string |
"" |
|
hnlVHDLUserDataTypeList |
list |
(("std_logic" "std_logic_vector" "LOGIC" "’0’") ("std_ulogic" "std_ulogic_vector" "LOGIC" "’0’") ("bit" "bit_vector" "LOGIC" "’0’")) |
|
hnlVHDLVerboseMode |
boolean |
t/nil |
|
simPrintInhConnAttributes |
boolean |
t/nil |
|
simReNetlistAll |
boolean |
t/nil |
|
simResolveStopCellImplicitConns |
boolean |
t/nil |
|
simStopList |
list |
("symbol" "behavioral") |
|
simViewList |
list |
("stimulus" "schematic" "structural" "dataflow" "behavioral" "symbol") |
|
vhdlSimTestBenchFile |
string |
"test_bench.vhd" |
|
vhdlSimTestBenchLCV |
list |
("library-name" "cell-name" "view-name") |
|
.simrc file, you can also specify pre and post-processing functions hnlVHDLPreNetlistFunc() and hnlVHDLPostNetlistFunc(). For details, see “Customizing Pre- and Post-Processing Functions”.Setting VHDL CDSENV Variables
The following table shows VHDL variables, which VHDL netlister uses while netlisting a design. You can set these variables in the .cdsenv file.
| Variable Name | Type | Default Value | Possible Values | Description |
|---|---|---|---|---|
analyzeMode |
boolean |
nil |
|
|
busRangeNotation |
string |
"Auto" |
"Ascending" "Descending" |
|
caseSensitivity |
string |
"Converted using CDS NMP" |
"Case Preserved" |
|
configName |
string |
"config_vhdl" |
|
|
configSuffix |
string |
"cfg" |
|
|
defComment |
string |
"Netlist: Library=<libraryName>, |
|
|
defaultDataType |
string |
"bit" |
"bit" |
|
detailReport |
boolean |
nil |
|
|
elaborateMode |
boolean |
nil |
|
|
enforceVHDLBindingView |
string |
"symbol_inh" |
|
|
|
boolean |
t |
|
|
generateTestBench |
boolean |
nil |
|
|
instanceBinding |
string |
"Direct" |
"Direct" |
|
libraryBinding |
string |
"Merge" |
"Preserve" |
|
maxErrors |
int |
10 |
|
|
netMode |
cyclic |
"ReNetlist All" |
"Incremental" |
|
simViewName |
string |
"<None>" |
|
|
singleNetlist |
boolean |
t |
|
|
|
string |
"analogLib" |
|
|
splitConfiguration |
boolean |
nil |
|
|
stopLibList |
string |
"basic sample ieee" |
|
|
topLibraryName |
string |
"" |
|
|
topCellName |
string |
"" |
|
|
topViewName |
string |
"" |
|
|
runDir |
string |
"" |
|
|
stopViewList |
string |
"symbol behavior behavioral" |
|
|
switchViewList |
string |
"stimulus schematic structure structural dataflow behavior behavioral symbol" |
|
|
vhdlIEEESyntax |
string |
"1076-1993" |
"1076-1993" |
|
defGenericsList |
string |
"'((\"REAL\" \"1.0\") (\"INTEGER\" \"1\") (\"STRING\" \"\") (\"TIME\" \"1 ns\") (\"BOOLEAN\" \"true\"))" |
|
|
defDataTypeMappingList |
string |
"'((\"std_logic\" \"std_logic_vector\" \"LOGIC\" \"'0'\") (\"std_ulogic\" \"std_ulogic_vector\" \"LOGIC\" \"'0'\") (\"bit\" \"bit_vector\" \"LOGIC\" \"'0'\"))" |
|
|
defClauseList |
string |
"'((\"IEEE\" \"std_logic_1164\" \"all\") (\"STD\"))" |
|
|
defClauseList, defDataTypeMappingList, defGenericsList, and skipLibList CDSENV variables also accept values without a backslash and double quote \”. For example, both the settings below are valid:envSetVal("vhdl.oss" "skipLibList" 'string " '(( \"analogLib\" )) ")
envSetVal("vhdl.oss" "skipLibList" 'string "'(( analogLib))")
Setting xrun Variables
The following table shows the SKILL variables that are used for the xrun utility. You can also set these variables in the .simrc file.
.vhdlrc file in the run directory, you do not need to add these variables. The settings from .vhdlrc are used.| Variable Name | Type | Value | Description |
|---|---|---|---|
vhdlSimSimulator |
string |
”xrun” |
Specifies the simulator to be used by VHDL Toolbox. You can set it to |
vhdlSimVhdlFileExt |
string |
”.vhd,.vhdp,.vhdl,.vhdlp,.VHD,.VHDP,.VHDL,.VHDLP” |
|
vhdlSimVerilogFileExt |
string |
”.v,.V,.vp,.VP,.sv,.SV” |
|
vhdlSimLogFile |
string |
"file-name" |
|
vhdlSimOptions |
string |
"-ieee364" |
|
vhdlSimDebugObjectAccess |
string |
"r"/ "rw"/ "rwc" |
|
vhdlSimEnableLineDebug |
boolean |
t/nil |
|
vhdlSimSnapShot |
string |
nil |
|
vhdlSimNetlistandSimulate |
boolean |
t/nil |
Specifies that the design should be netlisted before simulation. |
vhdlSimCleanCompiledData |
boolean |
t/nil |
|
vhdlSimMode |
string |
"interactive"/ "batch" |
Specifies whether the simulation is run in interactive or batch mode. |
vhdlSimScriptFile |
string |
"file-name" |
Specifies name of the script file to be run by the simulator. |
vhdlSimIncludeTestBench |
boolean |
t/nil |
Specifies that the testbench specified in the simulation is to be included. |
Return to top