diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-11-21 01:17:26 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-11-21 18:00:48 -0600 |
| commit | 7f20f4493ef1938f0ea8e86dc16f5c058fe7e4f3 (patch) | |
| tree | 8068225a7068da4702e144e4ff588573c16e2b36 /rtl/gfx/gfx_sp_swizzle.sv | |
| parent | de9a1bf57f6a6c70aef36da4eea024b44fe87470 (diff) | |
rtl/gfx: implement shuffler
Diffstat (limited to '')
| -rw-r--r-- | rtl/gfx/gfx_sp_swizzle.sv (renamed from rtl/gfx/gfx_swizzle.sv) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rtl/gfx/gfx_swizzle.sv b/rtl/gfx/gfx_sp_swizzle.sv index 1a57c11..d07d934 100644 --- a/rtl/gfx/gfx_swizzle.sv +++ b/rtl/gfx/gfx_sp_swizzle.sv @@ -1,11 +1,11 @@ `include "gfx/gfx_defs.sv" -module gfx_swizzle +module gfx_sp_swizzle ( input logic clk, input vec4 in, - input swizzle_lanes select, + input shuffler_deco deco, input logic stall, output vec4 out @@ -14,6 +14,6 @@ module gfx_swizzle always_ff @(posedge clk) if (!stall) for (integer i = 0; i < `FLOATS_PER_VEC; ++i) - out[i] <= in[select[i]]; + out[i] <= in[deco.swizzle_op[i]]; endmodule |
