User Guide: DSim Input Filename Examples

Modified on Tue, 18 Jun at 11:38 AM

User Guide: DSim Input Filename Examples

Each input filename is decomposed into one or more extensions, each starting with the . character. Both the primary and secondary extensions, if they exist, can be used to indicate information about the file contents.


  • The primary extension can be used to indicate that a file is compressed and to identify the type of compression used.
  • In the absence of compression, DSim uses the primary extension to decide which language specification to apply to the file.
  • When compression is present, DSim uses the secondary extension to decide which language specification to apply.
  • By default, DSim interprets the extension .v as Verilog and .sv as SystemVerilog. All other extensions are unknown and the file will be interpreted as Verilog.
  • To customize the list of recognized extensions, use the -sysvlog-ext and -vlog-ext command line options. For more information see the Common Options section. Including the . character in each extension is optional.

DVlcom uses the same methods of determining Verilog and SystemVerilog when parsing files.


DVhcom is only capable of parsing VHDL files so there is no need to distinguish the extensions.


Filename Options Assumed Language Compression
test.sv SystemVerilog
test.sv.gz SystemVerilog gzip
test.sv.bz2 SystemVerilog bzip2
test.sv.tmp.gz Verilog (default) gzip
test.SV Verilog (default)
test.SV -sysvlog-ext .SV SystemVerilog
test.SV.gz -sysvlog-ext .SV SystemVerilog gzip
test Verilog (default)
test.svh test.svp -sysvlog-ext svh:svp SystemVerilog
test.vh test.vp -vlog-ext vh:vp Verilog
test.vh.gz test.vp -vlog-ext vh:vp Verilog gzip or none

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article