Skip to content

Commit 5f90fb2

Browse files
committed
Minor cleanup
1 parent 3de08ff commit 5f90fb2

File tree

6 files changed

+5
-23
lines changed

6 files changed

+5
-23
lines changed

.ci/Memora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,6 @@ artifacts:
345345
- src/axi_mcast_mux.sv
346346
- src/axi_mcast_xbar.sv
347347
- test/tb_axi_mcast_xbar.sv
348-
- test/tb_axi_mcast_xbar_pkg.sv
348+
- test/tb_axi_xbar_pkg.sv
349349
outputs:
350350
- build/axi_mcast_xbar-%.tested

Bender.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ sources:
108108
files:
109109
- test/axi_synth_bench.sv
110110

111-
- target: gf12
112-
files:
113-
- test/axi_synth_bench.sv
114-
115111
- target: simulation
116112
files:
117113
- src/axi_chan_compare.sv

src/axi_mcast_xbar_unmuxed.sv

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ import cf_math_pkg::idx_width;
8181
input rule_t [Cfg.NoSlvPorts-1:0] default_mst_port_i
8282
);
8383

84+
localparam bit EnableMulticast = (Cfg.NoMulticastPorts > 0) || (Cfg.NoMulticastRules > 0);
85+
8486
// signals from the axi_demuxes
8587
req_t [Cfg.NoSlvPorts-1:0][Cfg.NoMstPorts-1:0] slv_reqs;
8688
resp_t [Cfg.NoSlvPorts-1:0][Cfg.NoMstPorts-1:0] slv_resps;
@@ -225,7 +227,7 @@ import cf_math_pkg::idx_width;
225227
$fatal(1, $sformatf("Slv_req and aw_addr width not equal."));
226228
addr_mst_req_ports: assert ($bits(mst_ports_req_o[0][0].aw.addr) == Cfg.AxiAddrWidth) else
227229
$fatal(1, $sformatf("Mst_req and aw_addr width not equal."));
228-
no_cuts_if_mcast: assert (!Cfg.EnableMulticast || (Cfg.PipelineStages == 0)) else
230+
no_cuts_if_mcast: assert (!EnableMulticast || (Cfg.PipelineStages == 0)) else
229231
$fatal(1, $sformatf("Multicast XBAR currently does not support pipeline stages."));
230232
end
231233
`endif

src/axi_pkg.sv

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -515,12 +515,10 @@ package axi_pkg;
515515
int unsigned AxiAddrWidth;
516516
/// AXI4+ATOP data field width.
517517
int unsigned AxiDataWidth;
518-
/// The number of address rules defined for routing of the AR transactions.
518+
/// The number of address rules defined for routing of the transactions.
519519
/// Each master port can have multiple rules, should have however at least one.
520520
/// If a transaction can not be routed the xbar will answer with an `axi_pkg::RESP_DECERR`.
521521
int unsigned NoAddrRules;
522-
/// When asserted, the XBAR is configured to support multicast.
523-
bit EnableMulticast;
524522
/// The number of address rules to be considered for multicasting,
525523
/// assumed to be at the start of `addr_map_i`.
526524
int unsigned NoMulticastRules;
@@ -536,25 +534,13 @@ package axi_pkg;
536534
logic [63:0] end_addr;
537535
} xbar_rule_64_t;
538536

539-
/// Commonly used rule types for `axi_xbar` (64-bit addresses).
540-
typedef struct packed {
541-
logic [63:0] addr;
542-
logic [63:0] mask;
543-
} xbar_mask_rule_64_t;
544-
545537
/// Commonly used rule types for `axi_xbar` (32-bit addresses).
546538
typedef struct packed {
547539
int unsigned idx;
548540
logic [31:0] start_addr;
549541
logic [31:0] end_addr;
550542
} xbar_rule_32_t;
551543

552-
/// Commonly used rule types for `axi_xbar` (32-bit addresses).
553-
typedef struct packed {
554-
logic [31:0] addr;
555-
logic [31:0] mask;
556-
} xbar_mask_rule_32_t;
557-
558544
// Return either the argument minus 1 or 0 if 0; useful for IO vector width declaration
559545
function automatic integer unsigned iomsb (input integer unsigned width);
560546
return (width != 32'd0) ? unsigned'(width-1) : 32'd0;

test/tb_axi_mcast_xbar.sv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ module tb_axi_mcast_xbar #(
7979
AxiAddrWidth: TbAxiAddrWidth,
8080
AxiDataWidth: TbAxiDataWidth,
8181
NoAddrRules: TbNumMcastSlaves * 2 + 1,
82-
EnableMulticast: 1,
8382
NoMulticastRules: TbNumMcastSlaves * 2,
8483
NoMulticastPorts: TbNumMcastSlaves
8584
};

test/tb_axi_xbar.sv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ module tb_axi_xbar #(
7777
AxiAddrWidth: TbAxiAddrWidth,
7878
AxiDataWidth: TbAxiDataWidth,
7979
NoAddrRules: TbNumSlaves,
80-
EnableMulticast: 1'b0,
8180
NoMulticastRules: 0,
8281
NoMulticastPorts: 0
8382
};

0 commit comments

Comments
 (0)