Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
68
Добавлен:
06.06.2017
Размер:
3.31 Mб
Скачать

Capacitor

SPICE format

Syntax

C<name> <plus> <minus> [model name] <value> [IC=<initial voltage>]

Examples

C1 2 3 1U

C2 7 8 110P IC=2

<plus> and <minus> are the positive and negative node numbers. The polarity references are used to apply the initial condition.

Schematic format

PART attribute <name>

Examples

C5

XC16

VALUE attribute

<value> [IC=<initial voltage>]

Examples 1U

110P IC=3 50U*(1+V(6)/100)

FREQ attribute [fexpr]

Examples 1.2+10m*log(F)

MODEL attribute [model name]

Examples

CMOD

MICA

377

VALUE attribute

<value> may be a simple number or an expression involving time-domain variables. It is evaluated in the time domain only. Consider the following expression:

1n+V(10)*2n

V(10) refers to the value of the voltage on node 10 during a transient analysis, a DC operating point calculation prior to an AC analysis, or during a DC analysis. It does not mean the AC small signal voltage on node 10. If the DC operating point value for node 10 was 2, the capacitance would be evaluated as 1n + 2*2n = 5n. The constant value, 5n, would be used in AC analysis.

FREQ attribute

If <fexpr> is used, it replaces the value determined during the operating point. <fexpr> may be a simple number or an expression involving frequency domain variables. The expression is evaluated during AC analysis as the frequency changes. For example, suppose the <fexpr> attribute is this:

1n + 1E-9*V(1,2)*(1+10m*log(f))

In this expression F refers to the AC analysis frequency variable and V(1,2) refers to the AC small signal voltage between nodes 1 and 2. Note that there is no time-domain equivalent to <fexpr>. Even if <fexpr> is present, <value> will be used in transient analysis.

Initial conditions

The initial condition assigns an initial voltage across the capacitor.

Stepping effects

The VALUE attribute and all of the model parameters may be stepped. If VALUE is stepped, it replaces <value>, even if it is an expression. The stepped value may be further modified by the quadratic and temperature effects.

Quadratic effects

If [model name] is used, <value> is multiplied by a factor, QF, a quadratic function of the time-domain voltage, V, across the capacitor.

QF = 1+ VC1V + VC2V2

This is intended to provide a subset of the old SPICE 2G POLY keyword, which is no longer supported.

378 Chapter 22: Analog Devices

Temperature effects

The temperature factor is computed as follows:

If [model name] is used, <value> is multiplied by a temperature factor, TF.

TF = 1+TC1(T-Tnom)+TC2(T-Tnom)2

TC1 is the linear temperature coefficient and is sometimes given in data sheets as parts per million per degree C. To convert ppm specs to TC1 divide by 1E6. For example, a spec of 1500 ppm/degree C would produce a TC1 value of 1.5E-3.

T is the device operating temperature and Tnom is the temperature at which the nominal capacitance was measured. T is set to the analysis temperature from the Analysis Limits dialog box. TNOM is determined by the Global Settings TNOM value, which can be overridden with a .OPTIONS statement. T and Tnom may be changed for each model by specifying values for T_MEASURED, T_ABS, T_REL_GLOBAL, and T_REL_LOCAL. See the .MODEL section of Chapter 20, "Command Statements", for more information on how device operating temperatures and Tnom temperatures are calculated.

Monte Carlo effects

LOT and DEV Monte Carlo tolerances, available only when [model name] is used, are obtained from the model statement. They are expressed as either a percentage or as an absolute value and are available for all of the model parameters except the T_parameters. Both forms are converted to an equivalent tolerance percentage and produce their effect by increasing or decreasing the Monte Carlo factor, MF, which ultimately multiplies the final value.

MF = 1 ± tolerance percentage /100

If tolerance percentage is zero or Monte Carlo is not in use, then the MF factor is set to 1.0 and has no effect on the final value.

The final capacitance used in the analysis, cvalue, is calculated as follows:

cvalue = value * C * QF * TF * MF

Model statement form

.MODEL <model name> CAP ([model parameters])

Examples

.MODEL CMOD CAP (C=2.0 LOT=10% VC1=2E-3 VC2=.0015)

.MODEL CEL CAP (C=1.0 LOT=5% DEV=.5% T_ABS=37)

379

Model parameters

 

 

 

Name

Parameter

Units

Default

C

Capacitance multiplier

 

1

VC1

Linear voltage coefficient

V-1

0

VC2

Quadratic voltage coefficient

V-2

0

TC1

Linear temperature coefficient

°C-1

0

TC2

Quadratic temperature coefficient

°C-2

0

T_MEASURED

Measured temperature

°C

 

T_ABS

Absolute temperature

°C

 

T_REL_GLOBAL

Relative to current temperature

°C

 

T_REL_LOCAL

Relative to AKO temperature

°C

 

Noise effects

There are no noise effects included in the capacitor model.

380 Chapter 22: Analog Devices

Dependent sources (linear)

Schematic format

PART attribute <name>

Example

DEP1

VALUE attribute <value>

Example 10

