summaryrefslogtreecommitdiff
path: root/rtl/gfx/gfx_setup_edge.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-05-05 17:34:22 -0600
committerAlejandro Soto <alejandro@34project.org>2024-05-05 17:38:27 -0600
commit081a8a3ba8bfe036f31da53f9c041a2caa30fce2 (patch)
tree7d712b67d3dc1ad3d37041562774ba3c4e5a7f49 /rtl/gfx/gfx_setup_edge.sv
parente5b64ea353678baabd16d245fcfaa3384e1acf8f (diff)
rtl/legacy_gfx: rename gfx -> legacy_gfx
Diffstat (limited to 'rtl/gfx/gfx_setup_edge.sv')
-rw-r--r--rtl/gfx/gfx_setup_edge.sv53
1 files changed, 0 insertions, 53 deletions
diff --git a/rtl/gfx/gfx_setup_edge.sv b/rtl/gfx/gfx_setup_edge.sv
deleted file mode 100644
index 5d69a88..0000000
--- a/rtl/gfx/gfx_setup_edge.sv
+++ /dev/null
@@ -1,53 +0,0 @@
-`include "gfx/gfx_defs.sv"
-
-module gfx_setup_edge
-(
- input logic clk,
-
- input raster_xy p,
- q,
- origin,
- input logic stall,
-
- output fixed base,
- inc_x,
- inc_y
-);
-
- fixed delta_x, delta_y, hold_inc_x, hold_inc_y;
-
- gfx_pipes #(.WIDTH($bits(inc_x)), .DEPTH(`FIXED_FMA_DOT_STAGES)) inc_x_pipes
- (
- .in(hold_inc_x),
- .out(inc_x),
- .*
- );
-
- gfx_pipes #(.WIDTH($bits(inc_y)), .DEPTH(`FIXED_FMA_DOT_STAGES)) inc_y_pipes
- (
- .in(hold_inc_y),
- .out(inc_y),
- .*
- );
-
- gfx_fixed_fma_dot edge_base
- (
- .c(0),
- .q(base),
- .a0(delta_x),
- .b0(hold_inc_x),
- .a1(delta_y),
- .b1(hold_inc_y),
- .*
- );
-
- always_ff @(posedge clk)
- if (!stall) begin
- delta_x <= origin.x - q.x;
- delta_y <= origin.y - q.y;
-
- hold_inc_x <= p.y - q.y;
- hold_inc_y <= q.x - p.x;
- end
-
-endmodule