Line 36... |
Line 36... |
##
|
##
|
##############################################################################//
|
##############################################################################//
|
##
|
##
|
##
|
##
|
.PHONY: all
|
.PHONY: all
|
all: datestamp archive
|
all: datestamp archive rtl sw
|
# BENCH := `find bench -name Makefile` `find bench -name "*.cpp"` `find bench -name "*.h"`
|
# BENCH := `find bench -name Makefile` `find bench -name "*.cpp"` `find bench -name "*.h"`
|
BENCH :=
|
BENCH :=
|
RTL := `find rtl -name "*.v"` `find rtl -name Makefile`
|
RTL := `find rtl -name "*.v"` `find rtl -name Makefile`
|
NOTES := `find . -name "*.txt"` `find . -name "*.html"`
|
NOTES := `find . -name "*.txt"` `find . -name "*.html"`
|
SW := `find sw -name "*.cpp"` `find sw -name "*.h"` \
|
SW := `find sw -name "*.cpp"` `find sw -name "*.h"` \
|
Line 56... |
Line 56... |
.PHONY: datestamp
|
.PHONY: datestamp
|
datestamp:
|
datestamp:
|
@bash -c 'if [ ! -e $(YYMMDD)-build.v ]; then rm 20??????-build.v; perl mkdatev.pl > $(YYMMDD)-build.v; rm -f rtl/builddate.v; fi'
|
@bash -c 'if [ ! -e $(YYMMDD)-build.v ]; then rm 20??????-build.v; perl mkdatev.pl > $(YYMMDD)-build.v; rm -f rtl/builddate.v; fi'
|
@bash -c 'if [ ! -e rtl/builddate.v ]; then cd rtl; cp ../$(YYMMDD)-build.v builddate.v; fi'
|
@bash -c 'if [ ! -e rtl/builddate.v ]; then cd rtl; cp ../$(YYMMDD)-build.v builddate.v; fi'
|
|
|
|
.PHONY: rtl
|
|
rtl:
|
|
@make --no-print-directory -C rtl
|
|
|
|
.PHONY: sw
|
|
sw:
|
|
@make --no-print-directory -C sw
|
|
|
|
.PHONY: doc
|
|
doc:
|
|
@make --no-print-directory -C doc
|
|
|
|
.PHONY: bench
|
|
bench: rtl
|
|
@make --no-print-directory -C bench/cpp
|
|
|
.PHONY: archive
|
.PHONY: archive
|
archive:
|
archive:
|
tar --transform s,^,$(YYMMDD)-s6/, -chjf $(YYMMDD)-xula.tjz $(BENCH) $(SW) $(RTL) $(NOTES) $(PROJ) $(BIN) $(CONSTRAINTS)
|
tar --transform s,^,$(YYMMDD)-s6/, -chjf $(YYMMDD)-s6.tjz $(BENCH) $(SW) $(RTL) $(NOTES) $(PROJ) $(BIN) $(CONSTRAINTS)
|
|
|
# .PHONY: bit
|
# .PHONY: bit
|
# bit:
|
# bit:
|
# cd xilinx ; make xula.bit
|
# make --no-print-directory -C xilinx toplevel.bit
|
|
|
axload:
|
axload:
|
djtgcfg enum
|
djtgcfg enum
|
djtgcfg init -d CmodS6
|
djtgcfg init -d CmodS6
|
djtgcfg prog -d CmodS6 -i 0 -f xilinx/alttop.bit
|
djtgcfg prog -d CmodS6 -i 0 -f xilinx/alttop.bit
|