ChipCenter Questlink
SEARCH CHIPCENTER
Search Type:
Search for:




Knowledge Centers
Product Reviews
Data Sheets
Guides & Experts
News
International
Ask Us
Circuit Cellar Online
App Notes
NetSeminars
Careers
Resources
FAQ
EE Times Network
Electronics Group Sites

An Introduction to VHDL


Circuit Cellar Online
THE MAGAZINE FOR COMPUTER APPLICATIONS
Circuit Cellar Online offers articles illustrating creative solutions
and unique applications through complete projects, practical
tutorials, and useful design techniques.

AN INTRODUCTION TO VHDL

Technically Speaking Designing Hardware with Software

by James Antonakos

Start ý Levels of Design ý The Interface ý The Body ý Full_Adder ý Half _Adder ý Identifiers, Data Types, and Operators ý Examples ý The Five-Input AND Gate ý The 2:4 Decoder ý Timing Examples ý Other Methods ý Sources and PDF

IDENTIFIERS, DATA TYPES, AND OPERATORS

All three items discussed in this section can be found in the 4-bit ripple adder design. Identifiers are names that are chosen for the various signals and entities in the design. Identifiers have the following properties:

ý any length, however, avoid long identifiers

ý not case sensitive, so upper or lowercase may be used (unless some other style rules are in effect)

ý legal symbols are AýZ, aýz, 0ý9, and the underscore

ý the first symbol must be a letter

ý the last symbol can not be an underscore

The data types used in the ripple adder were bit and bit_vector. Several other data types are available in VHDL, as indicated in Table 1.

Data type

Range of values

Boolean

True, False

Bit

0, 1

Bit_vector

Array of bits

Character

Single ASCII symbol

String

Array of characters

Integer

Depends on software

Real

Depends on software

Natural

Zero to the maximum integer value

Positive

One to the maximum integer value

Time

Depends on software

Table 1ýThere are several VHDL data types that may be used in a design.


Several operators are also used in the ripple adder, such as <= (assignment), -- (comment), and three logical operators: AND, OR, and XOR. Additional operators are arithmetic (+, -, *, /, mod, rem, abs, **), relational (>, >=, <, <=, =, and /=), and shift (sla, sra, sll, srl, rol, and ror).

You may have noticed that the <= operator has two different meanings. In one case, it means assignment and in the other it means less-than-or-equal-to. The VHDL compiler determines which interpretation is valid based on the context of where it is used. VHDL allows for other operators, and even certain identifiers, to be overloaded as well.

PREVIOUSNEXT


Circuit Cellar provides up-to-date information for engineers. Visit www.circuitcellar.com for more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com or subscribe online. ýCircuit Cellar, the Magazine for Computer Applications. Posted with permission.
 
Click here to get your listing up.

Copyright © 2003 ChipCenter-QuestLink
About ChipCenter-Questlink  Contact Us  Privacy Statement   Advertising Information  FAQ