Update iCEcube2 makefile for CI

This commit is contained in:
Andrew Kay
2021-10-03 10:27:41 -05:00
parent 75a730dff9
commit 61179295d4
2 changed files with 13 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
*.json
*.asc
*.bin
*_report.txt
# iCEcube2
.mac_address

View File

@@ -1,20 +1,26 @@
# See https://github.com/halfmanhalftaco/fpga-docker/tree/master/Lattice_iCEcube2
ICECUBE2_WRAPPER = docker run -it --rm --volume $(RTL):/data --workdir /data --mac-address=$(shell cat .mac_address) icecube2:latest ./icecube2_env.sh
ICECUBE2_WRAPPER = docker run -t --rm --volume $(RTL):/data --workdir /data --mac-address=$(shell cat .mac_address) icecube2:latest ./icecube2_env.sh
RTL = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
IMPLMNT = coax_Implmnt
all: top.bin
all: top.bin top_timing_report.txt
$(IMPLMNT)/coax.edf: coax_syn.prj *.v third_party/*.v clocks.sdc
$(ICECUBE2_WRAPPER) synpwrap -prj coax_syn.prj
top.bin: $(IMPLMNT)/coax.edf pins.pcf
rm -f top.bin
$(IMPLMNT)/sbt/outputs/bitmap/top_bitmap.bin $(IMPLMNT)/sbt/outputs/router/top_timing.rpt: $(IMPLMNT)/coax.edf pins.pcf
$(ICECUBE2_WRAPPER) ./icecube2_flow.tcl
cp $(IMPLMNT)/sbt/outputs/bitmap/top_bitmap.bin top.bin
top.bin: $(IMPLMNT)/sbt/outputs/bitmap/top_bitmap.bin
rm -f $@
cp $< $@
top_timing_report.txt: $(IMPLMNT)/sbt/outputs/router/top_timing.rpt
rm -f $@
cp $< $@
clean:
rm -rf $(IMPLMNT) synlog.tcl *.bin *.log *.log.bak
rm -rf $(IMPLMNT) synlog.tcl *.bin *_report.txt *.log *.log.bak
.PHONY: all clean