Skip to content

Commit

Permalink
sim: Fix verilator flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Sep 5, 2024
1 parent 923b15b commit f33109c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions target/common/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ VLT_FLAGS += -Wno-UNSIGNED
VLT_FLAGS += -Wno-UNOPTFLAT
VLT_FLAGS += -Wno-fatal
VLT_FLAGS += --unroll-count 1024
VLT_FLAGS += --threads $(VLT_NUM_THREADS)
VLT_FLAGS += --threads $(VLT_NUM_THREADS)
VLT_CFLAGS += -std=c++20 -pthread
VLT_CFLAGS += -I $(VLT_ROOT)/include -I $(VLT_ROOT)/include/vltstd -I $(VLT_FESVR)/include -I $(TB_DIR) -I ${MKFILE_DIR}test
VLT_CFLAGS += -I $(VLT_FESVR)/include -I $(TB_DIR) -I ${MKFILE_DIR}test

RISCV_MC_FLAGS ?= -disassemble -mcpu=snitch
ANNOTATE_FLAGS ?= -q --keep-time --addr2line=$(ADDR2LINE)
Expand Down
2 changes: 1 addition & 1 deletion target/common/verilator.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ vlt-flist:

$(BIN_DIR)/$(TARGET).vlt: $(VLT_SOURCES) $(TB_CC_SOURCES) $(VLT_CC_SOURCES) $(VLT_BUILDDIR)/lib/libfesvr.a | $(BIN_DIR)
$(VLT) $(shell $(BENDER) script verilator $(VLT_BENDER)) \
$(VLT_FLAGS) -Mdir $(VLT_BUILDDIR) \
$(VLT_FLAGS) --Mdir $(VLT_BUILDDIR) \
-CFLAGS "$(VLT_CFLAGS)" \
-LDFLAGS "$(VLT_LDFLAGS)" \
-j $(VLT_JOBS) \
Expand Down

0 comments on commit f33109c

Please sign in to comment.