Move vcs flags to vcs.mk | Misc. cleanup

This commit is contained in:
Abraham Gonzalez
2020-08-18 11:14:01 -07:00
parent 4e7b9d195f
commit 3b991f3ed7
6 changed files with 42 additions and 80 deletions

38
vcs.mk
View File

@@ -17,9 +17,37 @@ VCS_CC_OPTS = \
-CC "-std=c++11" \
-CC "$(EXTRA_SIM_CC_FLAGS)"
#----------------------------------------------------------------------------------------
# gcc configuration/optimization
#----------------------------------------------------------------------------------------
# -flto slows down compilation on small-memory and breaks on firesim-manager
CMODE := -O3 -fbranch-probabilities -march=native
VCS_CXXFLAGS = \
$(CXXFLAGS) \
$(CMODE) \
-I$(RISCV)/include \
-I$(dramsim_dir) \
-std=c++11 \
$(EXTRA_SIM_CXXFLAGS)
VCS_LDFLAGS = \
$(LDFLAGS) \
-L$(RISCV)/lib \
-Wl,-rpath,$(RISCV)/lib \
-L$(sim_dir) \
-L$(dramsim_dir) \
-lfesvr \
-ldramsim \
$(EXTRA_SIM_LDFLAGS)
VCS_CC_OPTS = \
-CFLAGS "$(VCS_CXXFLAGS)" \
-LDFLAGS "$(VCS_LDFLAGS)"
VCS_NONCC_OPTS = \
$(dramsim_lib) \
$(RISCV)/lib/libfesvr.a \
-notice \
-line \
+lint=all,noVCDE,noONGS,noUI \
-error=PCWM-L \
-error=noZMMCM \
@@ -27,7 +55,6 @@ VCS_NONCC_OPTS = \
-quiet \
-q \
+rad \
+v2k \
+vcs+lic+wait \
+vc+list \
-f $(sim_common_files) \
@@ -35,10 +62,9 @@ VCS_NONCC_OPTS = \
+v2k +verilog2001ext+.v95+.vt+.vp +libext+.v \
-debug_pp \
+incdir+$(build_dir) \
$(sim_vsrcs) \
+libext+.v
$(sim_vsrcs)
VCS_DEFINE_OPTS = \
PREPROC_DEFINES = \
+define+VCS \
+define+CLOCK_PERIOD=$(CLOCK_PERIOD) \
+define+RESET_DELAY=$(RESET_DELAY) \