summaryrefslogtreecommitdiff
path: root/platform/wavelet3d/w3d_top.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-05-06 20:43:24 -0600
committerAlejandro Soto <alejandro@34project.org>2024-05-06 20:43:24 -0600
commitf13369fb883d0a231b8dd01856dc18f7ee22d5c9 (patch)
tree1dfacaf4e80a532e52586fa7e63563f20d832228 /platform/wavelet3d/w3d_top.sv
parent492241990c66a8cc7e1ed464ab6e8a58df151054 (diff)
platform/wavelet3d: add platform interconnect
Diffstat (limited to '')
-rw-r--r--platform/wavelet3d/w3d_top.sv27
1 files changed, 24 insertions, 3 deletions
diff --git a/platform/wavelet3d/w3d_top.sv b/platform/wavelet3d/w3d_top.sv
index e20b10b..818491f 100644
--- a/platform/wavelet3d/w3d_top.sv
+++ b/platform/wavelet3d/w3d_top.sv
@@ -42,11 +42,13 @@ import gfx::*;
);
gfx_wb fpint_wb();
- if_axib host_dbus(), host_ibus();
- if_axil host_ctrl();
+ if_axib dram(), host_dbus(), host_ibus();
+ if_axil external_io(), gfx_ctrl();
if_pkts coverage(), geometry();
gfx_regfile_io fpint_io();
+ logic srst_n;
+
assign q = fpint_wb.rx.lanes;
assign out_valid = fpint_wb.rx.valid;
@@ -85,6 +87,13 @@ import gfx::*;
assign fpint_io.regs.a = a;
assign fpint_io.regs.b = b;
+ if_rst_sync rst_sync
+ (
+ .clk,
+ .rst_n,
+ .srst_n
+ );
+
gfx_shader_fpint fpint
(
.clk,
@@ -109,7 +118,8 @@ import gfx::*;
(
.clk,
.rst_n,
- .host_ctrl(host_ctrl.s)
+ .srst_n,
+ .host_ctrl(gfx_ctrl.s)
);
w3d_host host
@@ -120,4 +130,15 @@ import gfx::*;
.ibus(host_ibus.m)
);
+ w3d_interconnect inter
+ (
+ .clk,
+ .srst_n,
+ .dram(dram.m),
+ .gfx_ctrl(gfx_ctrl.m),
+ .host_dbus(host_dbus.s),
+ .host_ibus(host_ibus.s),
+ .external_io(external_io.m)
+ );
+
endmodule