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

TIMING EXAMPLES

As always, time can be your friend or your enemy in a digital circuit. For applications that have critical time requirements or for those that wish to simulate a digital circuit down to the femtosecond, VHDL provides the necessary timing features. One way to specify the delay of a logic operation is to indicate its time directly in the body (see Listing 14).

architecture HA of Half_Adder is

begin

Y <= W xor X after 5 ns;

Z <= W and X after 5 ns;

end HA;

Listing 14ýUse this code for specifying gate delay in a VHDL design.

Here, the delays of the XOR gate and the AND gate are fixed at 5 ns. Figure 8 shows a simplified timing diagram illustrating the effect of gate delay in a two-input gate. Table 2 shows the units of time available in VHDL.

Figure 8ýThe gate delay between the input and output can be seen here.

 

Unit

Definition

fs

femtosecond (10ý15 s)

ps

picosecond (10ý12 s)

ns

nanosecond (10ý9 s)

us

microsecond (10ý6 s)

ms

millisecond (10ý3 s)

sec

seconds

min

minutes

hr

hours

Table 2ýHere you can see what the units of time in VHDL are.

VHDL provides an inertial delay model that essentially eliminates the effects of short-duration logic level changes. For example, a gate with a delay of 8 ns may experience a high-level pulse for 3 ns. The inertial delay model ignores the 3 ns pulse because it is less than the propagation delay.

Getting back to the five-input AND gate design entity covered previously, which design do you prefer now?

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