Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
layout editor.pdf
Скачиваний:
180
Добавлен:
05.06.2015
Размер:
3.04 Mб
Скачать

Virtuoso XL Layout Editor User Guide

Using Spice and CDL For Netlist Driven Layout Generation

Inductor Reference

Format (Spice or CDL) : Labc term1 term2 numval {param=val}… Labc is the inductor name

term1 term2 are the terminals

numval is the numerical inductor value

param=val is a parameter set to a value, in the parameter list Ex 1 : l1 gnd q 1e-6

Note: Inductor references must always begin with l.

Voltage Source Reference

Format (Spice or CDL) : Vabc term1 term2 <<DC> numval> <AC ...> Vabc is the voltage source name

term1 term2 are the terminals

numval is the optional voltage source value, which may be preceeded by the optional DC flag.

AC ... is the optional AC construct, which will be ignored Ex 1 : v1 t1 t2 (for this example numval is given the value 0)

Ex 2 : V2 tt ss 1.0 AC p1 p2

Ex 3 : V3 pl mn DC 2.2

Note: Voltage source references must always begin with v.

Spice Design Example

File : datafan.sp

* spice design - datafan

.global vdd:p gnd:g

.option scale=1.1

.param ln=3u lp=4u wn=5u wp=6u

.include '/net/mycds/spice_files/latch.sp'

.include '/net/mycds/spice_files/models.sp'

December 2002

669

Product Version 5.0

Virtuoso XL Layout Editor User Guide

Using Spice and CDL For Netlist Driven Layout Generation

.subckt MIV Q A

*port input A

*port output Q

m1 vdd A Q vdd TP W=7e-06 L=8e-06 m2 Q A gnd gnd TN 7e-06 8e-06

.ends

.subckt MND2 Q A B

*port input A

*port input B

*port output Q

m1 vdd A Q vdd TP W=wp L=lp

m2 vdd B Q vdd TP wn ln

m3 Q A temp gnd TN W=wpar L=lpar

m4 temp B gnd gnd TN wpar lpar

.ends

.subckt MNR2 Q A B

.param ln=7u lp=8u

*port input A B

*port output Q

m1 vdd A temp vdd TP W=wp L=lp

m2 temp B Q vdd TP wn ln

m3 Q A gnd gnd TN W=9u L=9u

m4 Q B gnd gnd TN 9u 9u

.ends

*top level

*port input I CLK E

December 2002

670

Product Version 5.0

Virtuoso XL Layout Editor User Guide

Using Spice and CDL For Netlist Driven Layout Generation

*port output L1 L1N

*port output L2 L2N

*port output L3 L3N

Xinv1 D1 I MIV

Xnand1 Q1 D1 E MND2

Xinv2 Q2 Q1 MIV

Xinv3 DATA Q2 MIV

Xlatch1 L1 L1N DATA E CLK LATCH ln1=7.5u lp1=lp + wn1=wn wp1=wp wn2=8u wp2=wp

Xlatch2 L2 L2N DATA E CLK LATCH

Xlatch3 L3 L3N DATA E CLK LATCH

File : latch.sp

* latch

.GLOBAL vdd:P gnd:G

.OPTION scale=1.2

.PARAM ln=3.5U lp=4.5U wn=5.5U wp=6.5U

.SUBCKT LATCH Q QN D E CLK ln1=2.5U lp1=lp wn1=3.5U wp1=wp

.PARAM ln2=1.5U lp2=lp wn2=wn wp2=wp

*PORT input CLK

*PORT input D

*PORT input E

*PORT output Q

*PORT output QN

c1 gnd vdd 1.81369e-14

c2 gnd Q 1.37038e-14

c3 gnd QN 1.25655e-14

December 2002

671

Product Version 5.0

Virtuoso XL Layout Editor User Guide

Using Spice and CDL For Netlist Driven Layout Generation

c4 gnd n8 1.2719e-14

c5 gnd n7 1.47611e-14

c6 gnd D 1.14232e-14

c7 gnd E 1.07987e-14

c8 gnd CLK 8.80052e-15

m9 Q QN gnd gnd TN W=1.5U L=2.5U

m10 gnd Q n10 gnd TN W=wn2 L=ln2

m11 n10 n7 QN gnd TN wn2 ln2

m12 n5 n8 QN gnd TN W=wn1 L=ln1

m13 gnd D n5 gnd TN wn1 ln1

m14 n1 CLK n7 gnd TN W=W L=L

m15 gnd E n1 gnd TN

m16 gnd n7 n8 gnd TN

m17 vdd QN Q vdd TP W=1.5U L=2.5U

m18 n9 Q vdd vdd TP W=wp2 L=lp2

m19 QN n8 n9 vdd TP wp2 lp2

m20 n4 n7 QN vdd TP W=wp1 L=lp1

m21 vdd D n4 vdd TP wp1 lp1

m22 vdd E n7 vdd TP W L

m23 vdd CLK n7 vdd TP

m24 n8 n7 vdd vdd TP

.ENDS

File : models.sp

$ models

.param lpar=1U wpar= 2U

.model TN nmos L=lpar W=wpar

December 2002

672

Product Version 5.0

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]