Skip to content

Commit

Permalink
tb_xbar: Use the interface version of the xbar again
Browse files Browse the repository at this point in the history
  • Loading branch information
thommythomaso committed Oct 6, 2022
1 parent e4b5fb5 commit 07cd725
Showing 1 changed file with 14 additions and 28 deletions.
42 changes: 14 additions & 28 deletions test/tb_axi_xbar.sv
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ module tb_axi_xbar #(
for (genvar i = 0; i < TbNumMasters; i++) begin : gen_conn_dv_masters
`AXI_ASSIGN (master[i], master_dv[i])
`AXI_ASSIGN_TO_REQ(masters_req[i], master[i])
`AXI_ASSIGN_FROM_RESP(master[i], masters_resp[i])
`AXI_ASSIGN_TO_RESP(masters_resp[i], master[i])
end

AXI_BUS #(
Expand All @@ -206,7 +206,7 @@ module tb_axi_xbar #(
) slave_monitor_dv [TbNumSlaves-1:0](clk);
for (genvar i = 0; i < TbNumSlaves; i++) begin : gen_conn_dv_slaves
`AXI_ASSIGN(slave_dv[i], slave[i])
`AXI_ASSIGN_FROM_REQ(slave[i], slaves_req[i])
`AXI_ASSIGN_TO_REQ(slaves_req[i], slave[i])
`AXI_ASSIGN_TO_RESP(slaves_resp[i], slave[i])
end
// -------------------------------
Expand Down Expand Up @@ -279,33 +279,19 @@ module tb_axi_xbar #(
//-----------------------------------
// DUT
//-----------------------------------
axi_xbar #(
.Cfg ( xbar_cfg ),
.slv_aw_chan_t( aw_chan_mst_t ),
.mst_aw_chan_t( aw_chan_slv_t ),
.w_chan_t ( w_chan_t ),
.slv_b_chan_t ( b_chan_mst_t ),
.mst_b_chan_t ( b_chan_slv_t ),
.slv_ar_chan_t( ar_chan_mst_t ),
.mst_ar_chan_t( ar_chan_slv_t ),
.slv_r_chan_t ( r_chan_mst_t ),
.mst_r_chan_t ( r_chan_slv_t ),
.slv_req_t ( mst_req_t ),
.slv_resp_t ( mst_resp_t ),
.mst_req_t ( slv_req_t ),
.mst_resp_t ( slv_resp_t ),
.rule_t ( rule_t )
axi_xbar_intf #(
.AXI_USER_WIDTH ( TbAxiUserWidth ),
.Cfg ( xbar_cfg ),
.rule_t ( rule_t )
) i_xbar_dut (
.clk_i ( clk ),
.rst_ni ( rst_n ),
.test_i ( 1'b0 ),
.slv_ports_req_i ( masters_req ),
.slv_ports_resp_o ( masters_resp ),
.mst_ports_req_o ( slaves_req ),
.mst_ports_resp_i ( slaves_resp ),
.addr_map_i ( AddrMap ),
.en_default_mst_port_i ( '0 ),
.default_mst_port_i ( '0 )
.clk_i ( clk ),
.rst_ni ( rst_n ),
.test_i ( 1'b0 ),
.slv_ports ( master ),
.mst_ports ( slave ),
.addr_map_i ( AddrMap ),
.en_default_mst_port_i ( '0 ),
.default_mst_port_i ( '0 )
);

// logger for master modules
Expand Down

0 comments on commit 07cd725

Please sign in to comment.