![]() |
|
|
|||||||
![]() |
VHDL - Generate simulator commands from waveform |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 Zara |
|
|
|
#3 |
|
Posts: n/a
|
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" <> wrote in message news: ups.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 > Srinivasan Venkataramanan |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Generate .aspx file and .cs file behind it | jyoti.bannigidad@gmail.co | Software | 0 | 09-18-2008 07:54 AM |