Skip to content

Commit

Permalink
[test] Remove begin/end from constructors to fix morty ci err
Browse files Browse the repository at this point in the history
  • Loading branch information
viv-eth committed Jan 20, 2025
1 parent e72230e commit 6fade02
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions test/tb_axi_dw_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -612,16 +612,14 @@ package tb_axi_dw_pkg ;
.AXI_USER_WIDTH(AxiUserWidth )
) mst_port_vif
);
begin
super.new(slv_port_vif, mst_port_vif);
slv_port_w_cnt = '0;
mst_port_w_cnt = '0;
mst_port_w_pnt = '1;
mst_port_w = '0;
for (int unsigned id = 0; id < 2**AxiIdWidth; id++) begin
slv_port_r_cnt[id] = '0;
mst_port_r_cnt[id] = '0;
end
super.new(slv_port_vif, mst_port_vif);
slv_port_w_cnt = '0;
mst_port_w_cnt = '0;
mst_port_w_pnt = '1;
mst_port_w = '0;
for (int unsigned id = 0; id < 2**AxiIdWidth; id++) begin
slv_port_r_cnt[id] = '0;
mst_port_r_cnt[id] = '0;
end
endfunction

Expand Down Expand Up @@ -956,17 +954,15 @@ package tb_axi_dw_pkg ;
.AXI_USER_WIDTH(AxiUserWidth )
) mst_port_vif
);
begin
super.new(slv_port_vif, mst_port_vif);

slv_port_w_cnt = 0;
mst_port_w_cnt = 0;
for (int unsigned id = 0; id < 2**AxiIdWidth; id++) begin
slv_port_r_cnt[id] = '0;
mst_port_r_cnt[id] = '0;
slv_port_r[id] = '0;
slv_port_r_pnt[id] = '1;
end
super.new(slv_port_vif, mst_port_vif);

slv_port_w_cnt = 0;
mst_port_w_cnt = 0;
for (int unsigned id = 0; id < 2**AxiIdWidth; id++) begin
slv_port_r_cnt[id] = '0;
mst_port_r_cnt[id] = '0;
slv_port_r[id] = '0;
slv_port_r_pnt[id] = '1;
end
endfunction

Expand Down

0 comments on commit 6fade02

Please sign in to comment.