User guide
9-12
Using the Old Command Line Interface (CLI)
module top;
reg a;
reg [31:0] b;
initial begin
a = 0;
b = 32’b0;
#10
if (a) b = 32’b0;
end
endmodule
% vcs +cli+2 a.v
<<Details of VCS compilation omitted.>>
% simv -s
$stop at time 0
cli_0 > scope
Current scope is top
cli_1 > show var
Reg a
Reg [31:0] b
cli_2 > once #1
cli_3 > .
Time break at time 1 breakpoint #1 tbreak ##1
cli_4 > print a
a: 0
cli_5 > set a=1
cli_6 > print a
a: 1
cli_7 > tbreak b
cli_8 > .
Value break time 10 breakpoint #2 tbreak top.b
cli_9 > print b
b: 00000001
cli_10 > quit
$finish at simulation time 10
V C S S i m u l a t i o n R e p o r t
Time: 10
CPU Time: 0.150 seconds; Data structure size: 0.0Mb