Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

Similar documents
Course Administration

Engr354: Digital Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

Chapter. Synchronous Sequential Circuits

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Analysis of Clocked Sequential Circuits

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Chapter 5 Synchronous Sequential Logic

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

ECE 341. Lecture # 2

ELCT201: DIGITAL LOGIC DESIGN

Sequential Circuits: Latches & Flip-Flops

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Other Flip-Flops. Lecture 27 1

Synchronous Sequential Logic

L5 Sequential Circuit Design

Introduction to Sequential Circuits

CS 261 Fall Mike Lam, Professor. Sequential Circuits

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

1. Convert the decimal number to binary, octal, and hexadecimal.

Administrative issues. Sequential logic

Part II. Chapter2: Synchronous Sequential Logic

CHAPTER 4: Logic Circuits

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

CHAPTER1: Digital Logic Circuits

CHAPTER 4: Logic Circuits

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

Chapter 3 Unit Combinational

CH 11 Latches and Flip-Flops

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

Digital Logic Design I

Experiment 8 Introduction to Latches and Flip-Flops and registers

Synchronous Sequential Logic. Chapter 5

6. Sequential Logic Flip-Flops

Sequential Logic Circuits

Chapter 5: Synchronous Sequential Logic

RS flip-flop using NOR gate

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Lecture 11: Synchronous Sequential Logic

Last time, we saw how latches can be used as memory in a circuit

MUX AND FLIPFLOPS/LATCHES

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

RS flip-flop using NOR gate

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Chapter 5 Sequential Circuits

Digital Circuits ECS 371

Chapter 5 Sequential Systems. Introduction

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Lecture 7: Sequential Networks

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

Lecture 8: Sequential Logic

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

Sequential Design Basics

Chapter 5 Sequential Circuits

Unit 11. Latches and Flip-Flops

CPS311 Lecture: Sequential Circuits

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Flip-Flops and Sequential Circuit Design

Introduction to Digital Logic Missouri S&T University CPE 2210 Flip-Flops

Combinational / Sequential Logic

ECE 331 Digital System Design

COMP2611: Computer Organization. Introduction to Digital Logic

ECE 301 Digital Electronics

Combinational vs Sequential

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

Final Exam review: chapter 4 and 5. Supplement 3 and 4

ELCT201: DIGITAL LOGIC DESIGN

Logic Design II (17.342) Spring Lecture Outline

EE292: Fundamentals of ECE

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Logic Design II (17.342) Spring Lecture Outline

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

Synchronous Sequential Logic

Switching Circuits & Logic Design

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

EEC 118 Lecture #9: Sequential Logic. Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation

Chapter 8 Sequential Circuits

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis

Registers and Counters

Synchronous Sequential Logic

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

Introduction to Microprocessor & Digital Logic

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Chapter 3. Boolean Algebra and Digital Logic

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

MC9211 Computer Organization

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

Transcription:

Spring 27 EE 363: Computer Organization Chapter 5: The Processor: atapath & Control - Avinash Kodi epartment of Electrical Engineering & Computer Science Ohio University, Athens, Ohio 457 E-mail: kodi@ohio.edu Website: http://oucsace.cs.ohiou.edu/~avinashk/ee46a.htm Course Outline CPU Performance & Evaluation Instruction Set Architecture Computer Arithmetic Processor: atapath and Control Pipelining Cache and Main Memory

Processor: atapath and Control Review: Combinational Circuits Boolean algebra, basic gates, adders (done previously) Review: Sequential Circuits Latches, Flip-Flops, Memory cell, Registers Verilog Free versions available from Aldec and ilinx ISE atapath and Control Single Cycle atapath Implementation Multiple Cycle atapath Implementation SR-Latch Latch: The output state is changed whenever the appropriate inputs change S R S R 2

SR-Latch Latch: The output state is changed whenever the appropriate inputs change S R S R undefined As long as R and S remain, then the value of (and bar) will remain unchanged This value is stored in this circuit This is the basic memory cell Transparent Latch Flip-Flop: The output state is changed only on a clock edge S G R G Next state is set State retained C 3

Regular -Latch Response Gating Signal (instead of clock) Edge-Triggered -Flip Flop Rising Edge Trigger Falling Edge Trigger P 2 2 G G 2 8 4

