Cadence Mixed-Signal Circuit Design Environment User Guide
Running a Mixed-Signal Simulation
October 2003
169
Product Version 5.0
3. Copy the stimulus portion of the former
testfixture.template
file from the file in
which it was saved.
4. Make changes as needed to the new file displayed in the editing window.
5. Save the new
testfixture.template
file and close the editor.
The following example shows a flat
testfixture.template
stimulus file for Verilog FNL.
`timescale 100ps / 100ps
//Begins test module definition.
module test
//Defines registers.
reg [#/in_ref];
//Instantiates top block.
top top([#/feed_back],[#/in_ref]);
//Starts initial block.
//Commands are executed once
//at the beginning of each simulation.
initial
begin
//Monitors wires during simulation.
$monitor("%d in_ref=%b feed_back=%b up=%b
down=%b", $time, top.[#/in_ref],
top.[#/feed_back], top.[#/up],
top.[#/down];
//Forces nets during circuit initialization.
force top.[#/in_ref] = 0;/* net in_ref */
force top.[#/feed_back] = 0;/* net feed_back */
force top.[#/out2] = 1;/* net out2 */
force top.[#/out4] = 0;/* net out4 */
force top.[#/out5] = 0;/* net out5 */
force top.[#/out9] = 1;/* net out9 */
//Releases forced nets after 620 time units.
#620 release top.[#/feed_back];
release top.[#/out2];
release top.[#/out4];
release top.[#/out5];
release top.[#/out9];
//Ends initial block.