Skip to content

About

Transistor-level 6T Static RAM Bitcell Full Custom Layout in Magic VLSI with Transient Read/Write Stability Analysis.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom 6T SRAM Bitcell (SkyWater 130nm)

PDK Layout Schematic LVS Simulation

A standalone, transistor-level 6T SRAM bitcell designed and verified through an open-source custom IC flow in the SkyWater 130nm (sky130A) PDK. The cell is DRC-clean, LVS-clean (Circuits match uniquely), and verified with a post-layout parasitic-extracted (PEX) transient smoke test in Ngspice.


Repository Structure

sky130-6t-sram-bitcell/
├── README.md
├── .gitignore
├── layout/
│   ├── srambc1.mag               # Final DRC-clean Magic layout
│   └── srambc1.gds               # Exported GDSII stream
├── schematic/
│   └── sram_6t.sch               # Final LVS-clean Xschem schematic
├── lvs/
│   ├── sram_6t_layout.spice      # Extracted layout netlist (LVS)
│   ├── sram_6t_sch.spice         # Exported schematic netlist
│   ├── lvs_report.log            # Passing Netgen LVS report
│   └── run_lvs.sh                # Reproducible Netgen script
├── sim/
│   ├── sram_6t_pex.spice         # Post-layout PEX netlist (with parasitic C)
│   └── tb_sram_6t.spice          # Ngspice transient testbench
└── images/
    ├── schematic.png             # Xschem schematic capture
    ├── layout.png                # Magic VLSI layout capture
    └── sim_transient.png         # Post-layout transient waveforms

Design Specifications

Parameter Value
Process / PDK SkyWater 130nm (sky130A)
EDA Toolchain Magic (Layout/DRC/PEX), Xschem (Schematic), Netgen (LVS), Ngspice (Sim)
Cell Dimensions 6.80 µm × 5.80 µm
Total Area 39.44 µm² (standard logic DRC rules, standalone uncompacted cell)
Supply Voltage ($V_{DD}$) 1.8 V
Pull-Up PMOS (PU) W = 0.95 µm, L = 0.15 µm (sky130_fd_pr__pfet_01v8)
Pull-Down NMOS (PD) W = 0.60 µm, L = 0.15 µm (sky130_fd_pr__nfet_01v8)
Pass-Gate NMOS (PG) W = 0.60 µm, L = 0.15 µm (sky130_fd_pr__nfet_01v8)
Cell Ratio ($CR = W_{PD}/W_{PG}$) 1.00
Pull-Up Ratio ($PR = W_{PU}/W_{PG}$) 1.58
Interconnect Layers poly, li1 (locali), mcon, met1, via, met2
Physical Signoff DRC Clean (0 errors) · LVS Clean (Circuits match uniquely.)
Simulation Status Post-layout PEX transient smoke test passed (tt, 1.8 V, 50 fF BL)

Schematic & Physical Layout

Xschem Schematic (schematic/sram_6t.sch)

6T SRAM Schematic

Magic VLSI Layout (layout/srambc1.mag)

6T SRAM Layout


Physical Verification (DRC & LVS)

  • DRC: 0 errors under sky130A standard logic design rules in Magic.
  • LVS: Verified in Netgen comparing lvs/sram_6t_layout.spice (srambc1) against lvs/sram_6t_sch.spice (sram_6t):
Circuit 1: srambc1                         |Circuit 2: sram_6t
-------------------------------------------|-------------------------------------------
sky130_fd_pr__nfet_01v8 (4)                |sky130_fd_pr__nfet_01v8 (4)
sky130_fd_pr__pfet_01v8 (2)                |sky130_fd_pr__pfet_01v8 (2)
Number of devices: 6                       |Number of devices: 6
Number of nets: 7                          |Number of nets: 7
---------------------------------------------------------------------------------------
Cell pin lists are equivalent.
Device classes srambc1 and sram_6t are equivalent.

Final result: Circuits match uniquely.

Verification Debugging Log

Three physical/schematic bugs were identified and resolved during LVS closure:

  1. Open inverter cross-coupling (9 nets vs. 7 nets): polyc contacts were drawn without mcon (viali) vias at the inverter feedback nodes, leaving met1 floating above li1. Fixed by inserting mcon vias to close the feedback loop.
  2. Disconnected wl port: The wl port label was bound outside the active wordline layer, leaving the pass-gate poly isolated on an unnamed internal net. Fixed by attaching the port directly to the active wire layer.
  3. Schematic vdd/wl pin swap: PMOS bulk terminals in Xschem were accidentally wired to wl instead of vdd. Caught by Netgen's pin-mismatch report and corrected in sram_6t.sch.

