Chapter 10 – Digital System Projects Using HDL Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458.

Slides:



Advertisements
Similar presentations
3-13 Alternate Logic-Gate Representations
Advertisements

Exclusive-OR and Exclusive-NOR Gates
Counter Circuits and Applications
Interfacing to the Analog World
Chapter 13 Shift Registers
Multivibrators and the 555 Timer
Programmable Interval Timer
Figure 8–1 A 2-bit asynchronous binary counter
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 10.1 Sequential Logic  Introduction  Bistables  Memory Registers  Shift.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Figure 7–1 Two versions of SET-RESET (S-R) latches
Chapter 10 Flip-Flops and Registers Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. William Kleitz.
Digital Systems: Principles and Applications, 10e By Ronald J. Tocci, Neal S. Widmer, and Gregory L. Moss © 2007 Pearson Education, Inc. Pearson Prentice.
Chapter 3 Basic Logic Gates
Counter Circuits and VHDL State Machines
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
P Address bus Data bus Read-Only Memory (ROM) Read-Write Memory (RAM)
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
CPEN Digital System Design Chapter 9 – Computer Design
EET 1131 Unit 12 Shift Registers
Synchronous Sequential Circuit Design Digital Clock Design.
EET 1131 Unit 11 Counter Circuits  Read Kleitz, Chapter 12, skipping Sections and  Homework #11 and Lab #11 due next week.  Quiz next week.
Figure 6–1 Logic symbol for a half-adder. Open file F06-01 to verify operation. Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education,
Lab 5 :JK Flip Flop and Counter Fundamentals:
Digital Fundamentals Floyd Chapter 9 Tenth Edition
Synchronous Sequential Circuit Design
Arithmetic Operations and Circuits
Chapter 1_4 Part II Counters
Chapter 7 Counters and Registers
Figure 1–1 Graph of an analog quantity (temperature versus time). Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education, Inc. Upper.
Figure 9–1 The flip-flop as a storage element.
Sept EE24C Digital Electronics Project Design of a Digital Alarm Clock.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
Figure 5–1 An example of AND-OR logic. Open file F05-01 to verify the operation. Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education,
Chapter 4 Programmable Logic Devices: CPLDs with VHDL Design Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Lecture 11 – Design Concepts.
Digital Fundamentals Floyd Chapter 1 Tenth Edition
Chapter 6 – Digital Arithmetic: Operations & Circuits
Chapter 9 – MSI Logic Circuits Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved.
©2008 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
Chapter 7 – Counters and Registers
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
Counter Application (Part B) By : Pn Siti Nor Diana Ismail CHAPTER 3.
Introduction to Chapter 7
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Introduction to Chapter 3  Now that we understand the concept of binary numbers, we will study ways of describing how systems using binary logic levels.
Chapter 3 Basic Logic Gates William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper Saddle River,
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Introduction to Chapter 5  Logic circuits studied so far have outputs that respond immediately to inputs at some instant in time.  We now introduce the.
Chapter 0 deSiGn conCepTs EKT 221 / 4 DIGITAL ELECTRONICS II.
FIGURE 11-1 Bit assignments for the Timer Control, Mask, and Flag Register Peter Spasov Microcontroller Technology: The 68HC11, Fourth Edition Copyright.
Anurag Dwivedi. Basic Block - Gates Gates -> Flip Flops.
Counter Circuits and VHDL State Machines
EKT 221 : Chapter 4 Computer Design Basics
Floyd Digital Fundamentals, 9/e Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Slide 1 Digital Fundamentals.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights Reserved Floyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
COUNTERS Why do we need counters?
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Floyd Digital Fundamentals, 9/e Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Slide 1 Digital Fundamentals.
Copyright ©2009 by Pearson Higher Education, Inc. Upper Saddle River, New Jersey All rights reserved. Digital Fundamentals, Tenth Edition Thomas.
EKT124 Digital Electronics 1 Introduction to Digital Electronics
Combinational Logic Design
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Digital Fundamentals with PLD Programming Floyd Chapter 10
ECE 434 Advanced Digital System L12
Chapter 13 – Programmable Logic Device Architectures
Digital Fundamentals Floyd Chapter 1 Tenth Edition
Counters.
Presentation transcript:

Chapter 10 – Digital System Projects Using HDL

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Selected areas covered in this chapter: –Analyzing operation of systems made of several components covered earlier in this textbook. –Describing an entire project with one HDL file. –Describing the process of hierarchical project management. –Dividing a project into manageable pieces. –Using Quartus II software tools to implement a hierarchical modular project. –Developing strategies to test the operation of digital circuits. Chapter 10 Objectives

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-1 Small Project Management Hardware description languages were created for management of large digital systems: –Documentation, simulation testing & synthesis of working circuits. The Altera software tools are specifically designed to work with managing projects. The general steps are: –Overall definition. –Strategic planning to break the project into small pieces. –Synthesis and testing of each piece. –System integration and testing.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-1 Small Project Management Definition of the project: –How many bits of data are needed? –How many devices are controlled by the outputs? –What are the names of each input and output? –Are the inputs and outputs active-HIGH or active-LOW? –What are the speed requirements? –Do I fully understand how this should operate? –What will define successful completion of the project?

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-1 Small Project Management In the strategy for dividing the project into manageable pieces, requirements are: –There must be a way to test each piece. –They must fit together to make up the whole system. –We must know the nature of all the signals that interconnect the pieces. –The exact operation of each block must be thoroughly defined and understood. –We must have a clear vision of how to make each block work.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-1 Small Project Management Synthesis and testing: –After the subsystem is built, or the HDL code written, a plan for testing must be developed. The simulation must include all possible inputs and responses. –If a subsystem is thought to be working perfectly but fails under an untested condition, the entire project can be affected.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-1 Small Project Management System integration and testing –Subsystems are assembled and tested as a unit. –This is the stage where unforeseen details surface. The importance of time cannot be overstated. –Most facets of the project will take 2-3 times longer than thought.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-2 A Stepper Motor Driver A steper motor driver demonstrates a typical application of counters in combination with decoding circuits. –The stepper motor and how it operates. Each state transition involves turning off one coil and simultaneously turning on another coil.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-2 A Stepper Motor Driver A summary of stepper motor operating modes:

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-2 A Stepper Motor Driver Strategic planning—key requirements: –A sequential counter circuit to control the outputs in three of the modes. In the last mode, output follows the control input

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-2 A Stepper Motor Driver Strategic planning—steps to completion: –Build an up/down counter. –Make each decoded sequence work with the counter. –Make the mode inputs select one decoder sequence and add in the direct drive option. Success will be realized when the circuit follows the states shown, in either direction, for each mode sequence, and passes the four cin signals directly to cout in mode 3.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-2 A Stepper Motor Driver Synthesis and testing –Verify the counter counts up, and down through the 8 states. –Add one of the decoded outputs and test. –Additional count sequences are variations of code already tested.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-2 A Stepper Motor Driver Synthesis and testing

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-2 A Stepper Motor Driver The circuit is working.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-3 A Keypad Encoder Encode a 16 key keypad to 4-bit binary output A Keypad Encoder Because keypads are often interfaced to a computer bus system, encoded outputs should have tristate enables.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-3 A Keypad Encoder Strategic planning—major circuit blocks: –A ring counter with active LOW outputs.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-3 A Keypad Encoder –Two encoders for the row and column numbers. Strategic planning—major circuit blocks: Each state of this counter must be encoded to generate a two-bit binary row number. Each column value must be encoded to generate a two-bit binary column number.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-3 A Keypad Encoder –Key press detection and tri-state enable circuits. Strategic planning—major circuit blocks:

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-3 A Keypad Encoder Simulation of the scanning keypad encoder.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-4 Digital Clock Project A digital clock is a common counter application. –Display is given in hour, minutes, seconds. –A precise frequency is required. Battery operated devices use a crystal oscillator. 60 Hz ac power line frequency is also used.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-4 Digital Clock Project Project Specifications.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-4 Digital Clock Project Block diagram for a clock using the 60 Hz power line frequency. 60 Hz is passed through a Schmitt trigger to produce square pulses at 60 pps.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-4 Digital Clock Project Block diagram for a clock using the 60 Hz power line frequency. A MOD 60 counter divides 60 to 1 pps.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-4 Digital Clock Project Block diagram for a clock using the 60 Hz power line frequency. Stages are synchronously cascaded.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-4 Digital Clock Project Detail of HOURS section circuit.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-4 Digital Clock Project Large, complex problems go through multiple levels of problem decomposition. –Referred to as a hierarchy. At each level, the interconnections between blocks should be as simple as possible. –With clear vision of function, a testing plan, and a watch for common elements that can be reused.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-4 Digital Clock Project The top level block of the hierarchy. The four subsections in the second level of the hierarchy.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-4 Digital Clock Project The complete hierarchy of the clock project. Simulation of the MOD-6 counter.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-6 Frequency Counter Project A frequency counter is a circuit that can measure & display the frequency of a signal. –The frequency of a periodic waveform is the number of cycles per second. Shaping each cycle of the frequency into a digital pulse allows a digital circuit to count the cycles. –Enabling a count of cycles (pulses) of the incoming waveform during a precisely specified period of time. The sampling interval.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-6 Frequency Counter Project Length of the sampling interval determines the range of frequencies that can be measured. –A longer interval provides improved precision for low frequencies—but will overflow at high frequencies. –A shorter interval provides less precise measurement of low frequencies. But can measure a much higher maximum frequency without exceeding the upper limit of the counter.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-6 Frequency Counter Project Basic frequency counter block diagram.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-6 Frequency Counter Project Frequency counter timing diagram.

Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss 10-6 Frequency Counter Project Timing and control block for frequency counter. The timing and control block provides the “brains” for the frequency counter

END