N
news.sunrise
Hi NG
Problem:
When simulating (Modelsim) one might want to set certain values differently
than for synthesis (Xilinx ISE).
Unfortunately it seems there's no possibility to have conditional code
blocks in vhdl depending on whether the code is read by a synthesizer or a
simulator.
Idea:
Tell Modelsim to call a preprocessor script that does some regexp on the
vhdl code before reading it. The value for simulation could be set in a
comment string.
This preprocessor could do the following:
change:
constant FOO : integer := 99999; --simValue(42)
to:
constant FOO : integer := 42;
I could write such a preprocessor, but how to integrate it?
Questions:
-How to tell Modelsim to call a script automatically and read the output of
the script?
-Is there a better solution?
Thanks for your help
Alain
Problem:
When simulating (Modelsim) one might want to set certain values differently
than for synthesis (Xilinx ISE).
Unfortunately it seems there's no possibility to have conditional code
blocks in vhdl depending on whether the code is read by a synthesizer or a
simulator.
Idea:
Tell Modelsim to call a preprocessor script that does some regexp on the
vhdl code before reading it. The value for simulation could be set in a
comment string.
This preprocessor could do the following:
change:
constant FOO : integer := 99999; --simValue(42)
to:
constant FOO : integer := 42;
I could write such a preprocessor, but how to integrate it?
Questions:
-How to tell Modelsim to call a script automatically and read the output of
the script?
-Is there a better solution?
Thanks for your help
Alain