Skip to content

Commit

Permalink
axi_mcast_xbar: Add testbench
Browse files Browse the repository at this point in the history
Passes tests when multicast probability is set to 0.
When spill registers on AW are enabled we expect a non-negligible area
overhead from registering slv_aw_addr_i and slv_aw_mask_i.
  • Loading branch information
colluca committed Aug 10, 2022
1 parent bfce14b commit bc2ad40
Show file tree
Hide file tree
Showing 8 changed files with 1,452 additions and 371 deletions.
4 changes: 3 additions & 1 deletion Bender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package:
- "Wolfgang Roenninger <[email protected]>"

dependencies:
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", rev: "6a2ccec070786c333809871a09bea84cd50dcce8" }
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", rev: "c051072d2819d47df8120d8e499856c287033234" }
common_verification: { git: "https://github.com/pulp-platform/common_verification.git", version: 0.2.0 }

export_include_dirs:
Expand Down Expand Up @@ -78,6 +78,7 @@ sources:
# Level 0
- test/tb_axi_dw_pkg.sv
- test/tb_axi_xbar_pkg.sv
- test/tb_axi_mcast_xbar_pkg.sv
# Level 1
- test/tb_axi_addr_test.sv
- test/tb_axi_atop_filter.sv
Expand All @@ -97,3 +98,4 @@ sources:
- test/tb_axi_sim_mem.sv
- test/tb_axi_to_axi_lite.sv
- test/tb_axi_xbar.sv
- test/tb_axi_mcast_xbar.sv
36 changes: 26 additions & 10 deletions scripts/run_vsim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,38 @@ exec_test() {
done
;;
axi_xbar)
for Multicast in 0 1; do
for NumMst in 1 6; do
for NumSlv in 1 8; do
for Atop in 0 1; do
for Exclusive in 0 1; do
for UniqueIds in 0 1; do
call_vsim tb_axi_xbar -gTbMulticast=$Multicast -gTbNumMst=$NumMst -gTbNumSlv=$NumSlv \
-gTbEnAtop=$Atop -gTbEnExcl=$Exclusive \
-gTbUniqueIds=$UniqueIds
done
for NumMst in 1 6; do
for NumSlv in 1 8; do
for Atop in 0 1; do
for Exclusive in 0 1; do
for UniqueIds in 0 1; do
call_vsim tb_axi_xbar -gTbNumMst=$NumMst -gTbNumSlv=$NumSlv \
-gTbEnAtop=$Atop -gTbEnExcl=$Exclusive \
-gTbUniqueIds=$UniqueIds
done
done
done
done
done
;;
axi_mcast_xbar)
for NumMst in 1 6; do
for NumSlv in 1 8; do
# for Atop in 0 1; do
for Atop in 0; do
# for Exclusive in 0 1; do
for Exclusive in 0; do
for UniqueIds in 0 1; do
call_vsim tb_axi_mcast_xbar -gTbNumMst=$NumMst -gTbNumSlv=$NumSlv \
-gTbEnAtop=$Atop -gTbEnExcl=$Exclusive \
-gTbUniqueIds=$UniqueIds
done
done
done
done
done
;;

*)
call_vsim tb_$1 -t 1ns -coverage -voptargs="+acc +cover=bcesfx"
;;
Expand Down
Loading

0 comments on commit bc2ad40

Please sign in to comment.