Cache Schemes: Direct-Mapped Cache

Example of finding the format of a RAM address (the numbers of bits in each of the tag, block, and offset fields:

Suppose that a computer using direct mapped cache has $2^{10}$ bytes of main memory and a cache of $32$ blocks, where each cache block is of the size of $8$ bytes.

Now, let's find the format of a RAM address on this computer: