From 4b912471697d90731341060b486546d47f03ce27 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 14 Apr 2021 18:18:20 -0700 Subject: Makefile support for Linux quartus --- Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 51d0a70..7d6d997 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -SOURCES := $(shell find -name \*.sv -o -name \*.cpp) -HEADERS := $(shell find -name \*.svh) -MEMORIES := $(shell find -name \*.hex) +SOURCES := $(shell find hdl sim -name \*.sv -o -name \*.cpp) +HEADERS := $(shell find hdl -name \*.svh) +MEMORIES := $(shell find mem -name \*.hex) OPTS ?= @@ -15,6 +15,17 @@ build/Vtop: $(SOURCES) $(HEADERS) @ln -t build -f verilator/Vtop @rm -rf verilator +noncpu.qpf: $(SOURCES) $(HEADERS) $(MEMORIES) + quartus_sh -t tcl/init.tcl + +noncpu.sof: noncpu.qpf $(SOURCES) $(HEADERS) $(MEMORIES) + quartus_sh --flow compile $< + +fpga: noncpu.sof + quartus_pgm -c 1 -m JTAG -o P;$<@1 + nios2-terminal +.PHONY: fpga + clean: rm -rf build verilator .PHONY: clean -- cgit v1.2.3