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/fold_flow.sv | |
| parent | 09fcdbe01553385658fe437dcb1777008c0ceb39 (diff) | |
rtl/gfx: rename modules
Diffstat (limited to 'rtl/gfx/fold_flow.sv')
| -rw-r--r-- | rtl/gfx/fold_flow.sv | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/rtl/gfx/fold_flow.sv b/rtl/gfx/fold_flow.sv deleted file mode 100644 index 2221976..0000000 --- a/rtl/gfx/fold_flow.sv +++ /dev/null @@ -1,61 +0,0 @@ -`include "gfx/gfx_defs.sv" - -module fold_flow -( - input logic clk, - rst_n, - - input logic in_valid, - out_ready, - - output logic in_ready, - out_valid, - stall, - feedback, - feedback_last -); - - logic skid_ready; - index4 rounds[`FP_ADD_STAGES], last_round; - - assign in_ready = skid_ready && !feedback; - - assign feedback = last_round[1] ^ last_round[0]; - assign feedback_last = last_round[1]; - - assign last_round = rounds[`FP_ADD_STAGES - 1]; - - skid_flow skid - ( - .in_valid(last_round == `INDEX4_MAX), - .in_ready(skid_ready), - .* - ); - - always_ff @(posedge clk or negedge rst_n) - if (!rst_n) - rounds[0] <= `INDEX4_MIN; - else if (!stall) - unique case (last_round) - 2'b01: - rounds[0] <= 2'b10; - - 2'b10: - rounds[0] <= 2'b11; - - 2'b00, 2'b11: - rounds[0] <= {1'b0, in_valid}; - endcase - - genvar i; - generate - for (i = 1; i < `FP_ADD_STAGES; ++i) begin: pipeline - always_ff @(posedge clk or negedge rst_n) - if (!rst_n) - rounds[i] <= `INDEX4_MIN; - else if (!stall) - rounds[i] <= rounds[i - 1]; - end - endgenerate - -endmodule |
