When I build a 512B RAM, the lag was bad.
If you want at least few hundred bytes of RAM and not run the simulation at 5 FPS, then I would recomend you use the software implementation.