Some embodiments provide a method of presenting virtual memory as narrower
and deeper than a physical memory. The method receives a memory address
location including a set of real memory address bits and a set of virtual
memory position bits. The method retrieves an original memory word from a
physical memory using the real memory address bits. The method shifts the
original memory word by an amount determined by the virtual memory
position bits by using a barrel shifter, creating a shifted memory word.
The method reads a part of the shifted memory word.