Hi,
You can used logic like that these 5 bits (address[4:0])will define your frame bytes with multiplication by any integer value ..
then total number of frame is like that ...(address[4:0] * Integer Number ) .........
But this logic will depend on your design , It may be this will not apply to your design .........Its like one suggestion ........