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_mat_vec.sv | |
| parent | 09fcdbe01553385658fe437dcb1777008c0ceb39 (diff) | |
rtl/gfx: rename modules
Diffstat (limited to 'rtl/gfx/gfx_mat_vec.sv')
| -rw-r--r-- | rtl/gfx/gfx_mat_vec.sv | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/rtl/gfx/gfx_mat_vec.sv b/rtl/gfx/gfx_mat_vec.sv new file mode 100644 index 0000000..4be4976 --- /dev/null +++ b/rtl/gfx/gfx_mat_vec.sv @@ -0,0 +1,49 @@ +`include "gfx/gfx_defs.sv" + +module gfx_mat_vec +( + input logic clk, + rst_n, + + input mat4 a, + input vec4 x, + input logic in_valid, + out_ready, + + output vec4 q, + output logic in_ready, + out_valid +); + + logic stall_mul, stall_fold, mul_ready, mul_valid, feedback, feedback_last; + + gfx_pipeline_flow #(.STAGES(`FP_MUL_STAGES)) mul + ( + .stall(stall_mul), + .out_ready(mul_ready), + .out_valid(mul_valid), + .* + ); + + gfx_fold_flow fold + ( + .stall(stall_fold), + .in_ready(mul_ready), + .in_valid(mul_valid), + .* + ); + + genvar i; + generate + for (i = 0; i < `VECS_PER_MAT; ++i) begin: dots + gfx_dot dot_i + ( + .a(a[i]), + .b(x), + .q(q[i]), + .* + ); + end + endgenerate + +endmodule |
