WIP: Add the ability to generate a hammer-sim config for gate-level sims
Still need to work on the asm-test/benchmark integration
This commit is contained in:
35
vcs.mk
Normal file
35
vcs.mk
Normal file
@@ -0,0 +1,35 @@
|
||||
PERMISSIVE_ON=+permissive
|
||||
PERMISSIVE_OFF=+permissive-off
|
||||
|
||||
WAVEFORM_FLAG=+vcdplusfile=$(sim_out_name).vpd
|
||||
|
||||
VCS_CC_OPTS = \
|
||||
-CC "-I$(VCS_HOME)/include" \
|
||||
-CC "-I$(RISCV)/include" \
|
||||
-CC "-std=c++11"
|
||||
|
||||
VCS_NONCC_OPTS = \
|
||||
$(RISCV)/lib/libfesvr.a \
|
||||
+lint=all,noVCDE,noONGS,noUI \
|
||||
-error=PCWM-L \
|
||||
-timescale=1ns/10ps \
|
||||
-quiet \
|
||||
-q \
|
||||
+rad \
|
||||
+v2k \
|
||||
+vcs+lic+wait \
|
||||
+vc+list \
|
||||
-f $(sim_common_files) \
|
||||
-sverilog \
|
||||
+incdir+$(build_dir) \
|
||||
$(sim_vsrcs) \
|
||||
+libext+.v
|
||||
|
||||
VCS_DEFINE_OPTS = \
|
||||
+define+CLOCK_PERIOD=1.0 \
|
||||
+define+PRINTF_COND=$(TB).printf_cond \
|
||||
+define+STOP_COND=!$(TB).reset \
|
||||
+define+RANDOMIZE_MEM_INIT \
|
||||
+define+RANDOMIZE_REG_INIT \
|
||||
+define+RANDOMIZE_GARBAGE_ASSIGN \
|
||||
+define+RANDOMIZE_INVALID_ASSIGN
|
||||
Reference in New Issue
Block a user