Skip to content

Commit 3acf578

Browse files
Alvin-FAmicprog
andauthored
Update src/axi_xbar_unmuxed.sv
Co-authored-by: Michael Rogenmoser <michael@rogenmoser.us>
1 parent c4377ef commit 3acf578

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/axi_xbar_unmuxed.sv

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,12 @@ import cf_math_pkg::idx_width;
119119
logic dec_ar_valid, dec_ar_error;
120120

121121
//if there is no connection betwen master and slave, one index for decode error will be used
122-
for (genvar j = 0; j < Cfg.NoMstPorts; j++) begin : gen_addr_map
123-
if (!Connectivity[i][j]) begin : fix_addr_map
124-
assign addr_map[i][j].idx = mst_port_idx_t'(Cfg.NoMstPorts);
125-
assign addr_map[i][j].start_addr = addr_map_i[j].start_addr;
126-
assign addr_map[i][j].end_addr = addr_map_i[j].end_addr;
127-
end
128-
else begin : keep_addr_map
129-
assign addr_map[i][j] = addr_map_i[j];
122+
for (genvar j = 0; j < Cfg.NoAddrRules; j++) begin : gen_addr_map
123+
always_comb begin
124+
addr_map[i][j] = addr_map_i[j];
125+
if (!Connectivity[i][addr_map_i[j].idx]) begin
126+
addr_map[i][j].idx = mst_port_idx_t'(Cfg.NoMstPorts);
127+
end
130128
end
131129
end
132130

0 commit comments

Comments
 (0)