Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

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.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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