reorder code to get rid of messy -1
This commit is contained in:
parent
f945acf712
commit
4dbcc568dc
@ -45,13 +45,14 @@ module TestDriver;
|
|||||||
integer stderr = 32'h80000002;
|
integer stderr = 32'h80000002;
|
||||||
always @(posedge clk)
|
always @(posedge clk)
|
||||||
begin
|
begin
|
||||||
trace_count = trace_count + 1;
|
|
||||||
`ifdef GATE_LEVEL
|
`ifdef GATE_LEVEL
|
||||||
if (verbose)
|
if (verbose)
|
||||||
begin
|
begin
|
||||||
$fdisplay(stderr, "C: %10d", trace_count-1);
|
$fdisplay(stderr, "C: %10d", trace_count);
|
||||||
end
|
end
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
|
trace_count = trace_count + 1;
|
||||||
if (!reset)
|
if (!reset)
|
||||||
begin
|
begin
|
||||||
if (max_cycles > 0 && trace_count > max_cycles)
|
if (max_cycles > 0 && trace_count > max_cycles)
|
||||||
|
Loading…
Reference in New Issue
Block a user