Добавил:
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

.model TP pmos L=lpar W=wpar

CDL Design Example

File : datafan.cdl

* cdl design - datafan

*.global vdd:p gnd:g *.option scale=1.1

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

*.include '/net/mycds/cdl_files/latch.cdl'

.include '/net/mycds/cdl_files/models.cdl'

.subckt MIV Q / A

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

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

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

m2 temp B Q vdd TP wn ln

December 2002

673

Product Version 5.0

Virtuoso XL Layout Editor User Guide

Using Spice and CDL For Netlist Driven Layout Generation

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

m4 Q B gnd gnd TN 9u 9u

.ends

* top level

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.cdl

* 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

c1 gnd vdd 1.81369e-14

c2 gnd Q 1.37038e-14

c3 gnd QN 1.25655e-14

c4 gnd n8 1.2719e-14

c5 gnd n7 1.47611e-14

December 2002

674

Product Version 5.0

Virtuoso XL Layout Editor User Guide

Using Spice and CDL For Netlist Driven Layout Generation

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.cdl

$ models

.param lpar=1U wpar= 2U

.model TN nmos L=lpar W=wpar

.model TP pmos L=lpar W=wpar

December 2002

675

Product Version 5.0

Virtuoso XL Layout Editor User Guide

Using Spice and CDL For Netlist Driven Layout Generation

Parameter Resolution

Spice and CDL allow the specification of parameters within the netlist. The VXL spice reader has the capability, within some limitations, of reading and resolving these parameters. This section will describe and illustrate, using examples, the VXL spice reader’s parameter handling capabilities and limitations.

Specifying Parameters

Parameters can be specified in Spice and CDL netlists on the.PARAM, .OPTION,

.SUBCKT, .MODEL, Subckt reference, Fet reference, Capacitor reference, and Resistor reference statements. As described in the Spice Statements section, the possible formats for parameter specification are;

param

,

param = numval

,

param = val

where;

numval represents a value which must be numeric (4, -2.2, 3.75U, -3.56e-7)

val represents a value which may be numeric, a (parameter) name or a literal enclosed in single quotes (4, -2.2, 3.75U, -3.56e-7, ppp, ‘any lit str’)

Not all formats are allowed on every statement in which parameters can be specified. Refer to the individual statement formats to see which formats for parameter specification are allowed.

Caution

Restriction : The VXL Spice Reader does not allow a parameter to be set to an arithmetic expression. Ex : W = 2 * WPAR, is not allowed.

Parameter Levels

Every parameter specified in a netlist can be associated with a particular level of the netlist. The level of a parameter is determined by the where it is defined within the netlist. There are three possible levels, those being, from highest to lowest, file, cell, and instance.

Parameters defined on the.OPTION statement are file level parameters. Parameters defined on the .PARAM statement outside of subckts are also file level. Parameters defined on the

.PARAM statement within a subckt are cell level parameters. Parameters defined on the

.SUBCKT or the .MODEL statement are also cell level. Parameters defined onSubckt

December 2002

676

Product Version 5.0

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