COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Similar documents
課程名稱 : 數位邏輯設計 P-1/ /6/11

PGT104 Digital Electronics. PGT104 Digital Electronics

Digital Fundamentals

Synchronous Sequential Logic

ELCT201: DIGITAL LOGIC DESIGN

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

ECE 341. Lecture # 3

Sequential Logic Worksheet

Counters. We ll look at different kinds of counters and discuss how to build them

DE58/DC58 LOGIC DESIGN DEC 2014

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

Decoding A Counter. svbitec.wordpress.com 1

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Sample Test Paper - I

Philadelphia University Student Name: Student Number:

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Different encodings generate different circuits

CHW 261: Logic Design

Synchronous Sequential Logic. Chapter 5

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

Digital Circuits ECS 371

Digital Electronics Final Examination. Part A

Chapter #7: Sequential Logic Case Studies Contemporary Logic Design

Sequential Circuit Analysis

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

CSE370 HW6 Solutions (Winter 2010)

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

FYSE420 DIGITAL ELECTRONICS

CPE100: Digital Logic Design I

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Philadelphia University Student Name: Student Number:

Lecture 10: Synchronous Sequential Circuits Design

EECS150 - Digital Design Lecture 16 Counters. Announcements

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

Logic Design II (17.342) Spring Lecture Outline

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

Fundamentals of Digital Design

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Digital Logic Appendix A

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

課程名稱 : 數位邏輯設計 P-1/ /6/11

Design at the Register Transfer Level

CS221: Digital Design. Dr. A. Sahu. Indian Institute of Technology Guwahati

Show that the dual of the exclusive-or is equal to its compliment. 7

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Counters. Clocked sequential circuit whose state diagram contains a single cycle. Modulus number of states in the cycle. Counters with nonpower

ELCT201: DIGITAL LOGIC DESIGN

Synchronous Sequential Circuit Design. Digital Computer Design

Lecture (08) Synchronous Sequential Logic

ELE2120 Digital Circuits and Systems. Tutorial Note 9

CPE100: Digital Logic Design I

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

Sequential Circuits Sequential circuits combinational circuits state gate delay

EECS150 - Digital Design Lecture 23 - FSMs & Counters

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

CprE 281: Digital Logic

Shift Register Counters

CpE358/CS381. Switching Theory and Logical Design. Summer

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

EECS150 - Digital Design Lecture 25 Shifters and Counters. Recap

I. Motivation & Examples

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

Digital Electronics. Part A

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Preparation of Examination Questions and Exercises: Solutions

ELEN Electronique numérique

Chapter 7 Sequential Logic

Digital Fundamentals

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

The Design Procedure. Output Equation Determination - Derive output equations from the state table

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Lecture 14 Finite state machines

Chapter 7. Sequential Circuits Registers, Counters, RAM

Unit 7 Sequential Circuits (Flip Flop, Registers)


Digital Electronics II Mike Brookes Please pick up: Notes from the front desk

Sequential Logic Circuits

Lecture 17: Designing Sequential Systems Using Flip Flops

IT T35 Digital system desigm y - ii /s - iii

Exam for Physics 4051, October 31, 2008

Design of Sequential Circuits

6 Synchronous State Machine Design

FSM model for sequential circuits

Finite State Machine (FSM)

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Week-5. Sequential Circuit Design. Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.

Chapter 14 Sequential logic, Latches and Flip-Flops

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

Practice Final Exam Solutions

Transcription:

1 OEN 312 DIGIAL SYSEMS DESIGN - LEURE NOES oncordia University hapter 6: Registers and ounters NOE: For more examples and detailed description of the material in the lecture notes, please refer to the main textbook: Digital Design 3rd Edition, By Morris Mano, Publisher Prentice Hall, 3rd Edition All examples used in the lecture notes are from the above reference. Up-Down Binary ounters - he state table of the four-bit up counter with flip-flops is given below. Present State Next State Flip-Flop Inputs No. Q 3 Q 2 Q 1 Q 0 Q 3 Q 2 Q 1 Q 0 3 2 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 1 0 0 1 0 0 0 1 1 2 0 0 1 0 0 0 1 1 0 0 0 1 3 0 0 1 1 0 1 0 0 0 1 1 1 4 0 1 0 0 0 1 0 1 0 0 0 1 5 0 1 0 1 0 1 1 0 0 0 1 1 6 0 1 1 0 0 1 1 1 0 0 0 1 7 0 1 1 1 1 0 0 0 1 1 1 1 8 1 0 0 0 1 0 0 1 0 0 0 1 9 1 0 0 1 1 0 1 0 0 0 1 1 10 1 0 1 0 1 0 1 1 0 0 0 1 11 1 0 1 1 1 1 0 0 0 1 1 1 12 1 1 0 0 1 1 0 1 0 0 0 1 13 1 1 0 1 1 1 1 0 0 0 1 1 14 1 1 1 0 1 1 1 1 0 0 0 1 15 1 1 1 1 0 0 0 0 1 1 1 1 - his table shows that a bit changes when all of its less significant bits are equal to one (this is what one intuitively expects in an up counter). - Similarly, one can find the state table of a down counter, where a bit changes when all of its less significant bits are equal to zero. - One can design an up-down counter with an up and down control inputs, as shown in the following figure.

Up 2 Down A 0 A 1 A 2 A 3 L - It can be easily verified that when the external input Up is equal to 1, then no matter what the other external input, i.e. Down is, the circuit will operate as an up-counter. - When the external input Down is equal to 1 and the external input Up is equal to zero, then the circuit operates as a down-counter. - If both external inputs Up and Down are equal to zero, then the output of the flip-flops remain unchanged. - A binary counter with parallel load is shown in the following figure.

