We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IdxWidth
addr_decode_dync
1 parent 265b4cf commit cd88d4dCopy full SHA for cd88d4d
1 file changed
src/addr_decode_dync.sv
@@ -67,7 +67,7 @@ module addr_decode_dync #(
67
/// Dependent parameter, do **not** overwite!
68
///
69
/// Width of the `idx_o` output port.
70
- parameter int unsigned IdxWidth = cf_math_pkg::idx_width(NoIndices),
+ parameter int unsigned IdxWidth = (NoIndices > 1) ? $clog2(NoIndices) : 1,
71
72
73
/// Type of the `idx_o` output port.
0 commit comments