diff --git a/minitests/litex/src.vivado/Makefile b/minitests/litex/src.vivado/Makefile index 442afb8b..e7a70341 100644 --- a/minitests/litex/src.vivado/Makefile +++ b/minitests/litex/src.vivado/Makefile @@ -1,5 +1,6 @@ PART = xc7a35tcsg324-1 BIT2FASM_ARGS = --part "$(XRAY_DIR)/database/artix7/$(PART)" --verbose +SOURCES = mem.init mem_1.init top.v VexRiscv_Linux.v all: top.fasm top.bits segprint.log @@ -13,7 +14,7 @@ clean: .PHONY: all clean -top.bit: $(VIVADO) +top.bit: $(VIVADO) $(SOURCES) top.xdc top.tcl mkdir -p build cd build && $(XRAY_VIVADO) -mode batch -source ../top.tcl -nojournal -tempDir build -log vivado.log -verbose cp build/*.bit ./ diff --git a/minitests/litex/src.yosys/Makefile b/minitests/litex/src.yosys/Makefile index 11e6b4c6..334c21d9 100644 --- a/minitests/litex/src.yosys/Makefile +++ b/minitests/litex/src.yosys/Makefile @@ -1,6 +1,7 @@ YOSYS = $(XRAY_DIR)/third_party/yosys/yosys PART = xc7a35tcsg324-1 BIT2FASM_ARGS = --part "$(XRAY_DIR)/database/artix7/$(PART)" --verbose +SOURCES = mem.init mem_1.init top.v VexRiscv_Linux.v all: top.fasm top.bits segprint.log @@ -18,10 +19,10 @@ clean: $(YOSYS): cd $(XRAY_DIR)/third_party/yosys && make config-gcc && make -j$(shell nproc) -top.edif: $(YOSYS) +top.edif: $(YOSYS) synth.ys $(SOURCES) $(YOSYS) -s synth.ys -l yosys.log -top.bit: $(VIVADO) top.edif +top.bit: $(VIVADO) top.edif top.xdc top.tcl mkdir -p build cd build && $(XRAY_VIVADO) -mode batch -source ../top.tcl -nojournal -tempDir build -log vivado.log -verbose cp build/*.bit ./