Number of bits for tag, index, and block in a direct-mapped cache
I suggest you explore this link and try all possible combinations. I found this interesting when I was initially trying to learn about cache mapping techniques.

http://www.ecs.umass.edu/ece/koren/architecture/Cache/default.htm