Resolve "Organize Project Better"

This commit is contained in:
Byron Lathi
2023-09-19 02:57:26 +00:00
parent a770d938de
commit c466c62969
18 changed files with 132 additions and 85 deletions

21
hw/efinix_fpga/Makefile Normal file
View File

@@ -0,0 +1,21 @@
PROJECT=super6502
BITSTREAM=outflow/$(PROJECT).bit
SRCS=$(shell find src/ -type f -name "*.sv")
all: $(BITSTREAM)
$(BITSTREAM): $(PROJECT).peri.xml $(SRCS)
efx_run.py $(PROJECT).xml
install: $(BITSTREAM)
efx_run.py $(PROJECT).xml --flow program --pgm_opts mode=jtag
install_spi: $(BITSTREAM)
efx_run.py $(PROJECT).xml --flow program --pgm_opts
clean:
rm -rf work_pnr
rm -rf work_syn
rm -rf work_pt
rm -rf outflow