Combinational / Sequential Logic

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

Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic

Synchronous Sequential Logic. Chapter 5

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Sequential Logic Circuits

Chapter 5: Synchronous Sequential Logic

Synchronous Sequential Logic

Part II. Chapter2: Synchronous Sequential Logic

Synchronous Sequential Logic

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

Chapter. Synchronous Sequential Circuits

Unit 11. Latches and Flip-Flops

Chapter 5 Synchronous Sequential Logic

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

D Latch (Transparent Latch)

Digital Logic Design I

CHAPTER1: Digital Logic Circuits

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.

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

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

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

B.Tech CSE Sem. 3 15CS202 DIGITAL SYSTEM DESIGN (Regulations 2015) UNIT -IV

2 Sequential Circuits

Chapter 8 Sequential Circuits

Chapter 5 Sequential Circuits

Synchronous Sequential Logic

Logic Design. Flip Flops, Registers and Counters

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

Synchronous Sequential Logic

CHAPTER 4: Logic Circuits

Chapter 5 Sequential Circuits

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

Combinational vs Sequential

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

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

CHAPTER 4: Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

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

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

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Lecture 11: Synchronous Sequential Logic

CS8803: Advanced Digital Design for Embedded Hardware

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

Introduction to Sequential Circuits

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

MC9211 Computer Organization

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

Sequential Circuits: Latches & Flip-Flops

Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I


AIM: To study and verify the truth table of logic gates

ELCT201: DIGITAL LOGIC DESIGN

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

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

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

REPEAT EXAMINATIONS 2002

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

ELCT201: DIGITAL LOGIC DESIGN

Flip-Flops and Sequential Circuit Design

INTRODUCTION TO SEQUENTIAL CIRCUITS

Problems with D-Latch

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 2 Logistics

Advanced Digital Logic Design EECS 303


Using minterms, m-notation / decimal notation Sum = Cout = Using maxterms, M-notation Sum = Cout =

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

Chapter 3. Boolean Algebra and Digital Logic

Outline. CPE/EE 422/522 Advanced Logic Design L03. Review: Clocked D Flip-Flop with Rising-edge Trigger. Sequential Networks

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

Engr354: Digital Logic Circuits

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

Other Flip-Flops. Lecture 27 1

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

Lecture 8: Sequential Logic

Administrative issues. Sequential logic

Chapter 5. Introduction

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.

LAB #4 SEQUENTIAL LOGIC CIRCUIT

CPS311 Lecture: Sequential Circuits

Lecture 7: Sequential Networks

EE292: Fundamentals of ECE

Microprocessor Design

ECE 301 Digital Electronics

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

6. Sequential Logic Flip-Flops

COMP2611: Computer Organization. Introduction to Digital Logic

Outline. CPE/EE 422/522 Advanced Logic Design L04. Review: 8421 BCD to Excess3 BCD Code Converter. Review: Mealy Sequential Networks

Computer Architecture and Organization

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

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

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

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

The reduction in the number of flip-flops in a sequential circuit is referred to as the state-reduction problem.

Transcription:

Digital Circuit Design and Language Combinational / Sequential Logic Chang, Ik Joon Kyunghee University

Combinational Logic + The outputs are determined by the present inputs + Consist of input/output variables and logic gates + No memory / No feedback

Combinational Logic Design Procedure (Gate-level Design) 1. Decide input and output signals 2. Derive the truth table based on the relationship between inputs and outputs 3. Obtain the simplified Boolean Algebra 4. Draw the logic diagram and verify the design (manually or by simulation) cf. Behavioral Level and Data-flow Level Design

Sequential Logic + Outputs are function of inputs and present states + Present states are supplied by memory elements

Synchronous vs. Asynchronous + Synchronous: Controlled by periodical clock signal + Asynchronous: Controlled by non-periodical signal

Storage Elements: Latch vs. Flip-flop + Latch: Operates with clock level (level-sensitive) + Flip-flop: Controlled by clock transition (edgesensitive) + What is Registers and RAM?

SR Latch For two cross-coupled NOR gates, S=1,R=0 then Q=1 (set) S=0,R=1 then Q=0 (reset) S=0,R=0 then no change (keep condition) S=1,R=1 Q=Q =0 (undefined) For two cross-coupled NAND gates, S and R are inverted compared to the above.

D Latch D C D- latch Q Q Eliminate indeterminate state in SR latch Sensitive to the level of C - C=1, transparent - C=0, locked (no output change)

