FE REVIEW LOGIC. The AND gate. The OR gate A B AB A B A B 0 1 1

Similar documents
EET2411 DIGITAL ELECTRONICS

Other Flip-Flops. Lecture 27 1

EE292: Fundamentals of ECE

Chapter. Synchronous Sequential Circuits

Asynchronous (Ripple) Counters

Lecture 8: Sequential Logic

The NOR latch is similar to the NAND latch

RS flip-flop using NOR gate

Counter dan Register

MC9211 Computer Organization

Chapter 11 Latches and Flip-Flops

Digital Logic Design I

LATCHES & FLIP-FLOP. Chapter 7

RS flip-flop using NOR gate

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

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

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

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

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

Digital Circuits ECS 371

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

MODULE 3. Combinational & Sequential logic

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

Counters

Engr354: Digital Logic Circuits

SEMESTER ONE EXAMINATIONS 2002

Registers and Counters

Unit 11. Latches and Flip-Flops

Introduction to Sequential Circuits

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

10.1 Sequential logic circuits are a type of logic circuit where the output of the circuit depends not only on

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

REPEAT EXAMINATIONS 2002

Chapter 2. Digital Circuits

Digital Fundamentals: A Systems Approach

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

Sequential Logic and Clocked Circuits

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

Introduction to Microprocessor & Digital Logic

Logic. Andrew Mark Allen March 4, 2012

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

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

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Digital Fundamentals: A Systems Approach

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

Registers and Counters

CHAPTER1: Digital Logic Circuits

Chapter 4. Logic Design

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

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

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

D Latch (Transparent Latch)

CPS311 Lecture: Sequential Circuits

DIGITAL ELECTRONICS MCQs

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.

CHAPTER 6 COUNTERS & REGISTERS

CHAPTER 1 LATCHES & FLIP-FLOPS

Sequential Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

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.

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

Exercise 2: D-Type Flip-Flop

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

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

CS 61C: Great Ideas in Computer Architecture

Flip-Flops and Sequential Circuit Design

Computer Architecture and Organization

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

INTRODUCTION TO SEQUENTIAL CIRCUITS

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

Chapter 5: Synchronous Sequential Logic

Sequential Design Basics

CHAPTER 4: Logic Circuits

Chapter 5 Flip-Flops and Related Devices

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

Chapter 5 Synchronous Sequential Logic

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

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

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

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

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

FLIP-FLOPS AND RELATED DEVICES

CHAPTER 4: Logic Circuits

ASYNCHRONOUS COUNTER CIRCUITS

Chapter 5 Sequential Circuits

Flip-Flops and Registers

ELCT201: DIGITAL LOGIC DESIGN

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

6. Sequential Logic Flip-Flops

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

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

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

Transcription:

FE REVIEW LOGIC The AD gate f A, B AB The AD gates output will achieve its active state, ACTIVE HIGH, when BOTH of its inputs achieve their active state, ACTIVE E HIGH. A B AB f ( A, B) AB m (3) The OR gate 3 f A, B A B The OR gates output will achieve its active state, ACTIVE HIGH, when OE OR MORE of its inputs achieve their active state, ACTIVE E HIGH. A B A B f( A,B) A B m(,, 3)

The OT gate (Inverter) 4 f A A The OT gates output will achieve its active state, ACTIVE LOW, when ITS SIGLE input achieves its active state, ACTIVE HIGH. A f ( A) f ( A) A m ( ) The AD gate 5 f AB, AB The AD gates output will achieve its active state, ACTIVE LOW, when BOTH of its inputs achieve their active state, ACTIVE HIGH. A B AB AB f ( A, B) AB m (,,) The OR gate f AB, AB The OR gates output will achieve its active state, ACTIVE LOW, when OE OR MORE of its inputs achieve their active state, ACTIVE HIGH. A B A B A B f ( A, B) A B m ()

The XOR gate f AB, AB AB AB The XOR gates output will achieve its active state, ACTIVE HIGH, when A ODD # of its inputs achieve their active state, ACTIVE HIGH. A B A B f ( A, B) A B m (, ) A Few Boolean Rules a a a a a a a a a a a ab a a ab a b ab ab a ab abc ab ac a b ab 8 A B Combinational Logic Example 9 A B A BAC C AC A B AC A AC AB BC A AC ABBC AB AC a a b aaba AA CBA C A AB BC AA ACAB BC A BC 3

Another Boolean Example B A C AB A C A AB ACAAB ACA AB a a b AB ACAB AA B C ACAB ACAB ACAB State Table Example A B C f ABC,, A B C A,B,C f Flip-Flops 4