These ideal, linear, two-port functions transform the input voltage or current to an output voltage or current. Input voltage is the voltage between the plus and minus input leads. Positive input current is defined as into the plus input lead.

Model equations

Part

Equation

IOFI

Iout(Iin) = valueIin

IOFV

Iout(Vin) = valueVin

VOFV

Vout(Vin) = valueVin

VOFI

Vout(Iin) = valueIin

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 22-2 Dependent sources-linear

381

Dependent sources (SPICE E, F, G, H devices)

Standard SPICE formats:

Syntax of the voltage-controlled voltage source

E<name> <plusout> <minusout> [POLY(<k>)] n1p n1m

+ [n2p n2m...nkp nkm] p0 [p1...pk] [IC=c1[,c2[,c3...[,ck]]]]

Syntax of the current-controlled current source

F<name> <plusout> <minusout> [POLY(<k>)] v1 [v2...vk] + p0 [p1...pk] [IC=c1[,c2[,c3...[,ck]]]]

Syntax of the voltage-controlled current source G<name> <plusout> <minusout> [POLY(<k>)] +n1p n1m [n2p n2m...nkp nkm] p0 [p1...pk] [IC=c1[,c2[,c3...[,ck]]]]

Syntax of the current-controlled voltage source

H<name> <plusout> <minusout> [POLY(<k>)] v1 [v2...vk] + p0 [p1...pk] [IC=c1[,c2[,c3...[,ck]]]]

Standard PSpice supported formats:

Extended syntax of the voltage-controlled voltage source

[E | G]<name> <plusout> <minusout> VALUE = {<expression>}

[E | G]<name> <plusout> <minusout> TABLE{<expression>} = + <<input value>,<output value>>*

[E | G]<name> <plusout> <minusout> LAPLACE {<expression>} = + {<Laplace transfer function>}

[E | G]<name> <plusout> <minusout> FREQ + {<expression>} = [KEYWORD]

+<<frequency value>,<magnitude value>,<phase value>>*

n1p is the first positive controlling node. n1m is the first negative controlling node. nkp is the k'th positive controlling node. nkm is the k'th negative controlling node. p0 is the first polynomial coefficient.

pk is the k'th polynomial coefficient.

v1 is the voltage source whose current is the first controlling variable.

382 Chapter 22: Analog Devices

vk is the voltage source whose current is the k'th controlling variable. c1 is the 1'st initial condition.

ck is the k'th initial condition.

SPICE Examples

E2 7 4 POLY(2) 10 15 20 25 1.0 2.0 10.0 20.0

G2 7 4 POLY(3) 10 15 20 25 30 35 1.0 2.0 3.0 10.0 20.0 30.0 F2 7 4 POLY(2) V1 V2 1.0 2.0 10.0 20.0

H2 7 4 POLY(3) V1 V2 V3 1.0 2.0 3.0 10.0 20.0 30.0 E1 10 20 FREQ {V(1,2)} = (0,0,0) (1K,0,0) (10K,0.001,0)

L1 10 20 TABLE{V(5,6)*V(3)} = {(0,0,0) (1K,0,0) (2K,-20,0)} L2 10 20 LAPLACE {V(5,6)} = {1/(1+.001*S+1E-8*S*S)}

Schematic format

The schematic attributes are similar to the standard SPICE format without the <plusout> and <minusout> node numbers. The TABLE, VALUE, LAPLACE, and FREQ features are not supported in the schematic versions of the E, F, G, and H devices. These features are supported in the Function and Laplace devices, described later in this chapter.

PART attribute <name>

Example

G1

VALUE attribute

[POLY(<k>)] n1p n1m [n2p n2m...nkp nkm] p0 [p1...pk] + [IC=c1[,c2[,c3...[,ck]]]]

[POLY(<k>)] n1p n1m [n2p n2m...nkp nkm] p0 [p1...pk] + [IC=c1[,c2[,c3...[,ck]]]]

[POLY(<k>)] v1 [v2...vk] p0 [p1...pk] [IC=c1[,c2[,c3...[,ck]]]]

[POLY(<k>)] v1 [v2...vk] p0 [p1...pk] [IC=c1[,c2[,c3...[,ck]]]]

Examples

POLY(2) 10 15 20 25 1.0 2.0 10.0 20.0

POLY(3) 10 15 20 25 30 35 1.0 2.0 3.0 10.0 20.0 30.0

POLY(2) V1 V2 1.0 2.0 10.0 20.0

POLY(3) V1 V2 V3 1.0 2.0 3.0 10.0 20.0 30.0

383

Model equations

Figure 22-3 Dependent sources-SPICE poly

When the POLY keyword is not used, the general equation for the dependent source function is:

F = p0 + p1V1 + p2V12+ p3V13+... pkV1k

F is the output value of the dependent voltage or current source. V1 is the k independent variable value.

p0, p1, p2...pk are the k +1 polynomial coefficients.

When the POLY keyword is used, the polynomial is computed as follows

F = Σn pj Πn VkEk j = 0 k = 1

The values of the exponents E1, E2, E3, ..., En are chosen by a procedure which is best understood by referring to Table 22-1. For a description of how the LAPLACE and FREQ versions work, see the Laplace Sources section of this chapter and the intoduction to Chapter 21, "Analog Behavioral Modeling."

