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:
Colin Schmidt
2020-02-27 16:34:39 -08:00
parent 499f23997d
commit f3d1bb8219
3 changed files with 149 additions and 5 deletions

35
vcs.mk Normal file
View 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