Skip to content

Commit 1a1a35f

Browse files
Lore0599colluca
authored andcommitted
hw: Make IdxWidth of addr_decode_dync constant to fix synthesis err
1 parent 20257ea commit 1a1a35f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/addr_decode_dync.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module addr_decode_dync #(
6767
/// Dependent parameter, do **not** overwite!
6868
///
6969
/// Width of the `idx_o` output port.
70-
parameter int unsigned IdxWidth = cf_math_pkg::idx_width(NoIndices),
70+
parameter int unsigned IdxWidth = (NoIndices > 1) ? $clog2(NoIndices) : 1,
7171
/// Dependent parameter, do **not** overwite!
7272
///
7373
/// Type of the `idx_o` output port.

0 commit comments

Comments
 (0)