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.

UM-432 17 - Signal Spy<br />

$init_signal_spy<br />

Call only once<br />

Syntax<br />

Returns<br />

Arguments<br />

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

The $init_signal_spy() system task mirrors the value of a VHDL signal or Verilog register/<br />

net (called the src_object) onto an existing VHDL signal or Verilog register (called the<br />

dest_object). This allows you to reference signals, registers, or nets at any level of hierarchy<br />

from within a Verilog module (e.g., a testbench).<br />

The $init_signal_spy system task only sets the value onto the destination signal <strong>and</strong> does<br />

not drive or force the value. Any existing or subsequent drive or force of the destination<br />

signal, by some other means, will override the value set by $init_signal_spy.<br />

The $init_signal_spy system task creates a persistent relationship between the source <strong>and</strong><br />

the destination signal. Hence, you need to call $init_signal_spy only once for a particular<br />

pair of signals. Once $init_signal_spy is called, any change on the source signal will mirror<br />

on the destination signal until the end of the simulation.<br />

We recommend that you place all $init_signal_spy tasks in a Verilog initial block. See the<br />

example below.<br />

Nothing<br />

$init_signal_spy(src_object, dest_object, verbose)<br />

Name Type Description<br />

src_object string Required. A full hierarchical path (or relative<br />

path with reference to the calling block) to a<br />

VHDL signal or Verilog register/net. Use the<br />

path separator to which your simulation is set<br />

(i.e., "/" or "."). A full hierarchical path must<br />

begin with a "/" or ".". The path must be<br />

contained within double quotes.

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

Saved successfully!

Ooh no, something went wrong!