Forum Discussion

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

ModelSim - Force statement in testbench

How can I force a node in the vhdl code during simulation.

tried this in test bench, no luck, get unknown identifier.

nc_force ("I1:mode1", '1');

I can do i manually in the modelsim window:

force -freeze I1\mode1 1

I would prefer have the command in the testbench file

2 Replies

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

    nc_force is a Cadence specific library function

    I don't think it is supported in ModelSim

    In ModelSim, it has its own version of nc_force

    Look up signal_spy in ModelSim manual