Cache programming techniques
The connection with ram address and cache address is the lower bits of the address. So RAM address 0x101111 (6 bit address as example) can always be found at cache address 0x111 with tag 0x101.