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

Similar documents
MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Philadelphia University Student Name: Student Number:

Design of Sequential Circuits

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

6 Synchronous State Machine Design

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

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

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

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

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Analysis of clocked sequential networks

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

Design at the Register Transfer Level

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

CHW 261: Logic Design

Sample Test Paper - I

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

ELCT201: DIGITAL LOGIC DESIGN

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Unit 12 Problem Solutions

ELCT201: DIGITAL LOGIC DESIGN

Synchronous Sequential Logic

Logic Design II (17.342) Spring Lecture Outline

Philadelphia University Student Name: Student Number:

ECE 341. Lecture # 3

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

Philadelphia University Faculty of Engineering

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Preparation of Examination Questions and Exercises: Solutions

DE58/DC58 LOGIC DESIGN DEC 2014

Sequential Circuits Sequential circuits combinational circuits state gate delay

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

FSM model for sequential circuits

DIGITAL LOGIC CIRCUITS

EECS150 - Digital Design Lecture 21 - Design Blocks

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

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

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

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

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

Lecture 17: Designing Sequential Systems Using Flip Flops

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

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

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

ELE2120 Digital Circuits and Systems. Tutorial Note 9

Sequential Logic Circuits

ALU A functional unit

Fundamentals of Boolean Algebra

Chapter 5 Synchronous Sequential Logic

ECE 2300 Digital Logic & Computer Organization

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

Sequential Circuit Analysis

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

PGT104 Digital Electronics. PGT104 Digital Electronics

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

Digital Electronics Circuits 2017

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

Synchronous Sequential Circuit Design. Digital Computer Design

EXPERIMENT Bit Binary Sequential Multiplier

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

CSE370 HW6 Solutions (Winter 2010)

Spiral 2-1. Datapath Components: Counters Adders Design Example: Crosswalk Controller

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec 09 Counters Outline.

Sequential vs. Combinational

Chapter 4. Sequential Logic Circuits

CprE 281: Digital Logic

DIGITAL LOGIC CIRCUITS

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

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

Layout of 7400-series Chips Commonly Used in. CDA 3101: Introduction to Computer Hardware and Organization

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

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

Digital Logic Design - Chapter 4

Digital Circuits and Systems

Digital Fundamentals

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

CSE140: Digital Logic Design Registers and Counters

Chapter 7. Sequential Circuits Registers, Counters, RAM

Chapter #7: Sequential Logic Case Studies Contemporary Logic Design

Lecture 10: Synchronous Sequential Circuits Design

Fundamentals of Digital Design

Shift Register Counters

CprE 281: Digital Logic

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

SYNCHRONOUS SEQUENTIAL CIRCUITS

CSC9R6 Computer Design. Practical Digital Logic

Different encodings generate different circuits

EECS150 - Digital Design Lecture 23 - FFs revisited, FIFOs, ECCs, LSFRs. Cross-coupled NOR gates


Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec09 Counters Outline.

Sequential Logic Worksheet

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

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

Chapter 3 Digital Logic Structures

Lecture 9: Digital Electronics

Transcription:

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

Outline Registers and Register Transfers Shift Registers Design of Binary Counters Counters for Other Sequences Counter Design Using SR and JK Flip- Flop (FFs) Derivation of Flip-Flop (FF) Input Equations

Registers and Register Transfers (1/8) In a D flip-flop (FF) Q + =D, triggered on the rising/falling edge ClrN clears Q asynchronously.

Registers and Register Transfers (2/8) Each flip-flop (FF) can store one bit of information. Four of them can form a register of 4 bits

Registers and Register Transfers (3/8) Alternatively, CE inputs can be used.

Registers and Register Transfers Bus notation. (4/8)

Registers and Register Transfers (5/8) Example 1: transfer data from one of two registers into a third register. En=1, what will be stored in Q? En=0, what will be stored in Q?

Registers and Register Transfers (6/8) Example 2: using a decoder in selecting register LdH What happens when E, F, LdG, LdH=1101? What happens when E, F, LdG, LdH=0011?

Registers and Register Transfers Accumulator (7/8) Only when Ad=1, the number X in the accumulator will be replaced with the sum of X and Y.

Registers and Register Transfers Accumulator (8/8) How to implement: mov A, 1101 ; save 1101 to the accumulator add A, 0011 ; add 0011 to the accumulator

Shift Registers (1/6) Q + =D Initial States: Q 3 =0 Q 2 =1 Q 1 =0 Q 0 =1 Shift=1 enables the clock and assume SI=1 Rising Edge Q 3+ =D3=SI Q 2+ =D2=Q3 Q 1+ =D1=Q2 Q 0+ =D0=Q1 Q 3+ =1 Q 2+ =0 Q 1+ =1 Q 0+ =0 SI is shifted in. Q 0 is shifted out.

Shift Registers (2/6) Before the rising edge: Q 3 Q 2 Q 1 Q 0 =1101 What are they after the rising edge?

Shift Registers (3/6) Can you design a four-bit shift/rotate register? Two external control signals are shift and rotate. shift&rotate can be 00/01/10

Shift Registers (4/6) 4-bit parallel-in, parallel-out shift register Sh L Q 3+ Q 2+ Q 1+ Q + 0 action 0 0 Q 3 Q 2 Q 1 Q 0 no change 0 1 D 3 D 2 D 1 D 0 load 1 X SI Q 3 Q 2 Q 1 right shift

Shift Registers (5/6) 4-bit parallel-in, parallel-out shift register (cont)