SR Flip Flop S R Rising Edge Trigger S R Next state ( + ) No Change =, Set (after active edge) =, Reset (after active edge) Not allowed S S P S 2 R R P R 2 9 JK Flip-Flop (J = S, K = R) J K Rising Edge Trigger J K Next state ( + ) No Change =, Set (after active edge) =, Reset (after active edge) + = J + K (Characteristic Equation) J S P S 2 K R P R 2 5

T Flip Flop T Flip Flop, called as Toggle FF is frequently used in building counters T + + = T (Characteristic Equation) Falling edge triggered Negative Edge-Triggered (Master-Slave) ata q C C Clock C 6

-Flip Flop (positive edge triggered) ata q C C Clock C FF Summary Flip-Flop Characteristic Table JK Flip-Flop J K + Operation No Change Reset Set Complement Flip-Flop + Operation Reset Set SR Flip-Flop S R + Operation No Change Reset Set? Undefined T Flip-Flop T + Operation No Change Complement 4 7

FF Transition Input Codes Using FF state tables we can derive the input conditions that will cause specific transitions in each FF output 4 possible transitions: & T FFs have welldefined input conditions in each case J-K FF has on t Care () conditions Key to follow sequential logic circuit design examples (i.e. counters) FF Outputs FF Inputs (t) (t+) T J-K - - - - 5 FF Excitation Table Flip-Flop Excitation Table JK Flip-Flop + J K Flip-Flop + SR Flip-Flop + S R T Flip-Flop + T 6 8

Analysis by Signal Tracing and Timing Charts Analysis steps: Assume an initial state of FFs (all FFs reset to unless specified) For the input sequence, determine the circuit output(s) and FF inputs etermine the new set of FF states after the next active clock edge etermine the output(s) that corresponds to the new states 7 Two Types of Clocked Sequential Circuits Moore Machine: If the output of a sequential circuit is a function of the present state only Mealy Machine: If the output of a sequential circuit is a function of both the present state and the input 8 9

State Tables and Graphs State Table Construction Step : etermine the FF input equations and output equations from the circuit Step 2: erive the next state equation for each FF from input equations from the circuit FF: + = T FF: + = T SR FF: + = S + R JK FF: + = J + K Step 3: Plot a next state map for each FF Step 4: Combine the maps to form a state table 9 Example of Moore s Machine (/3) Z A A B B A B Z = A B A = B B = + A 2

Example of Moore s Machine (2/3) Step : FF input equations and output equations: Z = A B A = B B = + A Step 2: Next state equations for the FF are: A + = B B + = + A Step 3: Corresponding K-maps for A + and B + 2 Example of Moore s Machine (3/3) Step 4: Combine the K-maps into transition table shown here from which states can be derived A + B + = = Z S Present State Next State = = Present Output (Z) S S3 S S S S2 S2 S S2 S3 S2 S S3 S2 S 22

Example of Mealy Machine (/3) A A B B B K A J A K B J B A A B Z B A A + = J A A + K A A = BA + A B + = J B B + K B B = B + (A) B = B + B + A B Z = A B + B + A 23 Example of Mealy Machine (2/3) Step : FF input equations and output equations: J A = B, K A = J B =, K B = A Step 2: Next state equations for the FF are: A + = BA + A B + = B + B + A B Z = A B + B + A Step 3: Corresponding K-maps for A + B + and Z 24 2

Example of Mealy Machine (3/3) Step 4: Combine the K-maps into transition table shown here from which states can be derived A + B + = = Z = = Present State Next State = = Present Output (Z) = = S S S S S S2 S2 S2 S S3 S3 S / S / / S / S3 / / / S2 / 25 esign of a Sequence etector (/3) Circuit examines a string of s and s applied to input and generates an output Z = only when the prescribed sequence occurs with the assumption that can only change between clock cycles. esign the circuit so that the input sequence ending in will produce an output Z = coincident with the last. The circuit does not reset when a occurs. = Z = Is this a Mealy machine or Moore machine? 26 3

esign of a Sequence etector (2/3) / Present State Next State = = Present Output (Z) = = S / S S S S S2 S / S2 / / S / S2 S S A + B + = = Z = = 27 esign of a Sequence etector (3/3) A + = B B + = Z = A 28 4

How about Moore Machine? Present State Next State = = Present Output (Z) S / S / S S S S S2 S S3 / S2 / S2 S S3 S3 S2 S A + B + = = Z 29 5