From f6839d8e72b3d8dd8f69a521b46eb824d6e86b9b Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Mon, 18 Mar 2024 03:53:51 +0100 Subject: [PATCH] target: Disable common cells assertions in Verilator (#119) --- target/common/common.mk | 8 +++++--- target/snitch_cluster/Makefile | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target/common/common.mk b/target/common/common.mk index 96ca54f6b..2fe8c594f 100644 --- a/target/common/common.mk +++ b/target/common/common.mk @@ -47,7 +47,9 @@ MATCH_END := '/+incdir+/ s/$$/\/*\/*/' MATCH_BGN := 's/+incdir+//g' SED_SRCS := sed -e ${MATCH_END} -e ${MATCH_BGN} -VSIM_BENDER += -t test -t rtl -t simulation -t vsim +COMMON_BENDER_FLAGS += -t rtl + +VSIM_BENDER += $(COMMON_BENDER_FLAGS) -t test -t simulation -t vsim VSIM_SOURCES = $(shell ${BENDER} script flist ${VSIM_BENDER} | ${SED_SRCS}) VSIM_BUILDDIR ?= work-vsim VSIM_FLAGS += -t 1ps @@ -60,7 +62,7 @@ endif # VCS_BUILDDIR should to be the same as the `DEFAULT : ./work-vcs` # in target/snitch_cluster/synopsys_sim.setup -VCS_BENDER += -t test -t rtl -t simulation -t vcs +VCS_BENDER += $(COMMON_BENDER_FLAGS) -t test -t simulation -t vcs VCS_SOURCES = $(shell ${BENDER} script flist ${VCS_BENDER} | ${SED_SRCS}) VCS_BUILDDIR := work-vcs @@ -68,7 +70,7 @@ VCS_BUILDDIR := work-vcs FESVR ?= ${MKFILE_DIR}work FESVR_VERSION ?= 35d50bc40e59ea1d5566fbd3d9226023821b1bb6 -VLT_BENDER += -t rtl +VLT_BENDER += $(COMMON_BENDER_FLAGS) -DCOMMON_CELLS_ASSERTS_OFF VLT_SOURCES = $(shell ${BENDER} script flist ${VLT_BENDER} | ${SED_SRCS}) VLT_BUILDDIR := work-vlt VLT_FESVR = $(VLT_BUILDDIR)/riscv-isa-sim diff --git a/target/snitch_cluster/Makefile b/target/snitch_cluster/Makefile index 299c602e1..77fa3cbbb 100644 --- a/target/snitch_cluster/Makefile +++ b/target/snitch_cluster/Makefile @@ -61,9 +61,7 @@ CFG = cfg/lru.hjson # Simulator options # ##################### -VSIM_BENDER += -t snitch_cluster -VLT_BENDER += -t snitch_cluster -VCS_BENDER += -t snitch_cluster +COMMON_BENDER_FLAGS += -t snitch_cluster QUESTA_64BIT = -64 VLOG_64BIT = -64