File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments