fix: sync Yosys-compatible packed LLR interface from chip_ignite

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
cah
2026-02-25 21:08:49 -07:00
parent 6cc13829c8
commit a83f05cf82
3 changed files with 11 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ module wishbone_interface #(
input logic stat_busy,
input logic stat_converged,
input logic [4:0] stat_iter_used,
output logic signed [Q-1:0] llr_input [N],
output logic [N*Q-1:0] llr_input, // packed LLR vector
input logic [K-1:0] decoded_bits,
input logic [7:0] syndrome_weight,
@@ -99,7 +99,7 @@ module wishbone_interface #(
int llr_idx;
llr_idx = word_idx * 5 + p;
if (llr_idx < N)
llr_input[llr_idx] <= wb_dat_i[p*Q +: Q];
llr_input[llr_idx*Q +: Q] <= wb_dat_i[p*Q +: Q];
end
end
end