Добавил:
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.23 If, if-else, case

if

vpiCondition

if else

vpiElseStmt

 

-> location

 

int: vpiLineNo

 

str: vpiFile

 

expr stmt stmt

case expr

-> case type

vpiCondition

 

int: vpiCaseType

 

-> location

int: vpiLineNo str: vpiFile

case item

 

expr

 

-> location

int: vpiLineNo str: vpiFile

stmt

vpiStmt

NOTES

1—The case item shall group all case conditions which branch to the same statement.

2—vpi_iterate() shall return NULL for the default case item since there is no expression with the default case.

Copyright © 2009 Accellera Organization, Inc.

276

 

Accellera

Analog and Mixed-signal Extensions to Verilog HDL

Version 2.3.1, June 1, 2009

11.6.24 Assign statement, deassign, force, release, disable

force

assign stmt

-> location

int: vpiLineNo str: vpiFile

deassign

release

-> location

int: vpiLineNo str: vpiFile

disable

-> location

int: vpiLineNo str: vpiFile

expr

vpiRhs

expr

vpiLhs

expr

vpiLhs

vpiScope function

task named fork named begin

277

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

Accellera

 

Version 2.3.1, June 1, 2009

VERILOG-AMS

11.6.25 Callback, time queue

callback expr

-> cb info

 

p_cb_data:

prim term

vpi_get_cb_info()

stmt

time queue

vpiParent

time queue

-> time vpi_get_time()

NOTES

1—To get information about the callback object, the routine vpi_get_cb_info() can be used.

2—To get callback objects not related to the above objects, the second argument to vpi_iterate() shall be NULL. 3—The time queue objects shall be returned in increasing order of simulation time.

4—vpi_iterate() shall return NULL if there is nothing left in the simulation queue.

5—If any events after read only sync remain in the current queue, then it shall not be returned as part of the iteration.

Copyright © 2009 Accellera Organization, Inc.

278

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