24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Related tasks<br />

Limitations<br />

Example<br />

Name Type Description<br />

cancel_period integer, real, time Optional. Cancels the $signal_force comm<strong>and</strong><br />

after the specified period of time units.<br />

Cancellation occurs at the last simulation<br />

delta cycle of a time unit. A value of zero<br />

cancels the force at the end of the current time<br />

period. Default is -1. A negative value means<br />

that the force will not be cancelled.<br />

verbose integer Optional. Possible values are 0 or 1. Specifies<br />

whether you want a message reported in the<br />

Transcript stating that the value is being<br />

forced on the dest_object at the specified time.<br />

Default is 0, no message.<br />

$init_signal_driver (UM-429), $init_signal_spy (UM-432), $signal_release (UM-436)<br />

You cannot force bits or slices of a register; you can force only the entire register.<br />

Verilog memories (arrays of registers) are not supported.<br />

`timescale 1 ns / 1 ns<br />

module testbench;<br />

initial<br />

begin<br />

$signal_force("/testbench/uut/blk1/reset", "1", 0, 3, , 1);<br />

$signal_force("/testbench/uut/blk1/reset", "0", 40, 3, 200000, 1);<br />

end<br />

...<br />

endmodule<br />

The above example forces reset to a "1" from time 0 ns to 40 ns. At 40 ns, reset is forced<br />

to a "0", 200000 ns after the second $signal_force call was executed.<br />

$signal_force UM-435<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!