Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16597 Discussions

Modelsim Save Force Value

Altera_Forum
Honored Contributor II
1,474 Views

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
Altera_Forum
Honored Contributor II
710 Views

 

--- 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
Reply