ount 3 Load I 0 A 0 I 1 A 1 I 2 A 2 I 3 A 3 lear L arry-output

4 - When the external input Load is equal to 1, then no matter what ount is, the input lines I 0, I 1, I 2 and I 3 will appear in the output of the flip-flops A 0, A 1, A 2 and A 3, respectively. - When, on the other hand, ount is equal to 1 and Load is equal to zero, then the circuit will operate as an up-counter. - When both external inputs Load and ount are equal to zero, then the flipflop outputs remain unchanged. BD ounter - A BD up counter is a digital system that counts from 0 to 9 as a decimal digit, and returns back to 0 to repeat the counting. - A BD counter can be built in a way similar to the binary counter. - he state table can be obtained as shown below. Present State Next State Output Flip-Flop Inputs No. Q 8 Q 4 Q 2 Q 1 Q 8 Q 4 Q 2 Q 1 y 8 4 2 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 0 0 1 0 0 0 0 1 1 2 0 0 1 0 0 0 1 1 0 0 0 0 1 3 0 0 1 1 0 1 0 0 0 0 1 1 1 4 0 1 0 0 0 1 0 1 0 0 0 0 1 5 0 1 0 1 0 1 1 0 0 0 0 1 1 6 0 1 1 0 0 1 1 1 0 0 0 0 1 7 0 1 1 1 1 0 0 0 0 1 1 1 1 8 1 0 0 0 1 0 0 1 0 0 0 0 1 9 1 0 0 1 0 0 0 0 1 1 0 0 1 - he output is, in fact, a carry out, which indicates that the numbers 0 to 9 have been counted once and a new set of BD codes are being counted. ounters with unused States n n - A sequential circuit with m states, where 2 1 < m < 2, will require n flip-flops, and as a result, the circuit will have 2 n m unused states. - For example, a counter with a prespecified sequence 000-001-010-100-101-110- 000 has two unused states 011 and 111, as shown in the following state table.

5 Present State Next State Flip-Flop Inputs A B A B A A B B 0 0 0 0 0 1 0 x 0 x 1 x 0 0 1 0 1 0 0 x 1 x x 1 0 1 0 1 0 0 1 x x 1 0 x 1 0 0 1 0 1 x 0 0 x 1 x 1 0 1 1 1 0 x 0 1 x x 1 1 1 0 0 0 0 x 1 x 1 0 x - o find the simplified flip-flop input expressions using -map, the terms corresponding to the unused states 011 and 111 are considered don t-care conditions. - For instance, the -map corresponding to A is as follows. B B B A 00 01 11 10 A 0 0 0 x 1 A 1 x x x x - he simplified Boolean expressions for the flip-flop inputs are as follows: = B = B A B = = B' A B = 1 = 1 - his leads to the following logic diagram for this system:

6 A B 1 L - From the logic circuit, one can find out what happens if the circuit starts from an unused state. - his can be easily figured out from the state diagram which is obtained below. 111 001 000 110 010 101 100 011 Ring ounter

7 - A ring counter is a register with circular shift, where only one flip-flop output is equal to one, and all other ones are zero. - A ring counter can be used to generate the timing signal for a circuit, where, for example, only one component of the system should get a set input and all other ones should get a zero input. - An example of a 4-bit ring counter is given below. Shift right 0 1 2 3 - A typical timing diagram of the above counter is as follows: L 0 1 2 3 n n - A ring counter with 2 bits (or 2 timing signals) can be implemented using a n- n bit binary counter and a n-to- 2 -line decoder. - For example, the above ring counter can be implemented as follows: 0 1 2 3 2 x 4 Decoder ount Enable 2-bit ounter

8 Start - he following circuit is a 4-bit ring counter with a Start line. Q 0 Q 1 Q 2 Q 3 D D D D L - When the Start line is equal to one, the left-most flip-flop is set and all other flipflops are reset, as required for a ring counter. Asynchronous ounter or Ripple ounter - Example: A three-bit ripple up-counter with flip-flops is given below. 1 L A 0 A 1 Least significant bit A 2 Most significant bit - A 0 toggles once after each clock edge. - he counting sequence is 0-1-2-3-4-5-6-7-0-, as shown below: A 2 A 1 A 0 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

9 - he timing diagram of the ripple counter given above, is as follows: L A 0 A 1 A 2 4 - As it can be seen from the above diagram, in reality because of the propagation delay, the counting will have some transition problem for a short period of time after the clock edge. For instance, right after 4, we will have 011-010-000-100 (instead of 000-100). - One can also use a D flip-flop to build a ripple counter, by connecting the input of each flip-flop to the Q of the same flip-flop. - A three bit ripple down-counter with flip-flops is given below. 1 L A 0 A 1 Least significant bit A 2 Most significant bit BD Ripple ounter 0000 0001 0010 0011 0100 1001 1000 0111 0110 0101

10 - It can be easily verified that: - Q 1 changes after each clock cycle. - Q 2 complements each time Q 1 changes from 1 to 0 while Q 8 is 0. - Q 2 remains at 0 while Q 8 is 1. - Q 4 complements each time Q 2 changes from 1 to 0. - Q 8 remains at 0 while Q 2 or Q 4 is 0. - When Q 2 and Q 4 both become equal to 1, then Q 8 complements as soon as Q 1 changes from 1 to 0. - Q 8 changes to 0 next time that Q 1 changes from 1 to 0. Reference: [1] Digital Design 3rd Edition, By Morris Mano, Publisher Prentice Hall, 3rd Edition.