summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok2026-01-08 19:41:10 +0100
committeruvok2026-01-08 19:41:10 +0100
commitc2c1f652415cbe40bfffe6062fe41ddc3abebeaf (patch)
tree4b6e85561b1b24be985c9673a15fa00951028b72
parent445fb96d44ad62a213f5bf96eca7bc3a3471c06a (diff)
makefile: Add instruction for simulated PC
-rw-r--r--nandgame/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/nandgame/Makefile b/nandgame/Makefile
index df865aa..a279de6 100644
--- a/nandgame/Makefile
+++ b/nandgame/Makefile
@@ -36,6 +36,16 @@ DEPS := $(wildcard *.dep)
## default target
all: $(PROGRAM).fs
+.PHONY: simpc
+simpc: simpc/Vcomputer
+
+simpc/Vcomputer: computer.sv Vcomputer__main.cpp assembler/disas.cpp
+ verilator \
+ --Mdir simpc \
+ --cc --exe \
+ -CFLAGS "-I${PWD}/assembler" -LDFLAGS "-lncurses" \
+ $^
+
## dependencies
tangnano9k.cst: