diff options
| author | Julian Blake Kongslie | 2021-03-28 14:48:30 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-03-28 14:48:30 -0700 |
| commit | 7a1311c16c36b18a66a5ee43511fb9ad5093ec3a (patch) | |
| tree | 09df63644ac11dee4f2de25d476437e73fcdea84 /Makefile | |
| download | noncpu-7a1311c16c36b18a66a5ee43511fb9ad5093ec3a.tar.xz | |
Initial commit.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f4a0da8 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | SOURCES := $(shell find -name \*.sv -o -name \*.cpp) | ||
| 2 | COLLATERAL := $(shell find -name \*.hex -o -name \*.svh) | ||
| 3 | |||
| 4 | OPTS ?= | ||
| 5 | |||
| 6 | sim: build/Vtop | ||
| 7 | $< | ||
| 8 | .PHONY: sim | ||
| 9 | |||
| 10 | build/Vtop: $(SOURCES) $(COLLATERAL) | ||
| 11 | @mkdir -p build | ||
| 12 | verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -Wno-UNUSED -O3 -Ihdl $(OPTS) --Mdir build --trace --cc --build -j --exe --top-module top $(SOURCES) | ||
| 13 | |||
| 14 | clean: | ||
| 15 | rm -rf build | ||
| 16 | .PHONY: clean | ||