384 Chapter 22: Analog Devices

 

Number of input variables (Order)

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

2

 

3

 

 

 

4

 

 

 

 

 

 

Coefficient

E1

E1 E2

E1 E2 E3

E1 E2 E3 E4

 

 

 

 

 

 

 

 

 

 

 

P0

0

0

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

 

 

P1

1

1

0

1

0

0

1

0

0

0

 

 

 

 

 

 

 

 

 

 

 

P2

2

0

1

0

1

0

0

1

0

0

 

 

 

 

 

 

 

 

 

 

 

P3

3

2

0

0

0

1

0

0

1

0

P4

4

1

1

2

0

0

0

0

0

1

P5

5

0

2

1

1

0

2

0

0

0

 

 

 

 

 

 

 

 

 

 

 

P6

6

3

0

1

0

1

1

1

0

0

 

 

 

 

 

 

 

 

 

 

 

P7

7

2

1

0

2

0

1

0

1

0

 

 

 

 

 

 

 

 

 

 

 

P8

8

1

2

0

1

1

1

0

0

1

 

 

 

 

 

 

 

 

 

 

 

P9

9

0

3

0

0

2

0

2

0

0

 

 

 

 

 

 

 

 

 

 

 

P10

10

4

0

3

0

0

0

1

1

0

 

 

 

 

 

 

 

 

 

 

 

P11

11

3

1

2

1

0

0

1

0

1

 

 

 

 

 

 

 

 

 

 

 

P12

12

2

2

2

0

1

0

0

2

0

 

 

 

 

 

 

 

 

 

 

 

P13

13

1

3

1

2

0

0

0

1

1

 

 

 

 

 

 

 

 

 

 

 

P14

14

0

4

1

1

1

0

0

0

2

P15

15

5

0

1

0

2

3

0

0

0

 

 

 

 

 

 

 

 

 

 

 

P16

16

4

1

0

3

0

2

1

0

0

 

 

 

 

 

 

 

 

 

 

 

P17

17

3

2

0

2

1

2

0

1

0

 

 

 

 

 

 

 

 

 

 

 

P18

18

2

3

0

1

2

2

0

0

1

 

 

 

 

 

 

 

 

 

 

 

P19

19

1

4

0

0

3

1

2

0

0

 

 

 

 

 

 

 

 

 

 

 

Table 22-1 Polynomial exponents

385

The lightly shaded parts of the table mark the coefficients used for summing the input variables. The heavily shaded portions of the table mark the coefficients used for forming a product of the input variables. Other combinations of polynomial products are shown in the rest of the table.

For example, to create a voltage source whose value equals the sum of three input voltages, use this:

E1 4 0 POLY(3) 1 0 2 0 3 0 0 1 1 1

This creates a voltage source whose output is a third-order polynomial function of three sets of differential voltages.

Input variable 1 = V(1) - V(0)= V(1)= voltage on node 1

Input variable 2 = V(2) - V(0)= V(2)= voltage on node 2

Input variable 3 = V(3) - V(0)= V(3)= voltage on node 3

The exponents E1=1, E2=1, and E3=1 are chosen from the p1, p2, and p3 rows, respectively, of the 3'rd order column. The output of this source is:

V =p0V10V20V30+ p1V11V20V30+ p2V10V21V30+ p3V10V20V31

V = p0+ p1V1+p2V2+p3V3

V =0 + 1V1+1V2+1V3

V =V1+V2+V3

To create a current source whose value equals the product of the current flowing in two sources, use this:

F1 3 0 POLY(2) V1 V2 0 0 0 0 1

This creates a current source whose output is a second order polynomial function of the current flowing in the sources V1 and V2.

Input variable 1 = I1= current flowing through V1

Input variable 2 = I2 = current flowing through V2

The exponents E1=1 and E2=1 are chosen from the p4 row and second order col-

umn. The output of this source is:

 

 

 

 

 

 

 

I = p

I

0I 0+ p

I 1I

0+ p I 0

I

1+ p

I

2I

0+ p I 1I 1

0

1

 

2

1

1

2

 

2

1

2

 

3

1

 

2

 

4

1

2

I = 0I

0I 0+ 0I

1I 0+ 0I 0I 1+ 0I

2I 0+ 1I 1I

1

 

 

 

1

2

1

 

2

 

1

2

 

 

1

2

 

1

2

 

 

 

I = I1I2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

386 Chapter 22: Analog Devices

Соседние файлы в папке Micro-Cap v7.1.6
  • #
    06.06.20171.32 Кб60model.CNT
  • #
    06.06.201776.72 Кб62MODEL.HLP
  • #
    06.06.20173.72 Кб60NETHASP.INI
  • #
    06.06.2017450 б59os.dat
  • #
    06.06.2017545 б63READ.ME
  • #
    06.06.20173.31 Mб68RM.PDF
  • #
    06.06.2017226.69 Кб61setup.bmp
  • #
    06.06.201795 б59SETUP.INI
  • #
  • #
    06.06.201749 б60setup.lid
  • #
    06.06.20172.04 Mб60Standard.cmp