Skip to content

Commit 0d337aa

Browse files
committed
Fix non-critical Spyglass warning
1 parent 5fd8408 commit 0d337aa

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

src/axi_mcast_demux_simple.sv

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,19 @@ module axi_mcast_demux_simple #(
243243
// the ID counters. We anyways don't use the ID counters on
244244
// multicast transactions...
245245

246-
cc_onehot_to_bin #(
247-
.OnehotWidth(NoMstPorts)
248-
) i_onehot_to_bin (
249-
.onehot_i(slv_aw_select_i & {NoMstPorts{!aw_is_multicast}}),
250-
.bin_o (slv_aw_select)
251-
);
246+
// Only needed when UniqueIds=0: slv_aw_select feeds the ID counter to track which
247+
// master port a write transaction targets. When UniqueIds=1 the ID counter is absent
248+
// and aw_select_occupied is hardwired to 0, so slv_aw_select is never used.
249+
if (!UniqueIds) begin : gen_onehot_to_bin
250+
cc_onehot_to_bin #(
251+
.OnehotWidth(NoMstPorts)
252+
) i_onehot_to_bin (
253+
.onehot_i(slv_aw_select_i & {NoMstPorts{!aw_is_multicast}}),
254+
.bin_o (slv_aw_select)
255+
);
256+
end else begin : gen_no_onehot_to_bin
257+
assign slv_aw_select = '0;
258+
end
252259

253260
// Popcount to identify multicast requests
254261
cc_popcount #(NoMstPorts) i_aw_select_popcount (

0 commit comments

Comments
 (0)