Generate simulator commands from waveform

A

Anil

Guest
Hi,

I'm using modelsim and have a requirement of generating simulator
commands for a sequence of signals for which I have the waveforms.

Can anyone tell me how to do it ? Would appreciate any help.

Thanks,
-Anil
 
Anil wrote:
Hi,

I'm using modelsim and have a requirement of generating simulator
commands for a sequence of signals for which I have the waveforms.

Can anyone tell me how to do it ? Would appreciate any help.

Thanks,
-Anil
For every signal you have a waveform:

process
begin
signal<='0'; -- initial_value
wait for 347 ns; -- delay until value changes
signal <='1';
wait for 12 ns; -- delay until value changes
signal<='0';

(....)

wait; -- no more changes
end process;

For a square clock:

process
begin
clock<='0';
loop
wait for 5 ns; -- half clock period
clock<=not clock;
end loop;
end process;

Hope this is what you wanted...

Bets regards

Zara
 
Anil,
Can you elaborate on why would you require such a flow? I know of
many tools that can turn a VCD file to a HDL (Verilog/VHDL)
testbenches for easy replay. Also there are tools that can turn
timing diagrams to testbenches. The issue in converting them to sim
commands (as I see):

1. Sim commands are not portable across simulators
2. Inefficient - usually TCL tbs tend to be slower than HDL ones.
3. Debug - lot of us know how to debug HDL/HVL not TCL so well.

Having said all this, if you still insist to generate TCL commands, I
would recommend you to develop a PERL script to take a HDL TB
generated from a VCD and turn it to TCL. It is not that difficult.

Good Luck
Srini


--
Srinivasan Venkataramanan
Co-Author: SystemVerilog Assertions Handbook, http://www.abv-sva.org
Co-Author: Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition.
http://www.noveldv.com
I own my words and not my employer, unless specifically mentioned
"Anil" <adalwani@binghamton.edu> wrote in message
news:1126184281.936721.89030@f14g2000cwb.googlegroups.com...
Hi,

I'm using modelsim and have a requirement of generating simulator
commands for a sequence of signals for which I have the waveforms.

Can anyone tell me how to do it ? Would appreciate any help.

Thanks,
-Anil
 

Welcome to EDABoard.com

Sponsor

Back
Top