Hi, I am trying to compile a dual-port SRAM with o...
# sky130
Hi, I am trying to compile a dual-port SRAM with one read/write and one read port targeting the Skywater 130nm technology. I have the following questions. 1. Is there a limit to the SRAM size, in terms of the number of bits? 2. I did not find the complete library for Sky130 in the github clone of OpenRAM: https://github.com/VLSIDA/OpenRAM Is it available somewhere, or is there a way to build/generate the missing library cell folders like gds_lib, sp_lib, tf, etc., in the technology/sky130 folder? I did find a repo where this is probably done but I am not sure if it has the most updated libraries: https://github.com/vsdip/vsdsram_sky130/tree/main/OpenRAM/sky130A I succeeded in building a single ported (1 RW) SRAM with32768 bits (32x1024) using the files from the above mentioned repo. Next I modified the config file fields accordingly to compile a dual-ported SRAM (RW=1, R=1) of size 32768 bits:
Copy code
num_rw_ports = 1
num_r_ports = 1
write_size = 4
But I get the following error:
Copy code
** Start: 02/27/2022 21:18:17
Technology: sky130A
Total size: 32768 bits
Word size: 32
Words: 1024
Banks: 1
Write size: 4
RW ports: 1
R-only ports: 1
W-only ports: 0
DRC/LVS/PEX is only run on the top-level design to save run-time (inline_lvsdrc=True to do inline checking).
DRC/LVS/PEX is disabled (check_lvsdrc=True to enable).
Characterization is disabled (using analytical delay models) (analytical_delay=False to simulate).
ERROR: file design.py: line 46: Custom cell pin names do not match spice file:
['bl0', 'br0', 'bl1', 'br1', 'wl0', 'wl1', 'vdd', 'gnd'] vs []
Traceback (most recent call last):
 File "/home/anuj/OpenRAM/compiler/openram.py", line 54, in <module>
  c = sram_config(word_size=OPTS.word_size,
 File "/home/anuj/OpenRAM/compiler/sram/sram_config.py", line 44, in _init_
 File "/home/anuj/OpenRAM/compiler/sram/sram_config.py", line 73, in compute_sizes
  bitcell = factory.create(module_type=OPTS.bitcell)
 File "/home/anuj/OpenRAM/compiler/sram_factory.py", line 142, in create
  obj = mod(name=module_name, **kwargs)
 File "/home/anuj/OpenRAM/compiler/bitcells/bitcell_2port.py", line 22, in _init_
  super()._init_(name, prop=props.bitcell_2port)
 File "/home/anuj/OpenRAM/compiler/bitcells/bitcell_base.py", line 21, in _init_
  design.design._init_(self, name, cell_name, prop)
 File "/home/anuj/OpenRAM/compiler/base/design.py", line 46, in _init_
  debug.check(prop.port_names == self.pins,
 File "/home/anuj/OpenRAM/compiler/debug.py", line 33, in check
  assert 0
So I was wondering if someone could help me compile a dual-ported SRAM with the (preferably recent) Sky130 library cells. Thanks!
@User You might try asking on #openram. By the way, there are precompiled sram macros available for mpw-5.
Copy code
Clone the
repo. They should be in
Thanks a lot @User for pointing me to the relevant channel and also to the precompiled macros. Since it only has precompiled macros of size 1kB, I'll most likely have to compile the rams of larger size myself.
There's a 2kB version too. You can download the gds to see the macro size.
🙌 1
Ahh yes! Thanks, Mitch! 🙂
🙌 1