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

LOGIC DESIGN REVISTED


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.

LOGIC DESIGN REVISTED

Lessons from the Trenches

by George Martin

Start ý A Merger ý Make the Design Synchronous ý Toplevel ý Quadlogic ý Counters ý Catch That? ý Sources and PDF

TOPLEVEL

I implemented the interesting part of this design using Lattice Semiconductorýs Design Expert tools. The design consists of three schematicsýtoplevel, quadlogic, and counters.

Taking a look at toplevel (see Figure 1), you see the inputs A_IN and B_IN and two latches for each input. The first latch is for metastability, and the second is used to determine the changes in the values of the A_IN and B_IN inputs.

Figure 1ýThe toplevel schematic consists of the inputs A_IN and B_IN and two latches for each input.

If AB were 00 and then became 10, that change would represent one count up. Likewise, if AB were 11 and became 01, that would be one count down. The truth table for counting would look like what you see in Table 2.

OldAB

NewAB

Result

00

10

Up

10

11

Up

11

01

UP

01

00

Up

00

01

Down

01

11

Down

11

10

Down

10

00

Down

00

00

No change

10

10

No change

11

11

No change

01

01

No change

00

11

Error

10

01

Error

11

00

Error

01

10

Error

Table 2ýThis is what the truth table for counting would look like.

 

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