summaryrefslogtreecommitdiff
path: root/rtl/gfx/gfx_persp.sv
blob: 0a75d39ebfd1b637c79ae5292acf7b9e12a7a9d1 (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
39
40
41
42
43
44
45
46
47
48
49
`include "gfx/gfx_defs.sv"

module gfx_persp
(
	input  logic       clk,
	                   rst_n,

	input  raster_xyzw in_vertex_a,
	                   in_vertex_b,
	                   in_vertex_c,
	input  logic       in_valid,
	output logic       in_ready,

	input  logic       out_ready,
	output logic       out_valid,
	output raster_xyzw out_vertex_a,
	                   out_vertex_b,
	                   out_vertex_c
);

	logic stall;

	gfx_pipeline_flow #(.STAGES(`FIXED_DIV_STAGES)) flow
	(
		.*
	);

	gfx_persp_vertex persp_a
	(
		.in_vertex(in_vertex_a),
		.out_vertex(out_vertex_a),
		.*
	);

	gfx_persp_vertex persp_b
	(
		.in_vertex(in_vertex_b),
		.out_vertex(out_vertex_b),
		.*
	);

	gfx_persp_vertex persp_c
	(
		.in_vertex(in_vertex_c),
		.out_vertex(out_vertex_c),
		.*
	);

endmodule