Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
VAMS-LRM-2-3-1.pdf
Скачиваний:
43
Добавлен:
05.06.2015
Размер:
3.73 Mб
Скачать

 

Accellera

Analog and Mixed-signal Extensions to Verilog HDL

Version 2.3.1, June 1, 2009

capacitor #(.c(1p), .ic(1)) C1 (vcc, out); capacitor #(.c(272.7p)) C2 (out, b1); capacitor #(.c(3n)) C3 (b1, gnd); resistor #(.r(10k)) R1 (b1, gnd); capacitor #(.c(3n)) C4 (b2, gnd); resistor #(.r(10k)) R2 (b2, gnd);

endmodule

E.4 Preferred primitive, parameter, and port names

Table E.1 shows the required names for primitives, parameters, and ports which are otherwise unnamed in SPICE. For connection by order instead of by name, the ports and parameters shall be given in the order listed. The default discipline of the ports for these primitives shall be electrical and their descriptions shall be inout.

Table E.1—Names for primitives, parameters, and ports in SPICE

Primitive

Port name

Parameter name

 

 

 

 

 

Behavior

 

 

 

 

 

resistor

p, n

r, tc1, tc2

V = I r (1 + tc1 T + tc2 T2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

c, ic

1

 

t

 

 

 

 

 

capacitor

p, n

V = --c

0 Idτ + ic

 

 

 

 

inductor

p, n

l, ic

I = l 0t

Vdτ + ic

 

 

 

 

iexp

p, n

dc, mag,

 

 

val0

 

 

 

 

t td0

 

 

 

 

 

---------------

 

 

phase, val0,

 

 

 

 

 

 

 

 

 

val1, td0,

 

 

 

 

 

 

td0 – t

 

 

 

I =

 

val1

(val1 – dc) e tau0

td0 < t td1

 

 

tau0, td1,

 

 

 

 

 

 

---------------td1t

 

 

 

 

 

 

 

 

 

 

 

 

tau1

 

 

val0

(val0 – I

td1

) e tau1

td1 < t

 

 

 

 

 

 

 

 

 

 

 

 

with

Itd1 the value of I at time t

= td1 .

 

 

 

 

 

 

 

 

 

 

 

ipulse

p, n

dc, mag,

 

val0

 

 

 

 

t t0

 

 

 

 

 

 

 

phase, val0,

 

val0 + (val1 – val0) ------------

t0 < t t1

 

 

val1, td,

 

 

 

 

 

 

t t0

 

 

 

 

 

 

 

 

 

rise

 

 

 

rise, fall,

I =

val1

 

 

 

 

t1 < t t2

 

 

width, period

 

 

 

 

 

 

t t2

 

 

 

 

val1 + (val0 – val1)

 

t2 < t t3

 

 

 

 

------------

 

 

 

 

 

 

 

 

fall

 

 

 

 

 

val0

 

 

 

 

t3 < t t4

 

 

 

 

 

 

 

 

with the following definitions ( n is a non-negative integer): t0 = td + n period

t1 = rise + td + n period

t2 = width + rise + td + n period

t3 = fall + width + rise + td + n period t4 = td + (n + 1) period

371

Copyright © 2009 Accellera Organization, Inc. All rights reserved.

Accellera

 

Version 2.3.1, June 1, 2009

VERILOG-AMS

Table E.1—Names for primitives, parameters, and ports in SPICE (continued)

Primitive

Port name

Parameter name

 

Behavior

 

 

 

 

 

 

ipwl

p, n

dc, mag,

I = wave[i + 1] +

 

 

 

 

phase, wave

 

(wave[i + 3] wave[i + 1])

t wave[i]

 

 

 

 

--------------------------------------------------------

 

 

 

 

 

 

wave[i + 2] wave[i]

 

 

 

for wave[i] ≤ t < wave[i + 2]

and 0 i < n , n = len(wave)

 

 

 

I = wave[n – 1]

 

 

 

 

 

for wave[n – 2] < t

 

 

 

 

 

 

 

 

isine

p, n

dc, mag,

I = offset + ampl

 

 

 

 

phase, off-

(1

FAM cos(2π fAM (t td) ϕAM))

 

 

set, ampl,

(1

damp (t td))

 

 

 

 

freq, td,

cos(2π freq

 

 

 

 

damp,

(1

FFM cos(2π fFM (t td))) (t td) ϕSIN)

 

 

sinephase,

 

 

 

 

 

 

ammodindex,

with FAM = ammodindex, fAM = ammodfreq, ϕAM =

 

 

ammodfreq,

 

 

 

 

 

 

ammodphase,

ammodphase, FFM = fmmodindex, fAM = fmmodfreq, and

 

 

fmmodindex,

 

 

 

 

 

 

fmmodfreq

ϕSIN =sinephase.

 

 

 

 

 

 

 

 

 

vexp

p, n

dc, mag,

 

dc

 

t td0

 

 

 

 

phase, val0,

 

---------------

 

 

 

val1, td0,

 

td0 – t

 

 

 

V =

val1 – (val1 – dc) e tau0

td0 < t td1

 

 

tau0, td1,

 

 

td---------------1t

 

 

 

 

 

 

 

 

tau1

 

val0 – (val0 – Vtd1) e tau1

td1 < t

 

 

 

 

 

 

 

 

 

 

with Vtd1 the value of V at time t

= td1 .

 

 

 

 

 

 

 

vpulse

p, n

dc, mag,

 

val0

 

t t0

 

t t0

 

 

phase, val0,

 

val0 + (val1 – val0)

t0 < t t1

 

 

val1, td,

 

------------

 

 

 

 

rise

 

 

 

rise, fall,

V =

val1

 

t1 < t t2

 

 

width, period

 

 

t t2

 

 

 

 

val1 + (val0 – val1)

t2 < t t3

 

 

 

 

------------

 

 

 

 

fall

 

 

 

 

 

val0

 

t3 < t t4

 

 

 

 

 

 

 

 

with the following definitions ( n is a non-negative integer):

 

 

 

t0 = td + n period

 

 

 

 

 

t1 = rise + td + n period

 

 

 

 

 

t2 = width + rise + td + n period

 

 

 

 

t3 = fall + width + rise + td + n period

 

 

 

t4 = td + (n + 1) period

 

 

 

 

 

 

 

 

 

Copyright © 2009 Accellera Organization, Inc.

372

 

Accellera

Analog and Mixed-signal Extensions to Verilog HDL

Version 2.3.1, June 1, 2009

Table E.1—Names for primitives, parameters, and ports in SPICE (continued)

Primitive

Port name

Parameter name

Behavior

 

 

 

 

vpwl

p, n

dc, mag,

V =

 

 

phase, wave

wave[i + 1] +

 

 

 

t wave[i]

 

 

 

(wave[i + 3] wave[i + 1]) --------------------------------------------------------

 

 

 

wave[i + 2] wave[i]

 

 

 

for wave[i] ≤ t < wave[i + 2] and 0 i < n , n = len(wave)

 

 

 

I = wave[n – 1]

 

 

 

for wave[n – 2] < t .

 

 

 

 

vsine

p, n

dc, mag,

V = offset + ampl

 

 

phase, off-

(1 – FAM cos(2π fAM (t td) ϕAM))

 

 

set, ampl,

(1 – damp (t td))

 

 

freq, td,

cos(2π freq

 

 

damp,

(1 – FFM cos(2π fFM (t td))) (t td) ϕSIN)

 

 

sinephase,

 

 

 

ammodindex,

with FAM = ammodindex, fAM = ammodfreq, ϕAM =

 

 

ammodfreq,

 

 

 

ammodphase,

ammodphase, FFM = fmmodindex, fAM = fmmodfreq, and

 

 

fmmodindex,

 

 

 

fmmodfreq

ϕSIN =sinephase.

 

 

 

 

tline

t1, b1,

z0, td, f, nl

 

 

t2, b2

 

 

 

 

 

 

vccs

sink, src,

gm

I(sink, src) = gm V(ps, ns)

 

ps, ns

 

 

 

 

 

 

vcvs

p, n,

gain

V(p, n) = gain V(ps, ns)

 

ps, ns

 

 

 

 

 

 

diode

a, c

area

 

 

 

 

 

bjt

c, b, e, s

area

 

 

 

 

 

mosfet

d, g, s, b

w, l, ad, as,

 

 

 

pd, ps, nrd,

 

 

 

nrs

 

 

 

 

 

jfet

d, g, s

area

 

 

 

 

 

mesfet

d, g, s

area

 

 

 

 

 

Although in a SPICE context the primitives for diode, bjt, mosfet, jfet, and mesfet can be used only in a model definition, in Verilog-AMS they may be used directly in a paramset statement as described in 7.5.

373

Copyright © 2009 Accellera Organization, Inc. All rights reserved.

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