summaryrefslogtreecommitdiff
path: root/rtl/gfx/gfx_defs.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-11-12 20:38:12 -0600
committerAlejandro Soto <alejandro@34project.org>2023-11-14 07:48:52 -0600
commita401d413ba766b01aa980a8e013c79500a490c2e (patch)
treef63e74634a1b0b15cc449c88f190ff7a6b8f25a0 /rtl/gfx/gfx_defs.sv
parentbf6b4e2e8ebb63f6b8466bc98650ce75f3bdc79f (diff)
rtl/gfx: implement fixed-point division
Diffstat (limited to '')
-rw-r--r--rtl/gfx/gfx_defs.sv1
1 files changed, 1 insertions, 0 deletions
diff --git a/rtl/gfx/gfx_defs.sv b/rtl/gfx/gfx_defs.sv
index 429928c..bffbb1f 100644
--- a/rtl/gfx/gfx_defs.sv
+++ b/rtl/gfx/gfx_defs.sv
@@ -59,6 +59,7 @@ typedef struct packed
`define FIXED_FRAC 16
+`define FIXED_DIV_STAGES 8
`define FIXED_FMA_STAGES 5
`define FIXED_FMA_DOT_STAGES (2 * `FIXED_FMA_STAGES)
`define LERP_STAGES `FIXED_FMA_DOT_STAGES