4.7.1 Default DVT Compatibility Mode
The
+dvt_init+dvt directive resets the builder to the dvt default state.
File Extension to Language Syntax Mapping
Language Syntax for Unmapped Extensions: Skip unmapped extensions.
Language Syntax for Included Files: Included files are parsed as specified by the extension mapping.
Mode Specific Directives
Specifying a <syntax>
To specify the <syntax> for the directives above, one should use any of the following strings, case-insensitive:
1364-2001-noconfig, Verilog_2001_noconfig
1800-2005, SystemVerilog_2005
1800-2009, SystemVerilog_2009
1800-2012, SystemVerilog_2012, SystemVerilog
1076.1-2007, VHDL_AMS_2007
1076-2008, VHDL_2008, VHDL
The dot (.) for specifying <ext> is optional. For example
+dvt_ext_map+verilog_1364_1995+.svh and
+dvt_ext_map+verilog_1364_1995+svh are equivalent.
You can specify more extensions at once, for example
+dvt_ext_map+verilog_1364_1995+.svh+svp.
When several directives change the syntax of a specific <ext>, the last one wins.
Examples
+dvt_init+dvt // By default .c are skipped and .v are parsed with Verilog 2001 syntax
+dvt_ext_map+SystemVerilog_2012+.v+.c // Now .c and .v are parsed with SystemVerilog 2012
Note Every time you re-map an already mapped extension, DVT will warn you. For the example above, you get the following warnings:
.v was previously mapped to Verilog_2001
.c was previously mapped to Skip
+dvt_init+dvt // By default .vp is parsed with SystemVerilog 2012.
+dvt_ext_unmap+.vp // Because by default the unmapped extensions are skipped, .vp files will be skipped
+dvt_init+dvt // By default the unmapped extensions are skipped
+dvt_ext_unmapped_syntax+Verilog_95 // Now unmapped extensions, for example .foo, will be parsed as Verilog 95
+dvt_init+dvt
+dvt_ext_unmap_all // All files are skipped
+dvt_ext_unmapped_syntax+Verilog_95 // Compile all files with unmapped extensions as Verilog 95
+dvt_ext_map+skip+.cpp // Skip .cpp files
+dvt_ext_map+SystemVerilog_95+.sv // Compile .sv as SystemVerilog
+dvt_ext_map+VHDL_1076_1_1999+.vhd // Compile .vhd as VHDL-AMS
+dvt_init+dvt
+dvt_ext_unmap_all // All files are skipped
+dvt_ext_unmapped_syntax+SystemVerilog // All files are parsed as SystemVerilog