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

samplehold

in, cntrl, out, sample, store, vthresh, cap

op1

op1.inp,

op1.inm,

op1.out,

op1.gain

op2

op2.inp,

op2.inm,

op2.out,

op2.gain

Figure 6-3: Hierarchical path names in a design

From within an analog block, it is possible to use hierarchical name referencing to access signals on an external branch, but not external analog variables or parameters. When accessing external branches, a branch signal (its potential or flow) can be monitored (probed); for source branches, contributions can be made to the output signal.

6.7.1 Usage of hierarchical references

The following usage rules and semantic restrictions shall be applied to analog identifiers referred hierarchically using an out of module reference (OOMR) in a mixed signal module:

Potential and flow access for named branches can be done hierarchically.

Potential access for unnamed branches can be done hierarchically, however the nets shall belong to the same domain, otherwise it shall be an error.

Hierarchical reference of an implicit net is allowed when the referenced net is first coerced to a specific discipline.

Access of parameters can be done hierarchically. However, parameter declaration statements shall not make out of module references (e.g., for setting default values).

Analog user defined functions can be accessed hierarchically.

It shall be an error to access analog variables hierarchically.

It shall be an error to access the flow of an unnamed hierarchical branch.

It shall be an error to hierarchically reference port branches.

It shall be an error to have potential and flow contributions to named or unnamed branches hierarchically.

It shall be an error to assign to a variable using hierarchical notation.

Hierarchical references to analog branches and nets can be done in both analog as well as digital blocks.

6.8 Scope rules

The following elements define a new scope in Verilog-AMS HDL:

modules

tasks

named blocks

functions

generate blocks

analog functions

An identifier shall be used to declare only one item within a scope. This rule means it is illegal to declare two or more variables which have the same name, or to name a task the same as a variable within the same module, or to give an instance the same name as the name of the net connected to its output. For generate blocks, this rule applies regardless of whether the generate block is instantiated. An exception to this is made

145

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

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