E
EdwardH
Guest
Hi
I am an experienced Verilog designer and am about to start
work with a company that uses VHDL. I have been studying VHDL
and am starting to get a feel for the language. It would be good however to
be able to relate features of Verilog with equivalents in VHDL.
A specific question relates to compiler directives and command
line arguments in Verilog i.e. 'ifdef and +define+
The application is for a testbench where I want to write code to print
specific information for debug which I don't want to be printed
when the testbench executes normally. e.g. in Verilog I can write
code such as:
'ifdef debug_mode
code to print lots of debug information
'endif
There can be many of these code segments throughout the testbench
and if I want to turn them on, in the compile script I would have:
+define+debug_mode
Is there an equivalent mechanism in VHDL?
Does any body know of documents that discuss such language
equivalents?
Thanks in advance, Edward
I am an experienced Verilog designer and am about to start
work with a company that uses VHDL. I have been studying VHDL
and am starting to get a feel for the language. It would be good however to
be able to relate features of Verilog with equivalents in VHDL.
A specific question relates to compiler directives and command
line arguments in Verilog i.e. 'ifdef and +define+
The application is for a testbench where I want to write code to print
specific information for debug which I don't want to be printed
when the testbench executes normally. e.g. in Verilog I can write
code such as:
'ifdef debug_mode
code to print lots of debug information
'endif
There can be many of these code segments throughout the testbench
and if I want to turn them on, in the compile script I would have:
+define+debug_mode
Is there an equivalent mechanism in VHDL?
Does any body know of documents that discuss such language
equivalents?
Thanks in advance, Edward