diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-11-02 22:19:26 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-11-10 01:43:02 -0600 |
| commit | d5de20fade70a0d454e3aa0087313ca715ff8759 (patch) | |
| tree | 55751c829e989500972c56f05a7b0cb5e4e07621 /rtl/gfx/gfx_transpose.sv | |
| parent | 09fcdbe01553385658fe437dcb1777008c0ceb39 (diff) | |
rtl/gfx: rename modules
Diffstat (limited to 'rtl/gfx/gfx_transpose.sv')
| -rw-r--r-- | rtl/gfx/gfx_transpose.sv | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/rtl/gfx/gfx_transpose.sv b/rtl/gfx/gfx_transpose.sv new file mode 100644 index 0000000..03ecf2d --- /dev/null +++ b/rtl/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 |
