Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Bender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ sources:
- rtl/ecc_wrap/ecc_scrubber.sv
- rtl/rel_fifo.sv
- rtl/rel_rr_arb_tree.sv
- rtl/rel_spill_register.sv

- target: any(deprecated, axi_ecc, hci_ecc, pulp_ecc, test)
files:
Expand Down
7 changes: 6 additions & 1 deletion rtl/hsiao_ecc/hsiao_ecc_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
package hsiao_ecc_pkg;

function automatic int unsigned min_ecc(int unsigned data_width);
min_ecc = $clog2(data_width)+2;
for (int unsigned i = 0; i < 10; i++) begin
if (2**i >= data_width + i + 1) begin
return i + 1;
end
end
// min_ecc = $clog2(data_width)+2;
endfunction

/// Static parameters for synthesizability (avoiding dynamic arrays)
Expand Down
Loading