diff --git a/sim/Makefile b/sim/Makefile new file mode 100644 index 0000000..3869c30 --- /dev/null +++ b/sim/Makefile @@ -0,0 +1,24 @@ +ifdef seed + vcs_run_opts += +ntb_random_seed=${seed} +else + vcs_run_opts += +ntb_random_seed_automatic +endif + +VCS = vcs -full64 -sverilog +lint=TFIPC-L +v2k -debug_access+all -q -timescale=1ns/1ps +nospecify -l compile.log +SIMV = ./simv $(vcs_run_opts) -l sim.log +fsdb+delta +all:comp run + +comp: + ${VCS} -f files.f + +run: + ${SIMV} + +dbg: + verdi -sv -f files.f -top TB -nologo -ssf TB.fsdb & +file: + find ../ -name "*.*v" > files.f + +clean: + rm -rf DVE* simv* *log ucli.key verdiLog urgReport csrc novas.* *.fsdb *.dat *.daidir *.vdb *~ vfastLog + diff --git a/sim/files.f b/sim/files.f new file mode 100644 index 0000000..3666571 --- /dev/null +++ b/sim/files.f @@ -0,0 +1,20 @@ +../rtl/z_dsp/mult_C.v +../rtl/z_dsp/mult_x.v +../rtl/z_dsp/Trunc.v +../rtl/z_dsp/TailCorr_top.v +../rtl/z_dsp/IIR_top.v +../rtl/z_dsp/diff_p.v +../rtl/z_dsp/s2p_2.v +../rtl/z_dsp/IIR_Filter_p8.v +../rtl/z_dsp/IIR_Filter_p1.v +../rtl/ref/mult_C.v +../rtl/ref/FixRound.v +../rtl/ref/TailCorr_top.v +../rtl/ref/IIR_top.v +../rtl/ref/diff_p.v +../rtl/ref/s2p_2.v +../rtl/ref/IIR_Filter_p8.v +../rtl/model/DW02_mult.v + +tb_TailCorr_en.v +