diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-05-05 17:34:22 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-05-05 17:38:27 -0600 |
| commit | 081a8a3ba8bfe036f31da53f9c041a2caa30fce2 (patch) | |
| tree | 7d712b67d3dc1ad3d37041562774ba3c4e5a7f49 /rtl/legacy_gfx/gfx_transpose.sv | |
| parent | e5b64ea353678baabd16d245fcfaa3384e1acf8f (diff) | |
rtl/legacy_gfx: rename gfx -> legacy_gfx
Diffstat (limited to 'rtl/legacy_gfx/gfx_transpose.sv')
| -rw-r--r-- | rtl/legacy_gfx/gfx_transpose.sv | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/rtl/legacy_gfx/gfx_transpose.sv b/rtl/legacy_gfx/gfx_transpose.sv new file mode 100644 index 0000000..03ecf2d --- /dev/null +++ b/rtl/legacy_gfx/gfx_transpose.sv @@ -0,0 +1,17 @@ +`include "gfx/gfx_defs.sv" + +module gfx_transpose +( + input mat4 in, + output mat4 out +); + + integer i, j; + + // Esto no tiene costo en hardware, es un renombramiento de seƱales + always_comb + for (i = 0; i < `VECS_PER_MAT; ++i) + for (j = 0; j < `FLOATS_PER_VEC; ++j) + out[i][j] = in[j][i]; + +endmodule |
