Professional Documents
Culture Documents
Testbench: Yogesh Tiwari Assistant Professor Cspit, Charusat
Testbench: Yogesh Tiwari Assistant Professor Cspit, Charusat
Yogesh Tiwari
Assistant Professor
CSPIT, CHARUSAT
MANUAL SIMULATION
FORCE INPUTS
LARGE INPUT
CANT VERIFY ALL THE POSSIBILITIES ON INPUT IN ONE
SIMULATION
TestBench CHANCES OF MANUAL ERROR (Design gets False
Functional Verification Pass)
$dumpfile (dlatch.vcd,d_latch);
TESTBENCH
simulator
$dumpvars (0,module name);
directives
$dumpvars(1, a,b,c,sum,carry)
$dumpvars
TESTBENCH
simulator
directives
#50 $ dumpoff;
$dumpoff
TESTBENCH
simulator
directives
#75 $ dumpon;
$dumpon
TESTBENCH
simulator
directives #100 $ finish;
whenever the current simulation time which is held in
the variable dollar time this equals to 100 or is
$finish exceeding 100 or it is greater then stopped simulation
TESTBENCH
D LATCH
TESTBENCH
D LATCH