EE295 - ASIC Design Using VHDL

Attributes

Assignment: Read Ch 6



Outline:

PreDefined Attributes

Value Type

Type:

type'HIGH
Returns Upper Bound of a Type/SubType
type'LOW
Returns Lower Bound of a Type/SubType
type'LEFT
Returns Left Bound of a Type/SubType
type'RIGHT
Returns Right Bound of a Type/SubType

Array:

array'LENGTH
Returns the length of an array

Block:

architecture_name'STRUCTURE
True if Architecture/Block is Comprised of Components and Passive Processes; False Otherwise
architecture_name'BEHAVIOR
True if Architecture/Block Contains No Components; False Otherwise

Function Kind

A Function Call is Executed to Evaluate..

Function Type - Return Type Values

type'POS(value)
Position Number of Given Value
type'VAL(value)
Value of Given Position
type'SUCC(value)
Next Value After Given Value
type'PRED(value)
Previous Value
type'LEFTOF(value)
Value Left of Value
type'RIGHTOF(value)
Value Right of Value

Function Array - Return Array Bounds

array'HIGH(n)
Upper Bound
array'LOW(n)
Lower Bound
array'LEFT(n)
Left Bound of Index
array'RIGHT(n)
Right Bound of Index

Function Signal - Return Signal History Information

signal'EVENT
Returns true if an event occurred in the current delta; otherwise false
signal'ACTIVE
Returns true if a transaction occurred in the current delta; otherwise false
signal'LAST_EVENT
Returns time since last event
signal'LAST_VALUE
Returns value of signal prior to last event
signal'LAST_ACTIVE
Returns time since last transaction

Signal Kind

signal'DELAYED[(time)]
signal'STABLE[(time)]
signal'QUIET[(time)]
signal'TRANSACTION

'BASE

'RANGE / 'REVERSE_RANGE

User Defined Attributes

From Chap 8; Pg 211-213


How was the class? Send your comments to jswift@vnet.ibm.com
Return to Class Home Page
Copyright 1995, James Swift
Copying this document without the permission of the author is prohibited and a violation of international copyright laws.