mirror of
https://github.com/lowobservable/coax.git
synced 2026-04-10 23:29:26 +00:00
Update iCEcube2 makefile for CI
This commit is contained in:
1
interface2/fpga/rtl/.gitignore
vendored
1
interface2/fpga/rtl/.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
*.json
|
||||
*.asc
|
||||
*.bin
|
||||
*_report.txt
|
||||
|
||||
# iCEcube2
|
||||
.mac_address
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user