]> Joshua Wise's Git repositories - firearm.git/blobdiff - Makefile
build system: Produce a top level makefile that invokes Verilator, so that I don...
[firearm.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..daa9291
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+VLOGS = ARM_Constants.v BigBlockRAM.v BlockRAM.v BusArbiter.v DCache.v Decode.v Execute.v Fetch.v ICache.v Issue.v Memory.v Minishift.v RegFile.v Terminal.v Writeback.v system.v
+
+all: Vsystem
+
+Vsystem: obj_dir/Vsystem.mk testbench.cpp
+       make -C obj_dir -f Vsystem.mk
+
+obj_dir/Vsystem.mk: $(VLOGS)
+       mkdir -p obj_dir
+       verilator --cc system.v testbench.cpp --exe
+
+.DUMMY:
\ No newline at end of file
This page took 0.021637 seconds and 4 git commands to generate.