summaryrefslogtreecommitdiff
path: root/rtl
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-02-20 11:09:23 -0600
committerAlejandro Soto <alejandro@34project.org>2024-02-20 11:12:23 -0600
commit49c6d9ed78a5ce67eaa6edb40c3dacd956ebca75 (patch)
tree5aac580779b90144a174015024a4551cebe17265 /rtl
parenta9ba2e1d3e0bee4f7534b29f266d122567d6dd42 (diff)
mk: implement support for quartus synthesis
Diffstat (limited to 'rtl')
-rw-r--r--rtl/top/mod.mk18
1 files changed, 16 insertions, 2 deletions
diff --git a/rtl/top/mod.mk b/rtl/top/mod.mk
index 6c6acf2..031a2fa 100644
--- a/rtl/top/mod.mk
+++ b/rtl/top/mod.mk
@@ -1,12 +1,26 @@
cores := conspiracion test_fb test_fifo test_ring test_smp
define core/conspiracion
- $(this)/targets := sim
- $(this)/deps := conspiracion/tb
+ $(this)/deps := config
+ $(this)/targets := sim
+
$(this)/rtl_files := conspiracion.sv
$(this)/rtl_top := conspiracion
+
$(this)/vl_main := ../../tb/top/conspiracion/conspiracion.cpp
$(this)/vl_runner := run_conspiracion
+
+ $(this)/altera_device := 5CSEMA5F31C6
+ $(this)/altera_family := Cyclone V
+ $(this)/qsys_platform := ../../platform.qsys
+
+ $(this)/sdc_files := ../../conspiracion.sdc
+ $(this)/qip_files := $(patsubst %,../../ip/%.qip,dsp_mul ip_fp_add ip_fp_mul ip_fp_fix)
+ $(this)/qsf_files := ../../pins.tcl
+
+ ifeq (sim,$(flow/type))
+ $(this)/deps += conspiracion/tb
+ endif
endef
define core/test_fb