Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
766 Views

Modelsim Save Force Value

in Modelsim; Can i somehow save Clock value or Forced value of a wavesignal (including it's delay value)? because i don't want to reenter it every time i restart simulation.

0 Kudos
1 Reply
Highlighted
Valued Contributor III
2 Views

Re: Modelsim Save Force Value

 

--- Quote Start ---  

in Modelsim; Can i somehow save Clock value or Forced value of a wavesignal (including it's delay value)? because i don't want to reenter it every time i restart simulation. 

--- Quote End ---  

 

 

Yes, YOU CAN! ;-) 

 

1) 

If you have a .do or .tcl file for the simulation you can use for example: 

 

force -freeze sim: /topfpga_inst/startupreset 1 0  

For this way, it is easier to force the signal in the waveform and then just copy the line generated by Modelsim.  

 

or 2) 

You may also force signals within your testbench-file.  

 

 

library modelsim_lib; use modelsim_lib.util.all; .. signal_force("/synchron_tb/DUT/FbInt", "0" , 0 ns, freeze, open, 0); 

 

You need to check the Modelsim documentation for the second way.
0 Kudos