[go: up one dir, main page]

100% found this document useful (1 vote)
463 views4 pages

Basic Cell HSpice Code

The document contains a netlist for simulating a 6T SRAM cell in HSpice. It defines voltage sources for supply, wordline, bitline, and write enable signals. It also defines NMOS and PMOS transistors for the latch and access functions, and specifies a transient analysis from 0 to 15ms.

Uploaded by

Waqar Ishaq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
463 views4 pages

Basic Cell HSpice Code

The document contains a netlist for simulating a 6T SRAM cell in HSpice. It defines voltage sources for supply, wordline, bitline, and write enable signals. It also defines NMOS and PMOS transistors for the latch and access functions, and specifies a transient analysis from 0 to 15ms.

Uploaded by

Waqar Ishaq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

SRAM cell 6T for HSpice

**I used this netlist for simulate the cell (0.35u) in three modes (write-hold-
read) in a transient**

*.include modn.mod
*.include modp.mod
.include modn.mod
.include modp.mod
****************************************
*sources
**supply
vdd 1 0 dc 0.4
****************************************
**access control
vwl wl 0 pulse(0 0.4 2m 100u 100u 2m 8m)
*******************************************
**data
vbl BL1 0 dc 0.4
vblr BLR1 0 pulse(0 0.4 5m 100u 100u 15m 1)
*******************************************
**control
vr_w r_w 0 pulse(0 0.4 0 1u 1u 10m 1)
*******************************************
*devices
**switches
GBL BL1 BL VCR PWL(1) r_w,0 0,1e20 1m,1e-20
GBLR BLR1 BLR VCR PWL(1) r_w,0 0,1e20 1m,1e-20

**mos transistors - latch


m1 Q QR 0 0 modn w=1u l=0.35u
m2 Q QR 1 1 modp w=1u l=0.35u
m3 QR Q 0 0 modn w=1u l=0.35u
m4 QR Q 1 1 modp w=1u l=0.35u

**mos transistors - data access


m5 BL wl Q 0 modn w=10u l=0.35u
m6 BLR wl QR modn w=10u l=0.35u

*analysis
.tran 1u 15m 0
.option post
.end

*you could change the mos tansistors models

SRAM cell 6T
**I used this netlist for simulate the cell (0.35u) in three modes (write-hold-
read) in a transient**

.include modn.mod
.include modp.mod

*sources
**supply
vdd 1 0 dc 0.4

**access control
vwl wl 0 pulse(0 0.4 2m 100u 100u 2m 8m)
**data
vbl BL1 0 dc 0.4
vblr BLR1 0 pulse(0 0.4 5m 100u 100u 15m 1)

**control
vr_w r_w 0 pulse(0 0.4 0 1u 1u 10m 1)

*devices
**switches
GBL BL1 BL VCR PWL(1) r_w,0 0,1e20 1m,1e-20
GBLR BLR1 BLR VCR PWL(1) r_w,0 0,1e20 1m,1e-20

**mos transistors - latch


m1 Q QR 0 0 modn w=1u l=0.35u
m2 Q QR 1 1 modp w=1u l=0.35u
m3 QR Q 0 0 modn w=1u l=0.35u
m4 QR Q 1 1 modp w=1u l=0.35u

**mos transistors - data access


m5 BL wl Q 0 modn w=10u l=0.35u
m6 BLR wl QR modn w=10u l=0.35u

*analysis
.tran 1u 15m 0
.option post
.end

*you could change the mos tansistors models

SRAM cell 6T
**I used this netlist for simulate the cell (0.35u) in three modes (write-hold-
read) in a transient**

.include modn.mod
.include modp.mod

*sources
**supply
vdd 1 0 dc 0.4

**access control
vwl wl 0 pulse(0 0.4 2m 100u 100u 2m 8m)

**data
vbl BL1 0 dc 0.4
vblr BLR1 0 pulse(0 0.4 5m 100u 100u 15m 1)

**control
vr_w r_w 0 pulse(0 0.4 0 1u 1u 10m 1)

*devices
**switches
GBL BL1 BL VCR PWL(1) r_w,0 0,1e20 1m,1e-20
GBLR BLR1 BLR VCR PWL(1) r_w,0 0,1e20 1m,1e-20

**mos transistors - latch


m1 Q QR 0 0 modn w=1u l=0.35u
m2 Q QR 1 1 modp w=1u l=0.35u
m3 QR Q 0 0 modn w=1u l=0.35u
m4 QR Q 1 1 modp w=1u l=0.35u

**mos transistors - data access


m5 BL wl Q 0 modn w=10u l=0.35u
m6 BLR wl QR modn w=10u l=0.35u

*analysis
.tran 1u 15m 0
.option post
.end

*you could change the mos tansistors models

SRAM cell 6T
**I used this netlist for simulate the cell (0.35u) in three modes (write-hold-
read) in a transient**

.include modn.mod
.include modp.mod

*sources
**supply
vdd 1 0 dc 0.4

**access control
vwl wl 0 pulse(0 0.4 2m 100u 100u 2m 8m)

**data
vbl BL1 0 dc 0.4
vblr BLR1 0 pulse(0 0.4 5m 100u 100u 15m 1)

**control
vr_w r_w 0 pulse(0 0.4 0 1u 1u 10m 1)

*devices
**switches
GBL BL1 BL VCR PWL(1) r_w,0 0,1e20 1m,1e-20
GBLR BLR1 BLR VCR PWL(1) r_w,0 0,1e20 1m,1e-20

**mos transistors - latch


m1 Q QR 0 0 modn w=1u l=0.35u
m2 Q QR 1 1 modp w=1u l=0.35u
m3 QR Q 0 0 modn w=1u l=0.35u
m4 QR Q 1 1 modp w=1u l=0.35u

**mos transistors - data access


m5 BL wl Q 0 modn w=10u l=0.35u
m6 BLR wl QR modn w=10u l=0.35u

*analysis
.tran 1u 15m 0
.option post
.end

*you could change the mos tansistors models

SRAM cell 6T
**I used this netlist for simulate the cell (0.35u) in three modes (write-hold-
read) in a transient**
.include modn.mod
.include modp.mod

*sources
**supply
vdd 1 0 dc 0.4

**access control
vwl wl 0 pulse(0 0.4 2m 100u 100u 2m 8m)

**data
vbl BL1 0 dc 0.4
vblr BLR1 0 pulse(0 0.4 5m 100u 100u 15m 1)

**control
vr_w r_w 0 pulse(0 0.4 0 1u 1u 10m 1)

*devices
**switches
GBL BL1 BL VCR PWL(1) r_w,0 0,1e20 1m,1e-20
GBLR BLR1 BLR VCR PWL(1) r_w,0 0,1e20 1m,1e-20

**mos transistors - latch


m1 Q QR 0 0 modn w=1u l=0.35u
m2 Q QR 1 1 modp w=1u l=0.35u
m3 QR Q 0 0 modn w=1u l=0.35u
m4 QR Q 1 1 modp w=1u l=0.35u

**mos transistors - data access


m5 BL wl Q 0 modn w=10u l=0.35u
m6 BLR wl QR modn w=10u l=0.35u

*analysis
.tran 1u 15m 0
.option post
.end

*you could change the mos tansistors models

You might also like