From eec83e78864061baaa7d459cfd22641a0ecd0726 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 21 Nov 2023 02:51:35 -0600 Subject: rtl/gfx: implement SP stream --- rtl/gfx/gfx_sp.sv | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) (limited to 'rtl/gfx/gfx_sp.sv') diff --git a/rtl/gfx/gfx_sp.sv b/rtl/gfx/gfx_sp.sv index acb1dc2..ea3b126 100644 --- a/rtl/gfx/gfx_sp.sv +++ b/rtl/gfx/gfx_sp.sv @@ -19,7 +19,12 @@ module gfx_sp input logic program_start, input cmd_word program_header_base, - program_header_size + program_header_size, + + input logic send_ready, + output logic send_valid, + output lane_word send_data, + output lane_mask send_mask ); logic batch_start, clear_lanes, insn_valid, running; @@ -42,12 +47,16 @@ module gfx_sp .* ); + logic recv_valid; + lane_word recv_data; + lane_mask recv_mask; + gfx_sp_batch batch ( - .out_data(), - .out_mask(), - .out_ready(1), - .out_valid(), + .out_data(recv_data), + .out_mask(recv_mask), + .out_ready(recv_ready), + .out_valid(recv_valid), .* ); @@ -77,6 +86,20 @@ module gfx_sp .* ); + logic recv_ready; + + gfx_sp_stream stream + ( + .a(), + .wb(), + .deco(), + .in_ready(), + .in_valid(0), + .wb_ready(1), + .wb_valid(), + .* + ); + logic batch_end, deco_ready; assign deco_ready = 1; -- cgit v1.2.3