diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-11-10 01:00:50 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-11-10 01:43:02 -0600 |
| commit | 39294ed7dbf2331651cd8fcca887e088bdcd2cfc (patch) | |
| tree | 0f6c3d590b1f1400f6c1f6ca98be1d0e15631312 /rtl/gfx/gfx_setup_offsets.sv | |
| parent | d5783a6ebde5d38fe72dd19293d9144827c35c56 (diff) | |
rtl/gfx: use packed arrays in module interfaces
Diffstat (limited to 'rtl/gfx/gfx_setup_offsets.sv')
| -rw-r--r-- | rtl/gfx/gfx_setup_offsets.sv | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/rtl/gfx/gfx_setup_offsets.sv b/rtl/gfx/gfx_setup_offsets.sv index 3b615d5..a2a9415 100644 --- a/rtl/gfx/gfx_setup_offsets.sv +++ b/rtl/gfx/gfx_setup_offsets.sv @@ -2,13 +2,13 @@ module gfx_setup_offsets ( - input logic clk, + input logic clk, - input fixed inc_x, - inc_y, - input logic stall, + input fixed inc_x, + inc_y, + input logic stall, - output fixed offsets[`GFX_RASTER_OFFSETS] + output raster_offsets offsets ); fixed x_hold[`GFX_RASTER_SIZE], y_hold[`GFX_RASTER_SIZE], @@ -21,8 +21,8 @@ module gfx_setup_offsets 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) + a; - assign y_multiples[3] = (inc_y << 1) + b; + assign x_multiples[3] = (inc_x << 1) + inc_x; + assign y_multiples[3] = (inc_y << 1) + inc_y; genvar i; generate |
