diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-11-16 16:49:00 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-11-16 16:49:00 -0600 |
| commit | 231d477d007f99b8c5ba1e0f3cea2a68229b2495 (patch) | |
| tree | f3c05fa6f8c88b6acd9b463bd03c43c38035fc27 /rtl | |
| parent | 8faa2aa4915813da8149ad128dac978a32610bef (diff) | |
rtl/gfx: decrease raster batch size from 16x to 4x
Diffstat (limited to '')
| -rw-r--r-- | rtl/gfx/gfx_defs.sv | 4 | ||||
| -rw-r--r-- | rtl/gfx/gfx_setup_offsets.sv | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/rtl/gfx/gfx_defs.sv b/rtl/gfx/gfx_defs.sv index 9ffa505..2211c52 100644 --- a/rtl/gfx/gfx_defs.sv +++ b/rtl/gfx/gfx_defs.sv @@ -88,7 +88,7 @@ typedef struct packed raster_zw zw; } raster_xyzw; -typedef logic[7:0] coarse_dim; +typedef logic[8:0] coarse_dim; `define GFX_MASK_SRAM_STAGES 3 `define GFX_MASK_STAGES (1 + `GFX_MASK_SRAM_STAGES + 1) @@ -103,7 +103,7 @@ typedef logic[7:0] coarse_dim; `define GFX_FINE_STAGES 2 -`define GFX_RASTER_BITS 2 +`define GFX_RASTER_BITS 1 // SolĂa ser 2, pero la FPGA no da para tanto `define GFX_RASTER_SUB_BITS 4 `define GFX_RASTER_PAD_BITS ($bits(fixed) - $bits(coarse_dim) - `FIXED_FRAC - `GFX_RASTER_BITS - 1) `define GFX_RASTER_SIZE (1 << `GFX_RASTER_BITS) diff --git a/rtl/gfx/gfx_setup_offsets.sv b/rtl/gfx/gfx_setup_offsets.sv index a2a9415..aabd322 100644 --- a/rtl/gfx/gfx_setup_offsets.sv +++ b/rtl/gfx/gfx_setup_offsets.sv @@ -19,10 +19,10 @@ module gfx_setup_offsets assign y_multiples[0] = 0; assign x_multiples[1] = inc_x; assign y_multiples[1] = inc_y; - assign x_multiples[2] = inc_x << 1; - assign y_multiples[2] = inc_y << 1; - assign x_multiples[3] = (inc_x << 1) + inc_x; - assign y_multiples[3] = (inc_y << 1) + inc_y; + //assign x_multiples[2] = inc_x << 1; + //assign y_multiples[2] = inc_y << 1; + //assign x_multiples[3] = (inc_x << 1) + inc_x; + //assign y_multiples[3] = (inc_y << 1) + inc_y; genvar i; generate |
