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

Accellera

 

Version 2.3.1, June 1, 2009

VERILOG-AMS

11.6.8 Nets

vpiPortInst

ports

 

 

 

ports

 

 

 

 

 

 

 

 

vpiHighConn

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

vpiLowConn

 

 

 

 

 

nets

 

 

 

module

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

net

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

vpiDelay

 

 

 

 

vpiParent

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

expr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

node

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

discipline

 

 

 

 

 

 

 

 

 

 

vpiBit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

net bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

expr

vpiLeftRange

expr

vpiRightRange

assign stmt

vpiLoad

force prim term cont assign

vpiDriver

ports

 

path term

tchk term

vpiIndex expr

-> delay vpi_get_delays()

-> expanded

bool: vpiExpanded

-> implicitly declared bool: vpiImplicitDecl

-> location

int: vpiLineNo str: vpiFile

-> name

str: vpiName str: vpiFullName

-> net decl assign

-> strength

bool: vpiNetDeclAssign

int: vpiStrength0

-> net type

int: vpiStrength1

int: vpiChargeStrength

int: vpiNetType

-> value

-> scalar

vpi_get_value()

bool: vpiScalar

vpi_put_value()

-> scalared declaration

-> vector

bool: vpiExplicitScalared

bool: vpiVector

-> size

-> vectored declaration

int: vpiSize

bool: vpiExplicitVectored

-> domain

 

int vpiDomain

 

NOTES

1—For vectors, net bits shall be available regardless of vector expansion.

2—Continuous assignments and primitive terminals shall be accessed regardless of hierarchical boundaries. 3—Continuous assignments and primitive terminals shall only be accessed from scalar nets or bit selects.

4—For vpiPortInst and vpiPort, if the reference handle is a bit or the entire vector, the relationships shall return a handle to either a port bit or the entire port, respectively.

5—For implicit nets, vpiLineNo shall return 0, and vpiFile shall return the filename where the implicit net is first referenced.

6—Only active forces and assign statements shall be returned for vpiLoad. 7—Only active forces shall be returned for vpiDriver.

8—vpiDriver shall also return ports which are driven by objects other than nets and net bits.

Copyright © 2009 Accellera Organization, Inc.

260

 

Accellera

Analog and Mixed-signal Extensions to Verilog HDL

Version 2.3.1, June 1, 2009

11.6.9 Regs

ports

scope

vpiPortInst

vpiLowConn vpiHighConn

vpiDriver

regs

vpiLoad

reg

vpiParent

vpiLeftRange

vpiRightRange

vpiBit

 

reg bit

vpiIndex

-> location

int: vpiLineNo str: vpiFile

-> name

str: vpiName str: vpiFullName

-> scalar

bool: vpiScalar

-> size

int: vpiSize

-> value

vpi_get_value() vpi_put_value()

-> vector

bool: vpiVector

ports

force assign stmt

prim term

cont assign

expr expr tchk term expr

NOTES

1—Continuous assignments and primitive terminals shall be accessed regardless of hierarchical boundaries. 2—Continuous assignments and primitive terminals shall only be accessed from scalar regs and bit selects. 3—Only active forces and assign statements shall be returned for vpiLoad and vpiDriver.

261

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

Accellera

 

Version 2.3.1, June 1, 2009

VERILOG-AMS

11.6.10 Variables, named event

ports

 

 

vpiPortInst

ports

 

 

 

 

 

vpiLowConn

vpiHighConn

 

scope

 

variables

 

expr

 

 

vpiIndex

 

 

 

 

 

expr

vpiLeftRange

integer var

vpiParent

 

 

 

 

expr

vpiRightRange

time var

vpiParent

 

 

 

 

 

 

 

 

real var

 

 

 

 

-> array

 

 

 

 

 

bool: vpiArray

 

var select

 

 

-> location

 

 

 

 

-> location

 

 

 

int: vpiLineNo

 

 

 

 

str: vpiFile

 

int: vpiLineNo

 

 

-> name

 

str: vpiFile

str: vpiName

-> value

str: vpiFullName

vpi_get_value()

-> size

vpi_put_value()

int: vpiSize

 

-> value

vpi_get_value() vpi_put_value()

-> domain

int: vpiDomain

scope

 

 

 

named event

 

 

-> location

int: vpiLineNo str: vpiFile

-> name

str: vpiName str: vpiFullName

NOTE—vpiLeftRange and vpiRightRange shall be invalid for reals, since there can not be arrays of reals.

Copyright © 2009 Accellera Organization, Inc.

262

 

Accellera

Analog and Mixed-signal Extensions to Verilog HDL

Version 2.3.1, June 1, 2009

11.6.11 Memory

scope

vpiLeftRange

expr

 

 

expr

vpiRightRange

vpiParent

memory

-> location

int: vpiLineNo str: vpiFile

-> name

 

expr

str: vpiName

 

 

 

 

 

 

str: vpiFullName

 

 

vpiIndex

 

 

-> size

 

 

 

vpiLeftRange

int: vpiSize

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

memory word

 

 

 

 

 

 

 

 

 

 

 

 

 

vpiRightRange

 

 

-> location

 

 

int: vpiLineNo

 

 

str: vpiFile

-> name

str: vpiName str: vpiFullName

-> size

int: vpiSize

-> value

vpi_get_value() vpi_put_value()

NOTES

1—vpiSize for a memory shall return the number of words in the memory. 2—vpiSize for a memory word shall return the number of bits in the word.

expr expr

263

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

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