summaryrefslogtreecommitdiff
path: root/rtl/top/mod.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rtl/top/mod.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/rtl/top/mod.mk b/rtl/top/mod.mk
new file mode 100644
index 0000000..6c6acf2
--- /dev/null
+++ b/rtl/top/mod.mk
@@ -0,0 +1,46 @@
+cores := conspiracion test_fb test_fifo test_ring test_smp
+
+define core/conspiracion
+ $(this)/targets := sim
+ $(this)/deps := conspiracion/tb
+ $(this)/rtl_files := conspiracion.sv
+ $(this)/rtl_top := conspiracion
+ $(this)/vl_main := ../../tb/top/conspiracion/conspiracion.cpp
+ $(this)/vl_runner := run_conspiracion
+endef
+
+define core/test_fb
+ $(this)/targets := test
+ $(this)/deps := gfx
+ $(this)/rtl_files := test_fb.sv
+ $(this)/rtl_top := test_fb
+ $(this)/cocotb_paths := ../../..
+ $(this)/cocotb_modules := tb.top.test_fb
+endef
+
+define core/test_fifo
+ $(this)/targets := test
+ $(this)/deps := gfx
+ $(this)/rtl_files := test_fifo.sv
+ $(this)/rtl_top := test_fifo
+ $(this)/cocotb_paths := ../../..
+ $(this)/cocotb_modules := tb.top.test_fifo
+endef
+
+define core/test_ring
+ $(this)/targets := test
+ $(this)/deps := cache
+ $(this)/rtl_files := test_ring.sv
+ $(this)/rtl_top := test_ring
+ $(this)/cocotb_paths := ../../..
+ $(this)/cocotb_modules := tb.top.test_ring
+endef
+
+define core/test_smp
+ $(this)/targets := test
+ $(this)/deps := smp test_fifo test_ring
+ $(this)/rtl_files := test_smp.sv
+ $(this)/rtl_top := test_smp
+ $(this)/cocotb_paths := ../../..
+ $(this)/cocotb_modules := tb.top.test_smp
+endef