Post-Layout Simulation (PEX & Ngspice)

A 40 ns transient functional smoke test (sim/tb_sram_6t.spice) was run on the parasitic-extracted netlist (sim/sram_6t_pex.spice) at the nominal tt corner (1.8 V, 27 °C, 50 fF bitline capacitance) covering Write 1 → Hold & Precharge → Read 1 → Write 0:

Post-Layout Transient Waveforms

Plot Key:

  • Left window (External lines): v(wl) (red, 0–1.8 V), v(bl)+2 (blue, offset +2 V), v(blb)+2 (yellow, offset +2 V).
  • Right window (Internal storage nodes): v(wl)+2 (yellow, offset +2 V), Q = v(x1.a_n200_n360#) (red), QB = v(x1.a_30_n360#) (blue).

Observed Behavior:

  • Write 1 (0–10 ns): With bl = 1.8 V and blb = 0 V, asserting wl latches Q = 1.8 V and QB = 0 V.
  • Hold & Precharge (10–20 ns): With wl = 0 V, both bl and blb precharge to 1.8 V while internal storage nodes remain completely undisturbed.
  • Read 1 (20–30 ns): Asserting wl discharges blb to 0 V within ~1.5 ns while bl stays at 1.8 V. Internal node QB exhibits a ~0.33 V read-disturb bump at 20.1 ns due to the pass-gate/pull-down voltage divider (CR = 1.00), staying well below the inverter trip point and recovering cleanly without a destructive read.
  • Write 0 (31–40 ns): Driving bl = 0 V and blb = 1.8 V with wl asserted cleanly flips Q to 0 V and QB to 1.8 V.

Reproducing the Flow

1. Prerequisites

Ensure sky130A is installed ($PDK_ROOT set) and configure Ngspice for Sky130 HSPICE model compatibility:

grep -q "ngbehavior=hsa" ~/.spiceinit 2>/dev/null || echo "set ngbehavior=hsa" >> ~/.spiceinit

2. LVS & PEX Extraction in Magic

Open the layout in Magic (magic -T $PDK_ROOT/sky130A/libs.tech/magic/sky130A.tech layout/srambc1.mag) and run in tkcon:

# LVS netlist (no parasitics)
extract all
ext2spice lvs
ext2spice -o lvs/sram_6t_layout.spice

# PEX netlist (with parasitic capacitances)
ext2spice cthresh 0
ext2spice -o sim/sram_6t_pex.spice

3. Run LVS (Netgen)

./lvs/run_lvs.sh

4. Run Post-Layout Simulation (Ngspice)

Adjust the .lib path on line 2 of sim/tb_sram_6t.spice if your sky130A installation is not at /usr/local/share/pdk/sky130A, then run:

cd sim && ngspice tb_sram_6t.spice

Known Limitations & Scope

This project was built as a standalone custom-layout and physical-verification exercise (DRC → LVS → PEX → functional transient baseline), not as a tape-out-ready memory compiler bitcell. Specifically:

  • Transistor sizing ratios: Production 6T SRAM cells typically target $CR \ge 1.5$ and $PR \le 1.0$ to maximize Read SNM and Write Margin. This layout uses $CR = 1.00$ and $PR = 1.58$, which passes at nominal tt with 50 fF bitlines but would require resizing to survive worst-case silicon variation.
  • Unverified corners & load stress: Simulation was limited to the nominal tt corner (1.8 V, 50 fF bitlines) and did not include a Read 0 cycle, heavier array bitline loads (300–500 fF), skewed PVT corners (fs for Read stability, sf for Writeability), DC Static Noise Margin (SNM) butterfly curves, or Monte Carlo mismatch analysis.
  • Uncompacted cell area: At 39.44 µm², the layout follows standard logic DRC rules without array-level pitch compaction, shared wells/contacts, or foundry pushed-rule SRAM waivers.

About

Transistor-level 6T Static RAM Bitcell Full Custom Layout in Magic VLSI with Transient Read/Write Stability Analysis.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages