Skip to content

Commit

Permalink
mv compile.tcl to prep (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoling-yi authored Dec 2, 2024
1 parent ba13c49 commit a847bea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions target/snitch_cluster/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -354,17 +354,18 @@ bin/snitch_cluster.vlt: $(VLT_AR) $(VLT_COBJ) ${VLT_BUILDDIR}/lib/libfesvr.a
clean-vsim: clean-work
rm -rf bin/snitch_cluster.vsim bin/snitch_cluster.vsim.gui $(VSIM_BUILDDIR) vsim.wlf

vsim_preparation: $(GENERATED_DIR)/bootdata.cc work/lib/libfesvr.a
@echo "VSIM preparation done"

${VSIM_BUILDDIR}/compile.vsim.tcl:
$(VLIB) $(dir $@)
mkdir $(dir $@)
${BENDER} script vsim ${VSIM_BENDER} --vlog-arg="${VLOG_FLAGS} -work $(dir $@) " > $@
echo '${VLOG} -work $(dir $@) ${TB_CC_SOURCES} ${TB_ASM_SOURCES} -vv -ccflags "$(TB_CC_FLAGS)"' >> $@
echo 'return 0' >> $@

vsim_preparation: $(GENERATED_DIR)/bootdata.cc work/lib/libfesvr.a ${VSIM_BUILDDIR}/compile.vsim.tcl
@echo "VSIM preparation done"

# Build compilation script and compile all sources for Questasim simulation
bin/snitch_cluster.vsim: ${VSIM_BUILDDIR}/compile.vsim.tcl $(VSIM_SOURCES) ${TB_SRCS} ${TB_CC_SOURCES} ${TB_ASM_SOURCES} work/lib/libfesvr.a
$(VLIB) $(VSIM_BUILDDIR)
$(call QUESTASIM,tb_bin)

#######
Expand Down

0 comments on commit a847bea

Please sign in to comment.