mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-23 13:27:16 -04:00
commit
907ed826c8
1 changed files with 18 additions and 5 deletions
|
@ -21,6 +21,7 @@ export MAXCORES ?= 1
|
|||
export MAXOPT ?= 0
|
||||
export DRIVE ?= FLOP
|
||||
export USESRAM ?= 1
|
||||
export USETOPO ?= 0
|
||||
|
||||
time := $(shell date +%F-%H-%M)
|
||||
hash := $(shell git rev-parse --short HEAD)
|
||||
|
@ -30,8 +31,6 @@ export SAIFPOWER ?= 0
|
|||
OLDCONFIGDIR ?= ${WALLY}/config
|
||||
export CONFIGDIR ?= $(OUTPUTDIR)/config
|
||||
|
||||
|
||||
|
||||
default:
|
||||
@echo " Basic synthesis procedure for Wally:"
|
||||
@echo " Invoke with make synth"
|
||||
|
@ -51,6 +50,18 @@ DIRS = $(DIRS32) $(DIRS64)
|
|||
|
||||
configs: $(CONFIG)
|
||||
$(CONFIG):
|
||||
ifeq ($(USETOPO), 0))
|
||||
ifeq ($(TECH), tsmc28psyn))
|
||||
@echo "Bad configuration: you cannot use physical synthesis without tsmc28psyn and usetopo (i.e., -topo)"
|
||||
exit 1
|
||||
endif
|
||||
endif
|
||||
ifeq ($(USETOPO), 1))
|
||||
ifneq ($(TECH), tsmc28psyn))
|
||||
@echo "Bad configuration: you cannot use usetopo (i.e., -topo) without tsmc28psyn"
|
||||
exit 1
|
||||
endif
|
||||
endif
|
||||
@echo $(CONFIG)
|
||||
cp -r $(OLDCONFIGDIR)/shared/*.vh $(CONFIGDIR)
|
||||
cp -r $(OLDCONFIGDIR)/$(CONFIG)/* $(CONFIGDIR)
|
||||
|
@ -116,15 +127,17 @@ mkdirecs:
|
|||
@mkdir -p $(OUTPUTDIR)/mapped
|
||||
@mkdir -p $(OUTPUTDIR)/unmapped
|
||||
|
||||
|
||||
synth: mkdirecs configs rundc clean
|
||||
|
||||
rundc:
|
||||
ifeq ($(USETOPO), 0)
|
||||
dc_shell-xg-t -64bit -f scripts/$(NAME).tcl | tee $(OUTPUTDIR)/$(NAME).out
|
||||
else
|
||||
|
||||
rundctopo:
|
||||
dc_shell-xg-t -64bit -topographical_mode -f scripts/$(NAME).tcl | tee $(OUTPUTDIR)/$(NAME).out
|
||||
|
||||
endif
|
||||
|
||||
|
||||
clean:
|
||||
rm -rf $(OUTPUTDIR)/hdl
|
||||
rm -rf $(OUTPUTDIR)/WORK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue