diff options
| -rw-r--r-- | eater_cpu/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/eater_cpu/Makefile b/eater_cpu/Makefile index 2a958de..d877169 100644 --- a/eater_cpu/Makefile +++ b/eater_cpu/Makefile @@ -1,2 +1,21 @@ cpu: eater_computer_tb.sv eater_computer.sv zbuffer.sv eater_register.v eater_alu.sv ../playground/my_mem.v ../nandgame/counter.sv iverilog -o $@ -g2012 $^ + +HARDWARE_SUFFIX := .sv +TESTBENCH_SUFFIX := _tb.sv +YOSYS_READFLAGS := -sv + +include ../common.mk + +.PHONY: simpc +simpc: simpc/Vcomputer + +simpc/Vcomputer: eater_computer.sv zbuffer.sv eater_register.v eater_alu.sv ../playground/my_mem.v ../nandgame/counter.sv +#computer.sv cpp/Vcomputer__main.cpp cpp/disas.cpp cpp/simpc_ui.cpp +# -CFLAGS "-I${PWD}/cpp" + verilator \ + --Mdir simpc \ + --cc --exe --main \ + -LDFLAGS "-lncurses" \ + --trace-fst \ + $^ |
