diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-11-13 14:37:29 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-11-14 07:48:53 -0600 |
| commit | b556c46542f1c6c51220eb51c961a2d2fd9fb687 (patch) | |
| tree | d09135c45632e8b8c1460cc22fccbde65d7949d8 /rtl/gfx/gfx_frag.sv | |
| parent | 514b4dfd0e0b81484243614e88d1aca87302194d (diff) | |
rtl/gfx: connect fragment pipeline
Diffstat (limited to 'rtl/gfx/gfx_frag.sv')
| -rw-r--r-- | rtl/gfx/gfx_frag.sv | 40 |
1 files 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 |
