Top Banner
Lecture 12: Registers and Counters Aby K George, ECE Department, Wayne State University Syed M. Mahmud, Ph.D ECE Department Wayne State University
14

Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Jul 26, 2018

Download

Documents

vonhu
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Lecture 12: Registers and Counters

Aby K George, ECE Department, Wayne State University

Syed M. Mahmud, Ph.DECE Department

Wayne State University

Page 2: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Contents

• Registers

• Shift Registers

• Ripple Counters

• Synchronous Counters

• Other Counters

Chapter 6 ECE 2610 – Digital Logic 1 2

Page 3: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Registers• A register is a group of flip-flops (FFs), each one of which shares a

common clock and is capable of storing one bit of information.

• 𝑛-bit register -> 𝑛 FFs

• A counter is also a register that goes through a predetermined sequence of binary states.

• Clear and Preset pins of the FFs can be used to initialize the FFs.

Chapter 6 ECE 2610 – Digital Logic 1 3

Page 4: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Register with Parallel Load

• The transfer of new information to the register is called loading or updating the register.

• If all the bits of the register are loaded simultaneously with a common clock pulse, then the loading is said to be in parallel.

• The simultaneous changes in all the inputs is difficult to achieve.

• To make the register content unchanged, there are two ways• Inputs must held constant

• Clock must be inhibited from the circuit

• Inserting gates into the clock path is not good.

Chapter 6 ECE 2610 – Digital Logic 1 4

Page 5: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Register with Parallel Load

Chapter 6 ECE 2610 – Digital Logic 1 5

Page 6: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Shift Register

• A register capable of shifting the binary information held in each cell to its neighboring cell, in a selected direction, is called a shift register.

Chapter 6 ECE 2610 – Digital Logic 1 6

Page 7: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Universal Shift Register

Chapter 6 ECE 2610 – Digital Logic 1 7

Page 8: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Counters

• A register that goes through a prescribed sequence upon the application of input pulse is called counter.

• The sequence may be binary sequence or other sequences.

• The counter that follows binary number sequence is called binary counter.

• 𝑛-bit counter consists of 𝑛 FFs, and can count from 0 to 2𝑛 − 1

• Two categories:• Ripple counter

• Synchronous counter

Chapter 6 ECE 2610 – Digital Logic 1 8

Page 9: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Binary Ripple Counter

• Output of FF connected to the clock input of the next FF.

• Works with toggling mode of FFs. (T=1, J=K=1, D=Q’)

• Frequency divider

Chapter 6 ECE 2610 – Digital Logic 1 9

Page 10: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

RippleCounters

Chapter 6 ECE 2610 – Digital Logic 1 10

Page 11: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Synchronous Counters

• Clock pulses are applied to all the FFs

• Follows the synchronous sequential circuit design procedure.

• Procedure:• Make the state diagram

• Draw the state table with present state and next state.

• Based on the FF you are using, generate the FF inputs using the excitation table.

• Simplify the Boolean functions for FF inputs.

• Draw the circuit.

Chapter 6 ECE 2610 – Digital Logic 1 11

Page 12: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Example: 3-bit Up-Counter using T FF

Chapter 6 ECE 2610 – Digital Logic 1 12

Page 13: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Summary

• How to design a register?

• What is a shift register?

• How to design a ripple counter?

• How to design a synchronous counter?

• What is the difference between ripple counter and synchronous counter?

Chapter 6 ECE 2610 – Digital Logic 1 13

Page 14: Lecture 12: Registers and Counters - ece.eng.wayne.eduece.eng.wayne.edu/~smahmud/ECECourses/ECE2610/LectureNotes/Le… · Lecture 12: Registers and Counters Aby K George, ECE Department,

Homework 6

• 6.6

• 6.7

• 6.12

• 6.17

• 6.23

• 6.24

• 6.26

• 6.28

Chapter 6 ECE 2610 – Digital Logic 1 14