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
50
51
52
53
54
55
56
57
58
|
`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
);
// Perdón Ronald
assign in_ready = out_ready;
assign out_valid = in_valid;
assign out_vertex_a = in_vertex_a;
assign out_vertex_b = in_vertex_b;
assign out_vertex_c = in_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
|