SRAM controller