summaryrefslogtreecommitdiff
path: root/rtl/gfx/gfx_frag.sv
blob: 21f111f2b108a223ddec40c7b97b9dc52831649d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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