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

HALF_ADDER

The last piece of the design is the Half_Adder entity (see Figure 6), which is instantiated twice in each Full_Adder entity, for a total of eight times. The interface and body of the half adder are shown in Listing 4. Again, signal assignment statements are used to generate the required logic function.

Figure 6ýAn XOR gate and an AND gate are used to make a half adder.

 

Listing 4 ýThese statements describe the internal operation of the Half_Adder.

Bear in mind that the focus of this design is to implement a 4-bit ripple adder using VHDL. You may have many questions about how the half adder works, or why the OR gate is required in the full adder, or why I did not start with the half adder and work my way up. The first two questions can be answered by reviewing your digital textbook. The third question almost answers itself during a design. With experience, you will discover that adding layer after layer of detail is a natural process, after the big picture is known.

PUTTING IT ALL TOGETHER

All of the design entities for the 4-bit ripple adder are shown in Listing 5. At this point, I should pause to review what has been accomplished. The design began with a high-level specification of a 4-bit ripple adder, the RIP4 entity. Then, in line with the nature of top-down design, the next level of the design was detailed, showing how the Full_Adder entity (used as a component in RIP4) was designed. Then the Half_Adder component of the Full_Adder entity was described as well, completing the design.

Listing 5ýHere you can see the entire VHDL specification for the 4-bit ripple adder.

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