Skip to content

Commit

Permalink
issue sld-columbia#93: update links to prom and ram images when switc…
Browse files Browse the repository at this point in the history
…hing CPU core selection
  • Loading branch information
paulmnt authored and davide-giri committed May 10, 2021
1 parent f8d2e14 commit d30f8ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
10 changes: 4 additions & 6 deletions utils/make/modelsim.mk
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,17 @@ endif
@cd modelsim; \
echo $(SPACES)"vmake > vsim.mk"; \
vmake 2> /dev/null > vsim.mk; \
if ! test -e prom.srec; then \
ln -s $(SOFT_BUILD)/prom.srec; \
fi; \
if ! test -e ram.srec; then \
ln -s $(SOFT_BUILD)/ram.srec; \
fi; \
cd ../;

sim-compile: socketgen check_all_srcs modelsim/vsim.mk soft
@for dat in $(DAT_SRCS); do \
cp $$dat modelsim; \
done;
$(QUIET_MAKE)make -C modelsim -f vsim.mk
@cd modelsim; \
rm -f prom.srec ram.srec; \
ln -s $(SOFT_BUILD)/prom.srec; \
ln -s $(SOFT_BUILD)/ram.srec;

sim: sim-compile
@cd modelsim; \
Expand Down
10 changes: 4 additions & 6 deletions utils/make/ncsim.mk
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ endif
echo $(SPACES)"$(NCLOG) $$rtl"; \
$(NCLOG) -work work $$rtl || exit; \
done; \
if ! test -e prom.srec; then \
ln -s $(SOFT_BUILD)/prom.srec; \
fi; \
if ! test -e ram.srec; then \
ln -s $(SOFT_BUILD)/ram.srec; \
fi; \
echo $(SPACES)"$(NCELAB) $(SIMTOP) $(EXTRA_SIMTOP)"; \
$(NCELAB) $(SIMTOP) $(EXTRA_SIMTOP) && touch ncready; \
cd ../;
Expand All @@ -119,6 +113,10 @@ ncsim-compile: socketgen check_all_srcs soft incisive/ncready incisive/ncsim.in
echo $(SPACES)"$(NCUPDATE) $(SIMTOP)"; \
$(NCUPDATE) $(SIMTOP); \
cd ../;
@cd incisive; \
rm -f prom.srec ram.srec; \
ln -s $(SOFT_BUILD)/prom.srec; \
ln -s $(SOFT_BUILD)/ram.srec;

ncsim: ncsim-compile
@cd incisive; \
Expand Down
10 changes: 4 additions & 6 deletions utils/make/xmsim.mk
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ endif
echo $(SPACES)"$(XMLOG) -work work $$rtl"; \
$(XMLOG) -work work $$rtl || exit; \
done; \
if ! test -e prom.srec; then \
ln -s $(SOFT_BUILD)/prom.srec; \
fi; \
if ! test -e ram.srec; then \
ln -s $(SOFT_BUILD)/ram.srec; \
fi; \
echo $(SPACES)"$(XMELAB) $(SIMTOP) $(EXTRA_SIMTOP)"; \
$(XMELAB) $(SIMTOP) $(EXTRA_SIMTOP) && touch xmready; \
cd ../;
Expand All @@ -118,6 +112,10 @@ xmsim-compile: socketgen check_all_srcs soft xcelium/xmready xcelium/xmsim.in
echo $(SPACES)"$(XMUPDATE) $(SIMTOP)"; \
$(XMUPDATE) $(SIMTOP); \
cd ../;
@cd xcelium; \
rm -f prom.srec ram.srec; \
ln -s $(SOFT_BUILD)/prom.srec; \
ln -s $(SOFT_BUILD)/ram.srec;

xmsim: xmsim-compile
@cd xcelium; \
Expand Down

0 comments on commit d30f8ee

Please sign in to comment.