Rename some variables

This commit is contained in:
abejgonzalez
2020-08-19 22:32:47 -07:00
parent 4f3319dc01
commit e5158cbe4c
2 changed files with 8 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ TRACING_CFLAGS := $(if $(filter $(VERILATOR_FST_MODE),0),,-DCY_FST_TRACE)
#---------------------------------------------------------------------------------------- #----------------------------------------------------------------------------------------
# we initially had --noassert for performance, but several modules use # we initially had --noassert for performance, but several modules use
# assertions, including dramsim, so we enable --assert by default # assertions, including dramsim, so we enable --assert by default
VMODE := \ VERILATOR_OPT_FLAGS := \
-O3 \ -O3 \
--x-assign fast \ --x-assign fast \
--x-initial fast \ --x-initial fast \
@@ -92,6 +92,8 @@ VMODE := \
# a crash, since 1000s of warnings are generated) # a crash, since 1000s of warnings are generated)
VERILOG_IP_VERILATOR_FLAGS := \ VERILOG_IP_VERILATOR_FLAGS := \
--unroll-count 256 \ --unroll-count 256 \
-Werror-PINMISSING \
-Werror-IMPLICIT \
-Wno-PINCONNECTEMPTY \ -Wno-PINCONNECTEMPTY \
-Wno-ASSIGNDLY \ -Wno-ASSIGNDLY \
-Wno-DECLFILENAME \ -Wno-DECLFILENAME \
@@ -122,7 +124,7 @@ PREPROC_DEFINES := \
VERILATOR_NONCC_OPTS = \ VERILATOR_NONCC_OPTS = \
$(RUNTIME_PROFILING_VFLAGS) \ $(RUNTIME_PROFILING_VFLAGS) \
$(VMODE) \ $(VERILATOR_OPT_FLAGS) \
$(PLATFORM_OPTS) \ $(PLATFORM_OPTS) \
$(TIMESCALE_OPTS) \ $(TIMESCALE_OPTS) \
$(MAX_WIDTH_OPTS) \ $(MAX_WIDTH_OPTS) \
@@ -136,13 +138,13 @@ VERILATOR_NONCC_OPTS = \
# gcc configuration/optimization # gcc configuration/optimization
#---------------------------------------------------------------------------------------- #----------------------------------------------------------------------------------------
# -flto slows down compilation on small-memory and breaks on firesim-manager # -flto slows down compilation on small-memory and breaks on firesim-manager
CMODE := -O3 CXX_OPT_FLAGS := -O3
VERILATOR_CXXFLAGS = \ VERILATOR_CXXFLAGS = \
$(CXXFLAGS) \ $(CXXFLAGS) \
$(RUNTIME_PROFILING_CFLAGS) \ $(RUNTIME_PROFILING_CFLAGS) \
$(TRACING_CFLAGS) \ $(TRACING_CFLAGS) \
$(CMODE) \ $(CXX_OPT_FLAGS) \
-std=c++11 \ -std=c++11 \
-D__STDC_FORMAT_MACROS \ -D__STDC_FORMAT_MACROS \
-DTEST_HARNESS=V$(VLOG_MODEL) \ -DTEST_HARNESS=V$(VLOG_MODEL) \

4
vcs.mk
View File

@@ -15,11 +15,11 @@ RESET_DELAY ?= 777.7
# gcc configuration/optimization # gcc configuration/optimization
#---------------------------------------------------------------------------------------- #----------------------------------------------------------------------------------------
# -flto slows down compilation on small-memory and breaks on firesim-manager # -flto slows down compilation on small-memory and breaks on firesim-manager
CMODE := -O3 -fbranch-probabilities -march=native CXX_OPT_FLAGS := -O3 -fbranch-probabilities -march=native
VCS_CXXFLAGS = \ VCS_CXXFLAGS = \
$(CXXFLAGS) \ $(CXXFLAGS) \
$(CMODE) \ $(CXX_OPT_FLAGS) \
-I$(RISCV)/include \ -I$(RISCV)/include \
-I$(dramsim_dir) \ -I$(dramsim_dir) \
-std=c++11 \ -std=c++11 \