summaryrefslogtreecommitdiff
path: root/platform/wavelet3d/mod.mk
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-05-02 21:03:05 -0600
committerAlejandro Soto <alejandro@34project.org>2024-05-02 21:03:17 -0600
commit405c0287c80c34b0e9dfb9d9326b86d12433b4c4 (patch)
treeef38368c911bae30ff9c528dcf4a8fbfbc227fa7 /platform/wavelet3d/mod.mk
parent50b71c7f0ea2574eb4802e1a12fe8b0920a4ca7f (diff)
platform/wavelet3d: implement shader cores
This commit contains over a month of intermittent work (I don't have enough free time to do this the right way)
Diffstat (limited to '')
-rw-r--r--platform/wavelet3d/mod.mk15
1 files changed, 13 insertions, 2 deletions
diff --git a/platform/wavelet3d/mod.mk b/platform/wavelet3d/mod.mk
index b1e51f8..153f9c7 100644
--- a/platform/wavelet3d/mod.mk
+++ b/platform/wavelet3d/mod.mk
@@ -1,10 +1,21 @@
+cores := gfx_shader_schedif
+
define core
- $(this)/deps := axixbar picorv32
+ $(this)/deps := axixbar fp_unit gfx_shader_schedif picorv32
$(this)/rtl_top := gfx_top
$(this)/rtl_dirs := .
- $(this)/rtl_files := gfx_pkg.sv gfx_top.sv
+ $(this)/rtl_files := gfx_isa.sv gfx_pkg.sv gfx_top.sv
$(this)/vl_main := main.cpp
$(this)/vl_pkgconfig := sdl2
endef
+
+define core/gfx_shader_schedif
+ $(this)/hooks := regblock
+
+ $(this)/regblock_rdl := gfx_shader_schedif.rdl
+ $(this)/regblock_top := gfx_shader_schedif
+ $(this)/regblock_args := --default-reset arst_n
+ $(this)/regblock_cpuif := axi4-lite
+endef