diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-05-05 17:34:22 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-05-05 17:38:27 -0600 |
| commit | 081a8a3ba8bfe036f31da53f9c041a2caa30fce2 (patch) | |
| tree | 7d712b67d3dc1ad3d37041562774ba3c4e5a7f49 /rtl/legacy_gfx/gfx_persp.sv | |
| parent | e5b64ea353678baabd16d245fcfaa3384e1acf8f (diff) | |
rtl/legacy_gfx: rename gfx -> legacy_gfx
Diffstat (limited to 'rtl/legacy_gfx/gfx_persp.sv')
| -rw-r--r-- | rtl/legacy_gfx/gfx_persp.sv | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/rtl/legacy_gfx/gfx_persp.sv b/rtl/legacy_gfx/gfx_persp.sv new file mode 100644 index 0000000..243b5eb --- /dev/null +++ b/rtl/legacy_gfx/gfx_persp.sv @@ -0,0 +1,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 |
