From b556c46542f1c6c51220eb51c961a2d2fd9fb687 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 13 Nov 2023 14:37:29 -0600 Subject: rtl/gfx: connect fragment pipeline --- rtl/gfx/gfx_frag.sv | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/rtl/gfx/gfx_frag.sv b/rtl/gfx/gfx_frag.sv index 108f99a..d52a0d0 100644 --- a/rtl/gfx/gfx_frag.sv +++ b/rtl/gfx/gfx_frag.sv @@ -2,25 +2,25 @@ module gfx_frag ( - input logic clk, - rst_n, - - input frag_xy frag, - input fixed_tri bary, - ws, - input logic in_valid, - output logic in_ready, - - input logic out_ready, - output logic out_valid, - output frag_paint out + input logic clk, + rst_n, + + input frag_xy frag, + input fixed_tri bary, + ws, + input logic in_valid, + output logic in_ready, + + input logic out_ready, + output logic out_valid, + output frag_paint out ); logic stall; + frag_paint frag_out; gfx_pipeline_flow #(.STAGES(`GFX_FRAG_STAGES)) addr_flow ( - .stall(stall), .* ); @@ -28,7 +28,6 @@ module gfx_frag gfx_frag_addr addr ( - .stall(stall), .* ); @@ -37,8 +36,7 @@ module gfx_frag gfx_pipes #(.WIDTH($bits(linear_coord)), .DEPTH(ADDR_WAIT_STAGES)) addr_pipes ( .in(linear), - .out(), - .stall(stall), + .out(frag_out.addr), .* ); @@ -46,18 +44,22 @@ module gfx_frag gfx_frag_bary frag_bary ( - .stall(stall), .* ); gfx_frag_shade shade ( - .stall(stall), - .color(), + .color(frag_out.color), .argb0(), .argb1_argb0(), .argb2_argb0(), .* ); + gfx_skid_buf #(.WIDTH($bits(frag_out))) skid + ( + .in(frag_out), + .* + ); + endmodule -- cgit v1.2.3