From a979554f1f69b1a3a28e0fa38a26736fbab082da Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Fri, 10 Nov 2023 21:32:15 -0600 Subject: rtl/gfx: implement fragment address linearization --- rtl/gfx/gfx_frag.sv | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 rtl/gfx/gfx_frag.sv (limited to 'rtl/gfx/gfx_frag.sv') diff --git a/rtl/gfx/gfx_frag.sv b/rtl/gfx/gfx_frag.sv new file mode 100644 index 0000000..21f111f --- /dev/null +++ b/rtl/gfx/gfx_frag.sv @@ -0,0 +1,38 @@ +`include "gfx/gfx_defs.sv" + +module gfx_frag +( + input logic clk, + rst_n, + + input frag_xy_lanes fragments, + input paint_lanes in_valid, + output logic in_ready, + + input logic out_ready, + output logic out_valid, + output frag_paint out +); + + logic addr_stall; + + gfx_pipeline_flow #(.STAGES(`GFX_FRAG_ADDR_STAGES)) addr_flow + ( + .stall(addr_stall), + .in_valid(0), + .in_ready(), + .out_ready(1), + .out_valid(), + .* + ); + + gfx_frag_addr addr + ( + .stall(addr_stall), + + .frag(), + .linear(), + .* + ); + +endmodule -- cgit v1.2.3