From 4c130a8d636e0448634a7710d96526a0ea2d9dbc Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Sun, 12 Nov 2023 00:07:33 +0000 Subject: [PATCH] Added back removed warnings to verilator since we have now fixed those issues --- system/Makefile | 2 +- system/system.v | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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