CONT(MUX) PD(MUX) 11.4 : Clock enabled edge-triggered flip-flop.

Slides:



Advertisements
Similar presentations
COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Advertisements

Lecture 23: Registers and Counters (2)
State-machine structure (Mealy)
State Machine Design Procedure
Analysis of Clocked Sequential Circuits
Registers and Counters. Register Register is built with gates, but has memory. The only type of flip-flop required in this class – the D flip-flop – Has.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Digital Logic Chapter 5 Presented by Prof Tim Johnson
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
CS 151 Digital Systems Design Lecture 21 Analyzing Sequential Circuits.
How Computers Work Lecture 6 Page 1 How Computers Work Lecture 6 Finite State Machines.
CS 151 Digital Systems Design Lecture 25 State Reduction and Assignment.
CSE 140L Lecture 4 Flip-Flops, Shifters and Counters Professor CK Cheng CSE Dept. UC San Diego.
Flip-Flops מבנה המחשב + מבוא למחשבים ספרתיים תרגול 10#
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Embedded Systems Hardware:
מבנה המחשב - מבוא למחשבים ספרתיים Synchronous Circuits.
Give qualifications of instructors: DAP
11/16/2004EE 42 fall 2004 lecture 331 Lecture #33: Some example circuits Last lecture: –Edge triggers –Registers This lecture: –Example circuits –shift.
Logic and Computer Design Fundamentals Registers and Counters
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
A clocked synchronous state-machine changes state only when a triggering edge or “tick” occurs on the clock signal. ReturnNext  “State-machine”: is a.
Embedded Systems Hardware: Storage Elements; Finite State Machines; Sequential Logic.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
ENGIN112 L25: State Reduction and Assignment October 31, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 25 State Reduction and Assignment.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
CS 140L Lecture 4 Professor CK Cheng 10/22/02. 1)F-F 2)Shift register 3)Counter (Asynchronous) 4)Counter (Synchronous)
Sequential logic and systems
CS3350B Computer Architecture Winter 2015 Lecture 5.2: State Circuits: Circuits that Remember Marc Moreno Maza [Adapted.
COE 202: Digital Logic Design Sequential Circuits Part 1
Circuit, State Diagram, State Table
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Rabie A. Ramadan Lecture 3
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
REGISTER A register is a group of flip-flops. Each flip- flop is capable of storing one bit of informa­ tion. An n-bit register consists of a group of.
CHAPTER 8 - COUNTER -.
Computer Organization & Programming Chapter 5 Synchronous Components.
2017/4/24 1.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
Abdullah Said Alkalbani University of Buraimi
DLD Lecture 26 Finite State Machine Design Procedure.
Digital Logic Design.
Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Analysis and Synthesis of Synchronous Sequential Circuits A “synchronizing” pulse/edge signal (clock) controls the operation of the memory portion of the.
MicroComputer Engineering DigitalCircuits slide 1 Combinational circuits Changes at inputs propagate at logic speed to outputs Not clocked No internal.
1 Synchronous Sequential Logic Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered in practice.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
CEC 220 Digital Circuit Design Mealy and Moore State Machines Friday, March 27 CEC 220 Digital Circuit Design Slide 1 of 16.
CSCE 211 Digital Design Lecture 12 Registers
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CS 61C: Great Ideas in Computer Architecture Sequential Elements, Synchronous Digital Systems 1 Instructors: Vladimir Stojanovic & Nicholas Weaver
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
Class Exercise 1B.
Introduction to Sequential Logic Design
Computer Organization
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Presentation transcript:

CONT(MUX) PD(MUX) 11.4 : Clock enabled edge-triggered flip-flop

Question Circuit Analysis Comb. Logic ANDD FF Q CLK There are 2 options – t su is positive (as we’ve learned in class) and t su is negative (meaning the flip flops starts looking at its D port AFTER the clock rise). Each solution consists of a maximum of 2 options, which are drawn on the slide. “Logic” means the stability of the comb. gate.

Question Circuit Analysis CLK case #1 – negative setup time t i-1 titi CiCi Logic Q D Not stableStable

Question Circuit Analysis CLK case #1 – negative setup time t i-1 titi CiCi Logic Q D Not stableStable

Question Circuit Analysis CLK case #2 – positive setup time t i-1 titi CiCi Logic Q D Not stableStable CiCi

Question Circuit Analysis CLK case #2 – positive setup time t i-1 titi CiCi Logic Q D Not stableStable CiCi

The Marvelous Toy

Toy Design Identifying system states Identifying state transitions and deciding on Moore or Mealy model Detailing the state machine transition and output functions The combinational circuits The Canonic circuit Clock rate calculation

Toy System States Only the three switching elements keep state. Each has a binary state: Left or Right We can model the state of every switch by a single bit. Convention: 0=Left, 1=Right The total number of states: 2 3 = 8

State Diagram 000

State Diagram /0 1/0 X is Left Z is Left Y is Left Enter from Left Out from Left Swap X Enter from Right Out from Left Swap Y & Z

State Diagram /0 1/ /0 1/0

State Diagram /0 1/ /0 1/ /0 1/1 Enter Right Out Right Swap Y&Z

State Diagram /0 1/ /0 1/ /0 1/1 0/11/1

State Diagram /0 1/ /0 1/ /0 1/1 0/11/1 0/1 1/1

State Diagram /0 1/ /0 1/ /0 1/1 0/11/1 0/1 1/1 0/0 1/1

State Diagram /0 1/ /0 1/ /0 1/1 0/11/1 0/1 1/1 0/0 1/1 0/0 1/1

State Diagram /0 1/ /0 1/ /0 1/1 0/11/1 0/1 1/1 0/0 1/1 0/0 1/1 0/0 1/1

Output Function Y=0 I=0 Y=0 I=1 Y=1 I=1 Y=1 I=0 X=0 Z= X=0 Z= X=1 Z= X=1 Z=0 0010

Output Function Output = YI + XZ + ZI (This is λ) This circuit has 3 AND(2) in parallel, and then an OR(3) No NOT gates. Delay = D(AND)+2*D(OR) –Assuming we use OR(2) only

The Next State Function of X /0 1/ /0 1/ /0 1/1 0/11/1 0/1 1/1 0/0 1/1 0/0 1/1 0/0 1/1

Next State Function for X Y=0 I=0 Y=0 I=1 Y=1 I=1 Y=1 I=0 X=0 Z= X=0 Z= X=1 Z= X=1 Z=0 0110

X Next State Function X = X’I’+XI (This is part of δ) This circuit has: –2 negations in parallel –2 AND(2) in parallel, –and then an OR(2) Delay = D(NOT)+D(AND)+D(OR) Similar to this we find functions to Y,Z

The Canonic Circuit State Register Next State Circuit δ Output Circuit λ Input {0,1} Next State {0,1} 3 State {0,1} 3 Output {0,1}

Stripping away the Flip-Flops Next State Circuit δ Output Circuit λ Input {0,1} Next State {0,1} 3 State {0,1} 3 Output {0,1} D-portQ-port

Attaching Delay Next State Circuit pd(δ) Output Circuit pd(λ) Input {0,1} Next State {0,1} 3 State {0,1} 3 Output {0,1} D-portQ-port t pd pd(IN) setup(OUT) t su

Finding the Clock Rate Next State Circuit pd(δ) Output Circuit pd(λ) Input {0,1} Next State {0,1} 3 State {0,1} 3 Output {0,1} D-portQ-port t pd pd(IN) setup(OUT) t su

The Clock Rate We are done!

Question 4: Synchronous Circuit 1) answer B 2+3) the circuit is drawn for n=4 in the next slide. Extension to n>4 is obvious. Description of a “משוון“ is needed in answer and not drawn… 4) After running the algorithm for calculating asymptotical clock period, we find that it is max{O(logn),O(logk)} (משוון = O(logk), wt(n)=O(logn), adder=O(log(log( )+1)) ) n2n2

MUX FF(K) MUX FF(K) MUX FF(K) MUX FF(K) 01 x0x0 reset x3x3 1 x2x2 1 x1x1 משוון K x3x3 x2x2 x1x1 x0x0 משקל מחרוזת בינארית (wt(4)) pad zeroes Adder FF MUX 0 reset במוצא אנחנו מורידים את הביט הLSB בשביל לחלק ב2!