From 7a1311c16c36b18a66a5ee43511fb9ad5093ec3a Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 28 Mar 2021 14:48:30 -0700 Subject: Initial commit. --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f4a0da8 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +SOURCES := $(shell find -name \*.sv -o -name \*.cpp) +COLLATERAL := $(shell find -name \*.hex -o -name \*.svh) + +OPTS ?= + +sim: build/Vtop + $< +.PHONY: sim + +build/Vtop: $(SOURCES) $(COLLATERAL) + @mkdir -p build + verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -Wno-UNUSED -O3 -Ihdl $(OPTS) --Mdir build --trace --cc --build -j --exe --top-module top $(SOURCES) + +clean: + rm -rf build +.PHONY: clean -- cgit v1.2.3