HW: More generic pattern for modification of AXI ID width parameter in hardware/setup/patch_vhd.sh
@@ -9,6 +9,6 @@ fi
NAME=`basename $2`
if ([ "$NAME" == "psl_accel_sim.vhd" ] || [ "$NAME" == "psl_accel_syn.vhd" ]); then
- sed -i 's/C_AXI_CARD_MEM0_ID_WIDTH : integer := 1/C_AXI_CARD_MEM0_ID_WIDTH : integer := '$NUM_OF_ACTIONS'/' $1/$2
- sed -i 's/C_AXI_HOST_MEM_ID_WIDTH : integer := 1/C_AXI_HOST_MEM_ID_WIDTH : integer := '$NUM_OF_ACTIONS'/' $1/$2
+ sed -i 's/C_AXI_CARD_MEM0_ID_WIDTH[ ^I]*:[ ^I]*integer[ ^I]*:=[ ^I]*[0-9]*/C_AXI_CARD_MEM0_ID_WIDTH : integer := '$NUM_OF_ACTIONS'/' $1/$2
+ sed -i 's/C_AXI_HOST_MEM_ID_WIDTH[ ^I]*:[ ^I]*integer[ ^I]*:=[ ^I]*[0-9]*/C_AXI_HOST_MEM_ID_WIDTH : integer := '$NUM_OF_ACTIONS'/' $1/$2
fi
