@@ -93,6 +93,8 @@ if [ $card_type -eq "31" ]; then
9393 echo " AD9V3 card"
9494elif [ $card_type -eq " 32" ]; then
9595 echo " AD9H3 card"
96+ elif [ $card_type -eq " 35" ]; then
97+ echo " AD9H335 card"
9698elif [ $card_type -eq " 33" ]; then
9799 echo " AD9H7 card"
98100elif [ $card_type -eq " 34" ]; then
102104fi
103105
104106# for HBM cards
105- if [ $card_type -eq " 32" ] || [ $card_type -eq " 33" ]; then
107+ if [ $card_type -eq " 32" ] || [ $card_type -eq " 33" ] || [ $card_type -eq " 35" ]; then
108+ echo -n " HBM card detected"
106109 echo -n " Number of AXI HBM IF: "
107110 hbm_if_num_hexa=` snap_peek -C ${snap_card} 0x30 | grep 30| cut -c22-23 || exit 1; `
108111 hbm_if_num=$( printf ' %#x' " 0x$hbm_if_num_hexa " )
@@ -158,6 +161,8 @@ function test_memcopy {
158161rm -f snap_hbm_memcopy.log
159162touch snap_hbm_memcopy.log
160163
164+ echo " -----------------------------------------------------"
165+ echo " Running simple host memory test in \" $duration \" mode..."
161166if [ " $duration " = " SHORT" ]; then
162167
163168 for (( size= 64 ; size< 128 ; size*= 2 )) ; do
@@ -170,11 +175,14 @@ if [ "$duration" = "NORMAL" ]; then
170175 test_memcopy ${size}
171176 done
172177fi
173-
174178echo
175- # echo "Print time: (small size doesn't represent performance)"
179+ echo
180+ echo " Summary of execution times"
181+ echo " NOTE : In simulation reported times are greater compared to POWER actual operation"
176182grep " memcopy of" snap_hbm_memcopy.log
177183echo
184+ echo " End of simple host memory test in \" $duration \" mode."
185+ echo " ----------------------------------------------------"
178186
179187# ### MEMCOPY to and from HBM #############
180188
@@ -246,7 +254,9 @@ function test_memcopy_with_hbm {
246254# ############### TEST Begins ##################
247255rm -f snap_memcopy_with_hbm.log
248256touch snap_memcopy_with_hbm.log
249-
257+ echo
258+ echo " ----------------------------------------------------"
259+ echo " Running HBM tests in \" $duration \" mode..."
250260if [ " $duration " = " SHORT" ]; then
251261 for (( size= 64 ; size< 512 ; size*= 2 )) ; do
252262 test_memcopy_with_hbm ${size}
@@ -260,6 +270,12 @@ if [ "$duration" = "NORMAL" ]; then
260270fi
261271
262272echo
263- # echo "Print time: (small size doesn't represent performance)"
273+ echo
274+ echo " Summary of execution times"
275+ echo " NOTE, in simulation reported times are greater compared to POWER actual operation"
264276grep " memcopy of" snap_memcopy_with_hbm.log
265277echo
278+ echo
279+ echo " End of HBM memory test in \" $duration \" mode."
280+ echo " ----------------------------------------------------"
281+
0 commit comments