
This project is a small static RAM: 32 words of 8 bits (256 bits). The memory block was generated with OpenRAM for SKY130 (6T bitcells, row decoder, precharge, sense amplifiers, write drivers and control logic) and placed in a 1x2 tile. Its pins are wired straight to the Tiny Tapeout pins, with no logic in between.
The sense amplifiers are a custom StrongARM sense amp with an SR output latch, in place of OpenRAM's stock sense amp. The memory block is 147.9 x 189.9 um (with the stock sense amp it was 147.9 x 181.0 um). Design and verification: custom_sense_amp.md.
Inputs are captured on the rising edge of clk:
ui[4:0] address (0 to 31)ui[5] write enable, active low (0 = write, 1 = read)ui[6] chip select, active low (0 = access, 1 = idle)ui[7] keep low (it drives the memory's spare row/column inputs, which are not used)uio[7:0] data in (all eight are inputs)uo[7:0] data outA write stores uio[7:0] at the address. A read puts the stored byte on uo[7:0] during the clock-low half
after the rising edge that starts the read; read it while clk is low, before the next rising edge. The sense
amp's output latch then keeps the byte on uo[7:0] through following idle and write cycles, until the next read
(seen in post-layout simulation at 6 corners).
ui[7] = 0 and ui[6] = 0 (chip selected).ui[4:0], a byte on uio[7:0], set ui[5] = 0, and give one clock pulse.ui[4:0], set ui[5] = 1, give one clock pulse, then read uo[7:0].The design was simulated with a 40 ns clock (25 MHz). Start slower, for example 1 MHz from the RP2040.
None. The RP2040 on the demo board can drive the inputs and read the outputs.
A joint project.
OpenRAM: https://github.com/VLSIDA/OpenRAM.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | addr[0] | dout[0] | din[0] |
| 1 | addr[1] | dout[1] | din[1] |
| 2 | addr[2] | dout[2] | din[2] |
| 3 | addr[3] | dout[3] | din[3] |
| 4 | addr[4] | dout[4] | din[4] |
| 5 | web (write enable, active low) | dout[5] | din[5] |
| 6 | csb (chip select, active low) | dout[6] | din[6] |
| 7 | spare (keep low) | dout[7] | din[7] |