rm race condition on trace_count
This commit is contained in:
parent
ceff6dd0c8
commit
f945acf712
@ -45,6 +45,13 @@ 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
|
||||||
|
if (verbose)
|
||||||
|
begin
|
||||||
|
$fdisplay(stderr, "C: %10d", trace_count-1);
|
||||||
|
end
|
||||||
|
`endif
|
||||||
if (!reset)
|
if (!reset)
|
||||||
begin
|
begin
|
||||||
if (max_cycles > 0 && trace_count > max_cycles)
|
if (max_cycles > 0 && trace_count > max_cycles)
|
||||||
@ -70,17 +77,6 @@ module TestDriver;
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
always @(posedge clk)
|
|
||||||
begin
|
|
||||||
trace_count = trace_count + 1;
|
|
||||||
`ifdef GATE_LEVEL
|
|
||||||
if (verbose)
|
|
||||||
begin
|
|
||||||
$fdisplay(stderr, "C: %10d", trace_count-1);
|
|
||||||
end
|
|
||||||
`endif
|
|
||||||
end
|
|
||||||
|
|
||||||
TestHarness testHarness(
|
TestHarness testHarness(
|
||||||
.clk(clk),
|
.clk(clk),
|
||||||
.reset(reset),
|
.reset(reset),
|
||||||
|
Loading…
Reference in New Issue
Block a user