Shift Registers (6/6) How can we design a bi-directional shift register with two external control signals: S0 and S1? S 0 S 1 =00 nothing happens S 0 S 1 =01 shift right S 0 S 1 =10 shift left S 0 S 1 =11 load new contents

Design of Binary Counters (1/11) C B A Binary Counter CLK C 0 0 0 0 1 1 1 1 0 B 0 0 1 1 0 0 1 1 0 A 0 1 0 1 0 1 0 1 0 CLK

Design of Binary Counters (2/11) Design based on T flip-flops (FFs) Q + = T xor Q Truth table CBA C + B + A + 000 0 0 1 001 0 1 0 010 0 1 1 011 1 0 0 100 1 0 1 101 1 1 0 110 1 1 1 111 0 0 0 A changes state anyway (A + = A ). T A = 1 B + = A xor B T B = A C + = AB xor C T C = AB

Design of Binary Counters (3/11) Design based on T flip-flops (FFs) 3 bit counter

Design of Binary Counters (4/11) How can we design based on D flip-flops (FFs)? Q + = D A + = A D A = A = A xor 1 B + = A xor B D B = A xor B C + = AB xor C D C = AB xor C Note A = A xor 1 and A = A xor 0

Design of Binary Counters (5/11)

Design of Binary Counters (6/11) Up-down binary counter Two controls signals: U and D

Design of Binary Counters (7/11) Process of designing up-down counter Number of control signals: two (up and down) Number of possible control modes UD=10 counting up UD=01 counting down UD=00 no change UD=11 restricted

Design of Binary Counters (8/11) Process of designing up-down counter (cont) For each control mode, draw truth tables and decide the logic expressions UD=00 A + = A xor 0, B + = B xor 0, C + = C xor 0 UD=10 A + = A xor 1, B + = B xor A, C + = C xor AB UD=01 A + = A xor 1, B + = B xor A, C + = C xor A B Put them together. For example B + = U D (B xor 0)+ U D(B xor A )+ UD (B xor A) Can be realized using multiplexers.

Design of Binary Counters (9/11) Process of designing up-down counter (cont) In the textbook, these expressions are written as A + = A xor (U+D) B + = B xor (UA+DA ) C + = C xor (UBA+DB A )

Design of Binary Counters (10/11) Process of designing up-down counter (cont) Because Q + =D in D flip-flop (FFs), D A = A + = A xor (U+D) D B = B + = B xor (UA+DA ) D C = C + = C xor (UBA+DB A )

Design of Binary Counters (11/11)

Counters for Other Sequences (1/5) In some applications, the sequence of states of a counter is not in straight binary order.

Counters for Other Sequences (2/5) The method is very similar to the one for designing a binary counter. 1. A truth table that shows the relationship between current states and next states. 2. Decide the expressions for T, JK, SR, or D depending on which kind of flip-flop (FF) you are using.

Counters for Other Sequences (3/5) Inputs C B A C + B + A + 0 0 0 1 0 0 0 0 1 - - - 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 1 1 0 1 - - - 1 1 0 - - - 1 1 1 0 1 0 Outputs T C T B T A 1 0 0 X X X 0 0 1 0 1 1 0 1 1 X X X X X X 1 0 1 Say we are using T flipflop (FF).

Counters for Other Sequences (4/5) Next we need to develop the expressions for T A, T B, and T C. Note the variables are A, B, C

Counters for Other Sequences (5/5) How to design based on D flip-flop (FFs)? C B A C + B + A + 0 0 0 1 0 0 0 0 1 - - - 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 1 1 0 1 - - - 1 1 0 - - - 1 1 1 0 1 0 D C D B D A 1 0 0 - - - 0 1 1 0 0 0 1 1 1 - - - - - - 0 1 0

Counter Design Using S-R and J-K Flip-Flops (FF) (1/7) Steps for designing counters Draw truth table Problem specification C B A C + B + A + Decide the required values for flip-flop (FF) inputs Given current and next states, decide the required inputs. Decide the expressions for the inputs to FFs T=F(C, B, A) D=F(C, B, A) Etc. Minterms Karnaugh maps

Counter Design Using S-R and J-K Flip-Flop (FFs) (2/7) The easiest one Q + =D Q + T flip-flop (FF) Q + = Q xor T T = Q xor Q +

Counter Design Using S-R and J-K Flip-Flop (FFs) (3/7) SR (NOR based) Q Q + S R 0 0 0 0 0 1 0 1 1 0 1 0 0 1 1 1 0 0 1 0 Q Q + S R 0 0 0 X 0 1 1 0 1 0 0 1 1 1 X 0

Counter Design Using S-R and J-K Flip-Flop (FFs) (4/7) Counter based on SR C B A C + B + A + 0 0 0 1 0 0 0 0 1 - - - 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 1 1 0 1 - - - 1 1 0 - - - 1 1 1 0 1 0 S C R C S B R B S A R A 1 0 0 X 0 X X X X X X X 0 X X 0 1 0 0 X 0 1 0 1 X 0 1 0 1 0 X X X X X X X X X X X X 0 1 X 0 0 1

Counter Design Using S-R and J-K Flip-Flop (FFs) (5/7) Use Karnaugh maps to simplify. (Do not forget the do-not-care terms)

Counter Design Using S-R and J-K Flip-Flop (FFs) (6/7)

Counter Design Using S-R and J-K Flip-Flop (FFs) (7/7) JK Q Q + J K 0 0 0 0 0 1 0 1 1 0 1 1 1 0 0 1 1 1 1 1 0 0 1 0 Q Q + J K 0 0 0 X 0 1 1 X 1 0 X 1 1 1 X 0