Edge-Triggered D Flip-Flop C=0 : master disable, slave enable C=1 : master enable, slave disable Negative-edge or Positive-edge?

Edge-Triggered D Flip-Flop (Cont.) D-type positive edge triggered flip flop - Consist of 3 SR-latches - Q changes only when C becomes 0 to 1

Other Flip-flops JK Flip-Flop - Performs three operations - Set(J), Reset(K), Complement(J=K=1) - D=JQ +K Q

Other Flip-flops T Flip-Flop - Complementing flip-flop - D=TQ +T Q

Analysis of Clocked Sequential Logic State Diagram (Behavioral Model) A(t+1)=Ax + Bx B(t+1)=A x Y=(A+B)x Circuit Diagram (Gate-level) State Equation State Table - Clocked sequential Logic can be described using finite state machines (Behavioral Model)

Circuit Diagram and State Equation A(t+1)=A(t)x(t) + B(t)x(t) B(t+1)=A (t)x(t) Y=[A(t)+B(t)]x (t)

State Table

State Diagram + Gate-level Design (Circuit Diagram): Need to know hardware implementation + Behavioral Model (State Diagram): Does not require the background of hardware implementation

Finite State Machine Model: Mealy Machine vs. Moore Machine

Moore vs. Mealy + Moore Machine: The outputs are determined by the present states only Outputs are changed at only clock edges Pros: Safe, Easy to debug Cons: Large memory size + Mealy Machine: The outputs are determined by both present states and inputs Outputs can be changed near clock edges Pros: Small memory size Cons: Complex + What is more preferred?

Design Procedure Automated Design Steps 1) Derive a state diagram or state table 2) Reduce the number of states if necessary (State Reduction) 3) Assign binary code to the state (State Assignment) 4) Make a HDL description and run logic synthesis using design compiler ( netlist) Manual Design Steps 1) Derive a state diagram or state table 2) Reduce the number of states if necessary (State Reduction) 3) Assign binary code to the state (State Assignment) 4) Choose the type of flip-flops to be used 5) Derive the flip-flop input equations and output equations 6) Draw the logic diagram

EQUIVALENT STATES + Two States, s i and s j Equivalent IFF Give Exact Same Output Sequence, For Any Possible Input Sequence X

State Reduction Algorithm + For N states, at least log 2 N Flip-Flops are necessary To reduce # of flip-flop, we need to reduce # of states + State Reduction Algorithm When two states are equivalent, one can be removed Repeat this until we are not able to find equivalent ones

State Reduction

State Reduction (Cont.)

STATE ASSIGNMENT + One-Hot State Encoding One Flip-Flop per State Simple Decoding Logic + Minimal State Encoding Use log 2 (#states) Flip-Flops Assignment of State Codes Impacts Amount of Combinational Logic

BCD TO EXCESS-3 CODE CONVERTER 0100 0101 +0011 +0011 0111 1000 LSB received first

STATE ASSIGNMENT GUIDELINES + Assign Adjacent State Codes States with same NS for given input States that are NS of same state States having same output for given input

ASSIGNMENT MAP AND TRANSITION TABLE + State Assignment Guidelines (1,2), (3,4), (5,6), (0,1,4,6), (2,3,5)

REALIZATION OF CODE CONVERTER

SETUP AND HOLD TIMES FOR D FLIP-FLOP

MAXIMUM FREQUENCY OF OPERATION

TIMING CONDITIONS + Clock period must be long enough to satisfy flip-flop setup time: t ck t pmax + t cmax + t su + Clock period should be long enough to satisfy flip-flop hold time t pmin + t cmin t h + External input t x t cxmax + t su + External input t y t h t cxmin

TIMING FOR EXTERNAL INPUT CHANGE

TIMING EXAMPLE + What s max frequency of operation of circuit? Min and max delays of inverter are 1ns and 3ns t pmin and t pmax are 5ns and 8ns Setup and hold times are 4ns and 2ns

TIMING EXAMPLE + What are safe regions for changes in X? Min and max delays of comb ckt are 2ns and 4ns t pmin and t pmax of flip-flop are 5ns and 10ns Setup and hold times are 8ns and 3ns

Typical Synchronous Design + Synchronous Design Clock Used to Synchronize Operation of All Flip-Flops + Control Section : Finite State Machine

+ Falling-Edge Devices TIMING CHART