ebrahimi.khoy
Member level 3
I want to dump the state of a design in each cycle in different files (at least 10000 cycles). In this regard, I should switch bitween vcd files. Unfortunatly, modelsim doesn't support closing a vcd file and opening a new one. I wrote the following script to do this.
But it is too time consuming since for each cycle I should run the processor form starting point.
for {set i 0} {$i < 1000} {incr i} {
restore mibenchqsort_0us
run [ expr { $i*20 } ] ns
run 10 ns
vcd file VCD_files/vcd_clk$i.vcd
vcd add /orpsoc_testbench/dut/or1200_synth0/*
run 5 ns
vcd flush
}
Any Suggestion?
But it is too time consuming since for each cycle I should run the processor form starting point.
for {set i 0} {$i < 1000} {incr i} {
restore mibenchqsort_0us
run [ expr { $i*20 } ] ns
run 10 ns
vcd file VCD_files/vcd_clk$i.vcd
vcd add /orpsoc_testbench/dut/or1200_synth0/*
run 5 ns
vcd flush
}
Any Suggestion?