diff --git a/system/Makefile b/system/Makefile index e8ca364..4397a85 100644 --- a/system/Makefile +++ b/system/Makefile @@ -36,7 +36,7 @@ VERILATOR_OPTS += --cc --exe VERILATOR_OPTS += --trace-fst --threads 1 --autoflush #linter options -VERILATOR_OPTS += -Wall --Wno-DECLFILENAME -Wno-SYNCASYNCNET -Wno-MULTIDRIVEN +VERILATOR_OPTS += -Wall --Wno-DECLFILENAME #optimisation options VERILATOR_OPTS += -x-assign fast --x-initial fast diff --git a/system/system.v b/system/system.v index 320837d..5ae106d 100644 --- a/system/system.v +++ b/system/system.v @@ -117,7 +117,9 @@ end `ifdef CALCULATE_IPC +/* verilator lint_off MULTIDRIVEN */ reg [128:0] instruction_count; +/* verilator lint_on MULTIDRIVEN */ always @(new_instruction) begin instruction_count<=instruction_count+1; end @@ -139,7 +141,9 @@ end finish<=2'd1; end + /* verilator lint_off MULTIDRIVEN */ reg [1:0] finish; + /* verilator lint_on MULTIDRIVEN */ reg sane; reg [128:0] cycles; @@ -209,6 +213,7 @@ end `endif end end + `endif