From 4dbcc568dc1ab93fa9f84ed2e2927504379597ab Mon Sep 17 00:00:00 2001 From: Scott Johnson Date: Fri, 12 Aug 2016 17:03:21 -0700 Subject: [PATCH] reorder code to get rid of messy -1 --- vsrc/TestDriver.v | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vsrc/TestDriver.v b/vsrc/TestDriver.v index 02d2cd54..92d61812 100644 --- a/vsrc/TestDriver.v +++ b/vsrc/TestDriver.v @@ -45,13 +45,14 @@ module TestDriver; integer stderr = 32'h80000002; always @(posedge clk) begin - trace_count = trace_count + 1; `ifdef GATE_LEVEL if (verbose) begin - $fdisplay(stderr, "C: %10d", trace_count-1); + $fdisplay(stderr, "C: %10d", trace_count); end `endif + + trace_count = trace_count + 1; if (!reset) begin if (max_cycles > 0 && trace_count > max_cycles)