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 Nov 8, 2022
1 parent e48ee1d commit 9723112
Show file tree
Hide file tree
Showing 8 changed files with 1,450 additions and 378 deletions.
2 changes: 2 additions & 0 deletions Bender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,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 @@ -127,3 +128,4 @@ sources:
- test/tb_axi_to_axi_lite.sv
- test/tb_axi_to_mem_banked.sv
- test/tb_axi_xbar.sv
- test/tb_axi_mcast_xbar.sv
41 changes: 24 additions & 17 deletions scripts/run_vsim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,23 +166,6 @@ exec_test() {
done
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 -gTbNumMasters=$NumMst -gTbNumSlaves=$NumSlv \
-gTbEnAtop=$Atop -gTbEnExcl=$Exclusive \
-gTbUniqueIds=$UniqueIds
done
done
done
done
done
done
;;
axi_to_mem_banked)
for MEM_LAT in 1 2; do
for BANK_FACTOR in 1 2; do
Expand Down Expand Up @@ -227,6 +210,30 @@ exec_test() {
done
done
;;
axi_mcast_xbar)
for GEN_ATOP in 0; do
# for GEN_ATOP in 0 1; do
for NUM_MST in 1 6; do
for NUM_SLV in 2 9; do
for MST_ID_USE in 3 5; do
MST_ID=5
for DATA_WIDTH in 64 256; do
for PIPE in 0 1; do
call_vsim tb_axi_xbar -t 1ns -voptargs="+acc" \
-gTbNumMasters=$NUM_MST \
-gTbNumSlaves=$NUM_SLV \
-gTbAxiIdWidthMasters=$MST_ID \
-gTbAxiIdUsed=$MST_ID_USE \
-gTbAxiDataWidth=$DATA_WIDTH \
-gTbPipeline=$PIPE \
-gTbEnAtop=$GEN_ATOP
done
done
done
done
done
done
;;
*)
call_vsim tb_$1 -t 1ns -coverage -voptargs="+acc +cover=bcesfx"
;;
Expand Down
Loading

0 comments on commit 9723112

Please sign in to comment.