FF s and some Definitions 3 Synchronous Input: Controls the device based on the timing from a clock signal. When the clocking signal occurs, the synchronous input is allowed to affect the output. If the signal does not occur the synchronous input can not affect anything. Asynchronous Input Affects the output without waiting for a clocking signal. It IGORES the clock. Synchronous Input 4 Asynchronous Input Clock Input PRE D Clk CLR Asynchronous Input Outputs One is the inverse of the other ACTIVE HIGH OR LOW ACTIVE HIGH or LOW? The activity level of an input or output is determined by the existence of an inverting bubble on the terminal or not. Both the PRE and the CLR inputs below are ACTIVE LOW inputs. This means that a is required on the input in order for the input to affect the output. 5 5

PRE and CLR PRE Input The PRE input will cause the output to SET (go HIGH) when a is applied to the PRE input. This occurs ASYCHROOUSLY (without the clock). CLR Input The CLR input will cause the output to RESET (go LOW) when a is applied to the CLR input. This occurs ASYCHROOUSLY (without the clock). The CLOCK There are three types of clock inputs: Level Triggered (not used often) Leading Edge Triggered Trailing Edge Triggered (pictured below) Level Triggering 8 The problem with this type of triggering is that the input could change millions of times during each Level period, thus affecting the output millions of times.

Leading Edge Triggering 9 V(t) Clk time The Leading edge of each pulse will allow one and only one input event for each edge to affect the output. Trailing Edge Triggering V(t) Clk time The Trailing edge of each pulse will allow one and only one input event for each edge to affect the output. How the edge trigger is accomplished CLK CLK CLK CLK Leading CLKedge CLK CLK Trailing CLKedge CLK CLKedge CLK CLKedge These circuits work by using the fact that there is no such thing as an ideal gate. Instead, there exists a delay from the input and the output. The Gate on the far right is a negative logic representation of a OR gate.

The D Flip-flop The D Flip-flop output will take on the value of the D input. So, if there is a logic on the D input when the trigger event occurs, the will be transferred to the output until the next trigger event. At that point, if D changes to a logic, so will the output. D p PRE D Clk CLR Present State and ext State P = present = Present state: The state of the output before the clock signal. = next = ext state: The state the output will attain based on the flip-flop synchronous inputs after the clock signal occurs. It is what will happen in the FUTURE! 3 D p D FF wrap up 4 We note that whenever the D input is a, the output will be Reset, while whenever the D input is a, the output will be Set. The D FF is performs two basic named functions: Data: The D-ff is one of the most basic memory cells. Data placed on the input D is transferred to the output and stored there until it is replaced during the next clock active period. Delay: Data placed on the input D is delayed in its transition to the output until the clocks active period occurs. 8

The T Flip-flop 5 T p For a T FF, whenever the T input is, the output will be in a Hold condition in which whatever p is will be held there. Whenever the T input is. the output will be in a Toggle condition where if p is the output will toggle to a and vice versa. The JK Flip-flop J PRE Clk K CLR Row 3 4 5 J K p }Hold } }Reset }Set }Toggle The JK used as a T-FF Before simplifying the JK truth table we can note that the table looks like it is made up of both the T and the D flip-flops. p 9

The JK used as a T-FF 8 We can convert the JK into a T-FF by simply shorting the two inputs together and using the resulting input as a T input. Row 3 4 5 J K p }Hold }Toggle The JK used as a D-FF 9 All that is necessary to convert a JK into a D-FF is to place an inverter between the J and the K inputs so that they will always be opposite values. D Clk PRE J K CLR Row J K p 3 4 5 Simplifying the JK truth table 3 We can simplify the JK table and make it more useful at the same time by introducing the concept of the Don t Care. An input is in a Don t Care state when it really doesn t matter what value is placed on the input. There will be no change on the output due to any value on the input.

The State Transition Table We start out by switching the order of the columns so that the state transitions are first. The table now becomes a Transition Table. 3 P J K The to transition ext we look for the two rows that have transitions from state to state. It doesn t matter what K is because the transition remains the same. So we place a in the J column and an X for don t care in the K column. Row J K p 3 4 5 3 P J K X The to transition 33 ext we look for the two rows that have transitions from state to state. ote that it doesn t matter what value K assumes because the transition remains the same. So we place a in the J column and an X for don t care in the K column. Row J K p P J K X 3 X 4 5

The to transition ext we look for the two rows that have transitions from state to state. ote that it doesn t matter what value J assumes because the transition remains the same. So we place a in the K column and an X for don t care in the J column. Row 3 4 5 J K p 34 P J K X X X The to transition 35 ext we look for the two rows that have transitions from state to state. ote that it doesn t matter what value J assumes because the transition remains the same. So we place a in the K column and an X for don t care in the J column. Row J K 3 4 5 p P J K X X X X Timing Diagrams The figure below is a Timing diagram for a JK-FF. ote that the Pre and Clr inputs as well as the leading edge trigger are demonstrated as well. clock 3 Pre Clr J Pre clk K Clr J K