# How to dump multiple vcd files?

Status
Not open for further replies.

#### 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
run 5 ns
vcd flush
}

Any Suggestion?

#### rca

1-You could rerun the simulation as many you need different vdd files.
2-You generate only one vcd file, but when you used it you read only the part of the vcd you need.
3- in modelsim you could saved the simulation at different point of the simulation and restart from this one.

ebrahimi.khoy

Points: 2