summaryrefslogtreecommitdiff
path: root/rtl
diff options
context:
space:
mode:
Diffstat (limited to 'rtl')
-rw-r--r--rtl/gfx/gfx_frag.sv40
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