# CPS-A SRAM Technical Details The CPS-A contains a SRAM to be able to raster scroll tile maps. This documentation assumes that you know [SCROLL](scroll.md) operations. ## Physical Layout This SRAM takes a large amount of space inside the die area as can be seen in this image.  It is split in two big blocks. Both blocks contain 256 addresses. The left one is able to store 10 bits for scroll attributes and the one on the right stores 16 bits for the tile code. They both share the same data input lines and the same address lines. ## Usage During the raster, the CPS-A is not able to look in realtime at the RAM section where the scroll entries are. To solve this issue, during HBLANK, it will ask for a bus request and copy the necessary data into its SRAM. The invariant is the following: at any point in time of the raster, the SRAM contains current necessary entries. It has to store two rows because Y shifts makes rows appear on a shifted grid while the bus requests happen at a fixed timing. The bus requests timing management takes care of doing the requests at the right time (and prepares the first row during VBLANK). ## Address Layout The following table shows the address usage of the SRAM.
| Address Bit | SCROLL1 | SCROLL2 | SCROLL3 |
|---|---|---|---|
| 7 | /LINE3 | /LINE4 | LINE5 |
| 6 | 0 | 1 | 1 |
| 5 | X5 | 1 | |
| 4 | X4 | 1 | |
| 3 | X3 | ||
| 2 | X2 | ||
| 1 | X1 | ||
| 0 | X0 | ||