Digital Logic & Computer Design CS Professor Dan Moldovan Spring Chapter 3 :: Sequential Logic Design

Size: px
Start display at page:

Download "Digital Logic & Computer Design CS Professor Dan Moldovan Spring Chapter 3 :: Sequential Logic Design"

Transcription

1 igital Logic & Computer esign CS 4341 Professor an Moldovan Spring 21 Copyright 27 Elsevier 3-<1> Chapter 3 :: Sequential Logic esign igital esign and Computer Architecture avid Money Harris and Sarah L. Harris Copyright 27 Elsevier 3-<2> 1

2 Chapter 3 :: Topics Introduction Latches and Flip-Flops Synchronous Logic esign Finite State Machines Timing of Sequential Logic Parallelism Copyright 27 Elsevier 3-<3> Introduction Outputs of sequential logic depend on current and prior input values it has memory. Some definitions: State: all the information about a circuit necessary to explain its future behavior Latches and flip-flops: state elements that store one bit of state Synchronous sequential circuits: combinational logic followed by a bank of flip-flops Copyright 27 Elsevier 3-<4> 2

3 Sequential Circuits Give sequence to events Have memory (short-term) Use feedback from output to input to store information Copyright 27 Elsevier 3-<5> State Elements The state of a circuit influences its future behavior State elements store state Bistable circuit S Latch Latch Flip-flop Copyright 27 Elsevier 3-<6> 3

4 Bistable Circuit Fundamental building block of other state elements Two outputs:, No inputs I2 I1 I1 I2 Copyright 27 Elsevier 3-<7> Bistable Circuit Analysis Consider the two possible cases: = : then = 1 and = (consistent) 1 I1 I2 1 = 1: then = and = 1 (consistent) I1 1 1 I2 Bistable circuit stores 1 bit of state in the state variable, (or ) But there are no inputs to control the state Copyright 27 Elsevier 3-<8> 4

5 S (Set/eset) Latch S Latch N1 S N2 Consider the four possible cases: S = 1, = S =, = 1 S =, = S = 1, = 1 Copyright 27 Elsevier 3-<9> S Latch Analysis S = 1, = : then = 1 and = N1 S 1 N2 S =, = 1: then = and = 1 1 N1 S N2 Copyright 27 Elsevier 3-<1> 5

6 S Latch Analysis S = 1, = : then = 1 and = N1 1 S 1 N2 S =, = 1: then = and = N1 S N2 1 Copyright 27 Elsevier 3-<11> S Latch Analysis S =, = : then = prev prev = prev = 1 N1 N1 S N2 S N2 S = 1, = 1: then = and = 1 N1 1 N2 S Copyright 27 Elsevier 3-<12> 6

7 S Latch Analysis S =, = : then = prev and = prev (memory!) prev = prev = 1 1 N1 N1 1 S N2 1 1 S N2 S = 1, = 1: then = and = (invalid state: NOT ) 1 N1 1 N2 S Copyright 27 Elsevier 3-<13> S Latch Symbol S stands for Set/eset Latch Stores one bit of state () Control what value is being stored with S, inputs Set: Make the output 1 (S = 1, =, = 1) eset: Make the output (S =, = 1, = ) S Latch Symbol Must do something to avoid invalid state (when S = = 1) S Copyright 27 Elsevier 3-<14> 7

8 Latch Two inputs:, : controls when the output changes (the data input): controls what the output changes to Function When = 1, passes through to (the latch is transparent) When =, holds its previous value (the latch is opaque) Avoids invalid case when NOT Latch Symbol Copyright 27 Elsevier 3-<15> Latch Internal Circuit S S X S Copyright 27 Elsevier 3-<16> 8

9 Latch Internal Circuit S S X X 1 S prev prev 1 Copyright 27 Elsevier 3-<17> Flip-Flop Two inputs:, Function The flip-flop samples on the rising edge of When rises from to 1, passes through to Otherwise, holds its previous value changes only on the rising edge of A flip-flop is called an edge-triggered device because it is activated on the clock edge Flip-Flop Symbols Copyright 27 Elsevier 3-<18> 9

10 Flip-Flop Internal Circuit Two back-to-back latches (L1 and L2) controlled by complementary clocks When = L1 is transparent L2 is opaque passes through to N1 When = 1 L2 is transparent L1 is opaque N1 passes through to Thus, on the edge of the clock (when rises from 1) passes through to L1 N1 L2 Copyright 27 Elsevier 3-<19> Flip-Flop vs. Latch (latch) (flop) Copyright 27 Elsevier 3-<2> 1

11 Flip-Flop vs. Latch (latch) (flop) Copyright 27 Elsevier 3-<21> egisters 1 1 3: 4 4 3: Copyright 27 Elsevier 3-<22> 11

12 Enabled Flip-Flops Inputs:,, EN The enable input (EN) controls when new data () is stored Function EN = 1 passes through to on the clock edge EN = the flip-flop retains its previous state Internal Circuit Symbol EN 1 EN Copyright 27 Elsevier 3-<23> esettable Flip-Flops Inputs:,, eset Function: eset = 1 is forced to eset = the flip-flop behaves like an ordinary flip-flop Symbols eset r Copyright 27 Elsevier 3-<24> 12

13 esettable Flip-Flops Two types: Synchronous: resets at the clock edge only Asynchronous: resets immediately when eset = 1 Asynchronously resettable flip-flop requires changing the internal circuitry of the flip-flop (see Exercise 3.1) Synchronously resettable flip-flop? Copyright 27 Elsevier 3-<25> esettable Flip-Flops Two types: Synchronous: resets at the clock edge only Asynchronous: resets immediately when eset = 1 Asynchronously resettable flip-flop requires changing the internal circuitry of the flip-flop (see Exercise 3.1) Synchronously resettable flip-flop? Internal Circuit eset Copyright 27 Elsevier 3-<26> 13

14 Settable Flip-Flops Inputs:,, Set Funtion: Set = 1 is set to 1 Set = the flip-flop behaves like an ordinary flip-flop Symbols Set s Copyright 27 Elsevier 3-<27> Sequential Logic Sequential circuits: all circuits that aren t combinational A problematic circuit: X Y Z X Y Z time (ns) This circuit has no inputs and 1-3 outputs Copyright 27 Elsevier 3-<28> 14

15 Sequential Logic Sequential circuits: all circuits that aren t combinational A problematic circuit: X Y Z X Y Z time (ns) This circuit has no inputs and 1-3 outputs It is an astable circuit that oscillates Its period depends on the delay of the inverters which depends on the manufacturing process, temperature, etc The circuit has a cyclic path: output fed back to input Copyright 27 Elsevier 3-<29> Synchronous Sequential Logic esign Breaks cyclic paths by inserting registers These registers contain the state of the system The state changes at the clock edge, so we say the system is synchronized to the clock ules of synchronous sequential circuit composition: Every circuit element is either a register or a combinational circuit At least one circuit element is a register All registers receive the same clock signal Every cyclic path contains at least one register Two common synchronous sequential circuits Finite State Machines (FSMs) Pipelines Copyright 27 Elsevier 3-<3> 15

16 Finite State Machine (FSM) Consists of: State register that Store the current state and Load the next state at the clock edge S S Next State Current State Combinational logic that Computes the next state Computes the outputs Next State Logic C L Output Logic C L Next State Outputs Copyright 27 Elsevier 3-<31> Finite State Machines (FSMs) Next state is determined by the current state and the inputs Two types of finite state machines differ in the output logic: Moore FSM: outputs depend only on the current state Mealy FSM: outputs depend on the current state and the inputs Moore FSM inputs M next state logic k next state k state output logic N outputs Mealy FSM M inputs next state logic k next state k output logic N outputs Copyright 27 Elsevier 3-<32> state 16

17 Finite State Machine Example Traffic light controller Traffic sensors: T A, T B (TUE when there s traffic) Lights: L A, L B Academic Labs L A T A Bravado Blvd. T B T B ining Hall L B L A T A L B Fields Ave. orms Copyright 27 Elsevier 3-<33> FSM Black Box Inputs:, eset, T A, T B Outputs: L A, L B T A T B Traffic Light Controller L A L B eset Copyright 27 Elsevier 3-<34> 17

18 FSM State Transition iagram Moore FSM: outputs labeled in each state States: Circles Transitions: Arcs eset S L A : green L B : red Copyright 27 Elsevier 3-<35> FSM State Transition iagram Moore FSM: outputs labeled in each state States: Circles Transitions: Arcs eset S L A : green L B : red T A TA S1 L A : yellow L B : red S3 L A : red L B : yellow T B S2 L A : red L B : green T B Copyright 27 Elsevier 3-<36> 18

19 FSM State Transition Table Current State Inputs Next State S T A T B S' S X S 1 X S1 X X S2 X S2 X 1 S3 X X Copyright 27 Elsevier 3-<37> FSM State Transition Table Current State Inputs Next State S T A T B S' S X S1 S 1 X S S1 X X S2 S2 X S3 S2 X 1 S2 S3 X X S Copyright 27 Elsevier 3-<38> 19

20 FSM Encoded State Transition Table Current State Inputs Next State S 1 S T A T B S' 1 S' X 1 X 1 X X 1 X 1 X X X State Encoding S S1 1 S2 1 S3 11 Copyright 27 Elsevier 3-<39> FSM Encoded State Transition Table Current State Inputs Next State S 1 S T A T B S' 1 S' X 1 1 X 1 X X 1 1 X X X X State Encoding S S1 1 S2 1 S3 11 S' 1 = S 1 S S' = S 1 S T A + S 1 S T B Copyright 27 Elsevier 3-<4> 2

21 FSM Output Table Current State Outputs S 1 S L A1 L A L B1 L B Output Encoding green yellow 1 red 1 Copyright 27 Elsevier 3-<41> FSM Output Table Current State Outputs S 1 S L A1 L A L B1 L B Output Encoding green yellow 1 red 1 L A1 = S 1 L A = S 1 S L B1 = S 1 L B = S 1 S Copyright 27 Elsevier 3-<42> 21

22 FSM Schematic: State egister S' 1 S 1 S' r eset S state register Copyright 27 Elsevier 3-<43> FSM Schematic: Next State Logic S' 1 S 1 T A T B S 1 S S' r eset S inputs next state logic state register Copyright 27 Elsevier 3-<44> 22

23 FSM Schematic: Output Logic L A1 S' 1 S 1 L A T A S' r S L B1 T B eset S 1 S L B inputs next state logic state register output logic outputs Copyright 27 Elsevier 3-<45> FSM Timing iagram Cycle 1 Cycle 2 Cycle 3 Cycle 4 Cycle 5 Cycle 6 Cycle 7 Cycle 8 Cycle 9 Cycle 1 C LK es et T A T B S ' 1:?? S () S1 ( 1) S2 (1 ) S3 (1 1) S ( ) S1 (1 ) S 1 :?? S ( ) S1 ( 1) S2 (1 ) S3 (1 1) S () L A 1 :?? Green () Yellow (1 ) ed (1 ) Green ( ) L B 1 :?? ed (1) Green ( ) Yellow (1) ed (1) eset S L A : green L B : red T A TA S1 L A : yellow L B : red t (se c) S3 S2 Copyright 27 Elsevier L A : red L A : red 3-<46> L B : yellow T B L B : green T B 23

24 FSM State Encoding Binary encoding: i.e., for four states,, 1, 1, 11 One-hot encoding One state bit per state Only one state bit is HIGH at once I.e., for four states, 1, 1, 1, 1 equires more flip-flops Often next state and output logic is simpler Copyright 27 Elsevier 3-<47> Moore vs. Mealy FSM Alyssa P. Hacker has a snail that crawls down a paper tape with 1 s and s on it. The snail smiles whenever the last four digits it has crawled over are 111. esign Moore and Mealy FSMs of the snail s brain. Copyright 27 Elsevier 3-<48> 24

25 State Transition iagrams reset Moore FSM S S1 S2 S3 1 S4 1 Mealy FSM: arcs indicate input/output Mealy FSM reset 1/ 1/ / 1/1 S S1 S2 S3 / 1/ / / Copyright 27 Elsevier 3-<49> Moore FSM State Transition Table Current State Inputs Next State S 2 S 1 S A S' 2 S' 1 S' State Encoding S S1 1 S2 1 S3 11 S4 1 Copyright 27 Elsevier 3-<5> 25

26 Moore FSM State Transition Table Current State Inputs Next State S 2 S 1 S A S' 2 S' 1 S' State Encoding S S1 1 S2 1 S3 11 S Copyright 27 Elsevier 3-<51> Moore FSM Output Table Current State Output S 2 S 1 S Y Copyright 27 Elsevier 3-<52> 26

27 Moore FSM Output Table Current State Output S 2 S 1 S Y Y = S 2 Copyright 27 Elsevier 3-<53> Mealy FSM State Transition and Output Table Current State Input Next State Output S 1 S A S' 1 S' Y State Encoding S S1 1 S2 1 S Copyright 27 Elsevier 3-<54> 27

28 Mealy FSM State Transition and Output Table Current State Input Next State Output S 1 S A S' 1 S' Y State Encoding S S1 1 S2 1 S3 11 Copyright 27 Elsevier 3-<55> Moore FSM Schematic A S' 2 S 2 Y S' 1 S 1 S' S eset S 2 S 1 S Copyright 27 Elsevier 3-<56> 28

29 Mealy FSM Schematic A S' 1 S 1 Y S' eset S S S 1 Copyright 27 Elsevier 3-<57> Moore and Mealy Timing iagram Cycle 1 Cycle 2 Cycle 3 Cycle 4 Cycle 5 Cycle 6 Cycle 7 Cycle 8 Cycle 9 Cycle 1 eset A S Y S Moore Machine?? S S1 S2 S2 S3 S4 S2 S3 S4 S Mealy Machine?? S S1 S2 S2 S3 S1 S2 S3 S1 S Y Copyright 27 Elsevier 3-<58> 29

30 Factoring State Machines Break complex FSMs into smaller interacting FSMs Example: Modify the traffic light controller to have a Parade Mode. The FSM receives two more inputs: P, When P = 1, it enters Parade Mode and the Bravado Blvd. light stays green. When = 1, it leaves Parade Mode Copyright 27 Elsevier 3-<59> Parade FSM Unfactored FSM P T A T B Controller FSM L A L B Factored FSM P Mode FSM M T A T B Lights FSM L A L B Controller FSM Copyright 27 Elsevier 3-<6> 3

31 Unfactored FSM State Transition iagram PT A eset S L A : green L B : red P P S3 L A : red L B : yellow T A P P T A P P T B T A P T B S1 L A : yellow L B : red P S2 L A : red L B : green P T A T A S4 L A : green L B : red S7 L A : red L B : yellow T A T A S5 L A : yellow L B : red S6 L A : red L B : green P T B T B Copyright 27 Elsevier 3-<61> Factored FSM State Transition iagram eset S L A : green L B : red T A TA S1 L A : yellow L B : red S3 L A : red L B : yellow MT B S2 L A : red L B : green eset S M: P P S1 M: 1 M + T B Lights FSM Mode FSM Copyright 27 Elsevier 3-<62> 31

32 FSM esign Procedure Identify the inputs and outputs Sketch a state transition diagram Write a state transition table Select state encodings For a Moore machine: ewrite the state transition table with the selected state encodings Write the output table For a Mealy machine: ewrite the combined state transition and output table with the selected state encodings Write Boolean equations for the next state and output logic Sketch the circuit schematic Copyright 27 Elsevier 3-<63> Timing Flip-flop samples at clock edge must be stable when it is sampled Similar to a photograph, must be stable around the clock edge If is changing when it is sampled, metastability can occur Copyright 27 Elsevier 3-<64> 32

33 Input Timing Constraints Setup time: t setup = time before the clock edge that data must be stable (i.e. not changing) Hold time: t hold = time after the clock edge that data must be stable Aperture time: t a = time around clock edge that data must be stable (t a = t setup + t hold ) t setup t hold t Copyright 27 Elsevier a 3-<65> Output Timing Constraints Propagation delay: t pcq = time after clock edge that the output is guaranteed to be stable (i.e., to stop changing) Contamination delay: t ccq = time after clock edge that might be unstable (i.e., start changing) t ccq t pcq Copyright 27 Elsevier 3-<66> 33

34 ynamic iscipline The input to a synchronous sequential circuit must be stable during the aperture (setup and hold) time around the clock edge. Specifically, the input must be stable at least t setup before the clock edge at least until t hold after the clock edge Copyright 27 Elsevier 3-<67> ynamic iscipline The delay between registers has a minimum and maximum delay, dependent on the delays of the circuit elements 1 CL 2 (a) 1 2 T c 1 2 (b) Copyright 27 Elsevier 3-<68> 34

35 Setup Time Constraint The setup time constraint depends on the maximum delay from register 1 through the combinational logic. The input to register 2 must be stable at least t setup before the clock edge C L T c 2 t pcq t pd t setup 1 2 T c Copyright 27 Elsevier 3-<69> Setup Time Constraint The setup time constraint depends on the maximum delay from register 1 through the combinational logic. The input to register 2 must be stable at least t setup before the clock edge. 1 C L T c t pcq + t pd + t setup T c t pd 1 2 t pcq t pd t setup Copyright 27 Elsevier 3-<7> 35

36 Setup Time Constraint The setup time constraint depends on the maximum delay from register 1 through the combinational logic. The input to register 2 must be stable at least t setup before the clock edge. 1 C L T c t pcq + t pd + t setup T c t pd T c (t pcq + t setup ) 1 2 t pcq t pd t setup Copyright 27 Elsevier 3-<71> Hold Time Constraint The hold time constraint depends on the minimum delay from register 1 through the combinational logic. The input to register 2 must be stable for at least t hold after the clock edge. 1 C L t hold < t ccq t cd t hold Copyright 27 Elsevier 3-<72> 36

37 Hold Time Constraint The hold time constraint depends on the minimum delay from register 1 through the combinational logic. The input to register 2 must be stable for at least t hold after the clock edge. 1 C L t hold < t ccq + t cd t cd > t ccq t cd t hold Copyright 27 Elsevier 3-<73> Hold Time Constraint The hold time constraint depends on the minimum delay from register 1 through the combinational logic. The input to register 2 must be stable for at least t hold after the clock edge. 1 C L t hold < t ccq + t cd t cd > t hold - t ccq t ccq t cd t hold Copyright 27 Elsevier 3-<74> 37

38 Timing Analysis A B C X' X Timing Characteristics t ccq = 3 ps t pcq = 5 ps t setup = 6 ps t hold = 7 ps t pd = t cd = Setup time constraint: T c f c = 1/T c = Y' Y per gate t pd = 35 ps t cd = 25 ps Hold time constraint: t ccq + t pd > t hold? Copyright 27 Elsevier 3-<75> Timing Analysis A B C X' X Timing Characteristics t ccq = 3 ps t pcq = 5 ps t setup = 6 ps t hold = 7 ps Y' t pd = 3 x 35 ps = 15 ps t cd = 25 ps Setup time constraint: T c ( ) ps = 215 ps f c = 1/T c = 4.65 GHz Y per gate t pd = 35 ps t cd = 25 ps Hold time constraint: t ccq + t pd > t hold? (3 + 25) ps > 7 ps? No! Copyright 27 Elsevier 3-<76> 38

39 Fixing Hold Time Violation Add buffers to the short paths: A B C X' X Timing Characteristics t ccq = 3 ps t pcq = 5 ps t setup = 6 ps t hold = 7 ps t pd = Y' Y per gate t pd = 35 ps t cd = 25 ps t cd = Setup time constraint: Hold time constraint: T c t ccq + t pd > t hold? f c = Copyright 27 Elsevier 3-<77> Fixing Hold Time Violation Add buffers to the short paths: A B C X' X Timing Characteristics t ccq = 3 ps t pcq = 5 ps t setup = 6 ps t hold = 7 ps Y' Y t pd = 3 x 35 ps = 15 ps t cd = 2 x 25 ps = 5 ps Setup time constraint: T c ( ) ps = 215 ps f c = 1/T c = 4.65 GHz per gate t pd = 35 ps t cd = 25 ps Hold time constraint: t ccq + t pd > t hold? (3 + 5) ps > 7 ps? Yes! Copyright 27 Elsevier 3-<78> 39

40 Clock Skew The clock doesn t arrive at all registers at the same time Skew is the difference between two clock edges Examine the worst case to guarantee that the dynamic discipline is not violated for any register many registers in a system! delay C L t skew 1 2 Copyright 27 Elsevier 3-<79> Setup Time Constraint with Clock Skew In the worst case, the 2 is earlier than CL T c T c 1 2 t pcq t pd t setup t skew Copyright 27 Elsevier 3-<8> 4

41 Setup Time Constraint with Clock Skew In the worst case, the 2 is earlier than CL T c T c t pcq + t pd + t setup + t skew t pd 2 t pcq t pd t setup t skew Copyright 27 Elsevier 3-<81> Setup Time Constraint with Clock Skew In the worst case, the 2 is earlier than CL T c T c t pcq + t pd + t setup + t skew t pd T c (t pcq + t setup + t skew ) 2 t pcq t pd t setup t skew Copyright 27 Elsevier 3-<82> 41

42 Hold Time Constraint with Clock Skew In the worst case, 2 is later than C L t ccq + t cd > t cd > 2 t ccq t cd t skew t hold Copyright 27 Elsevier 3-<83> Hold Time Constraint with Clock Skew In the worst case, 2 is later than C L t ccq + t cd > t hold + t skew t cd > 2 t ccq t cd t skew t hold Copyright 27 Elsevier 3-<84> 42

43 Hold Time Constraint with Clock Skew In the worst case, 2 is later than C L t ccq + t cd > t hold + t skew t cd > t hold + t skew t ccq 2 t ccq t cd t skew t hold Copyright 27 Elsevier 3-<85> Violating the ynamic iscipline Asynchronous (for example, user) inputs might violate the dynamic discipline t setup t hold button t aperture Case I Case II Copyright 27 Elsevier 3-<86>??? Case III 43

44 Metastability Any bistable device has two stable states and a metastable state between them A flip-flop has two stable states (1 and ) and one metastable state If a flip-flop lands in the metastable state, it could stay there for an undetermined amount of time metastable stable stable Copyright 27 Elsevier 3-<87> Flip-flop Internals Because the flip-flop has feedback, if is somewhere between 1 and, the cross-coupled gates will eventually drive the output to either rail (1 or, depending on which one it is closer to). N1 S N2 A signal is considered metastable if it hasn t resolved to 1 or If a flip-flop input changes at a random time, the probability that the output is metastable after waiting some time, t, is: P(t res > t) = (T /T c ) e -t/τ t res : time to resolve to 1 or T, τ : properties of the circuit Copyright 27 Elsevier 3-<88> 44

45 Metastability Intuitively: T /T c describes the probability that the input changes at a bad time, i.e., during the aperture time P(t res > t) = (T /T c ) e -t/τ τ is a time constant indicating how fast the flip-flop moves away from the metastable state; it is related to the delay through the cross-coupled gates in the flip-flop P(t res > t) = (T /T c ) e -t/τ In short, if a flip-flop samples a metastable input, if you wait long enough (t), the output will have resolved to 1 or with high probability. Copyright 27 Elsevier 3-<89> Synchronizers Asynchronous inputs () are inevitable (user interfaces, systems with different clocks interacting, etc.). The goal of a synchronizer is to make the probability of failure (the output still being metastable) low. A synchronizer cannot make the probability of failure. SYNC Copyright 27 Elsevier 3-<9> 45

46 Synchronizer Internals A synchronizer can be built with two back-to-back flip-flops. Suppose the input is transitioning when it is sampled by flip-flop 1, F1. The amount of time the internal signal 2 can resolve to a 1 or is (T c - t setup ). F1 2 T c F2 2 metastable Copyright 27 Elsevier t t 3-<91> res setup t pcq Synchronizer Probability of Failure For each sample, the probability of failure of this synchronizer is: P(failure) = (T /T c ) e -(T c - t setup )/τ 2 F1 T c F2 2 metastable Copyright 27 Elsevier t t 3-<92> res setup t pcq 46

47 Synchronizer Mean Time Before Failure If the asynchronous input changes once per second, the probability of failure per second of the synchronizer is simply P(failure). In general, if the input changes N times per second, the probability of failure per second of the synchronizer is: P(failure)/second = (NT /T c ) e -(T c - t setup )/τ Thus, the synchronizer fails, on average, 1/[P(failure)/second] This is called the mean time between failures, MTBF: MTBF = 1/[P(failure)/second] = (T c /NT ) e (T c - t setup )/τ Copyright 27 Elsevier 3-<93> Example Synchronizer F1 2 F2 Suppose: T c = 1/5 MHz = 2 ns τ = 2 ps T = 15 ps t setup = 1 ps N = 1 events per second What is the probability of failure? MTBF? P(failure) = P(failure)/second = MTBF = Copyright 27 Elsevier 3-<94> 47

48 Example Synchronizer F1 2 F2 Suppose: T c = 1/5 MHz = 2 ns τ = 2 ps T = 15 ps t setup = 1 ps N = 1 events per second What is the probability of failure? MTBF? P(failure) = (15 ps/2 ns) e-(1.9 ns)/2 ps = P(failure)/second = 1 ( ) = / second MTBF = 1/[P(failure)/second] 5 hours Copyright 27 Elsevier 3-<95> Parallelism Two types of parallelism: Spatial parallelism duplicate hardware performs multiple tasks at once Temporal parallelism task is broken into multiple stages also called pipelining for example, an assembly line Copyright 27 Elsevier 3-<96> 48

49 Parallelism efinitions Some definitions: Token: A group of inputs processed to produce a group of outputs Latency: Time for one token to pass from start to end Throughput: The number of tokens that can be produced per unit time Parallelism increases throughput. Copyright 27 Elsevier 3-<97> Parallelism Example Ben Bitdiddle is baking cookies to celebrate the installation of his traffic light controller. It takes 5 minutes to roll the cookies and 15 minutes to bake them. After finishing one batch he immediately starts the next batch. What is the latency and throughput if Ben doesn t use parallelism? Latency = Throughput = Copyright 27 Elsevier 3-<98> 49

50 Parallelism Example Ben Bitdiddle is baking cookies to celebrate the installation of his traffic light controller. It takes 5 minutes to roll the cookies and 15 minutes to bake them. After finishing one batch he immediately starts the next batch. What is the latency and throughput if Ben doesn t use parallelism? Latency = = 2 minutes = 1/3 hour Throughput = 1 tray/ 1/3 hour = 3 trays/hour Copyright 27 Elsevier 3-<99> Parallelism Example What is the latency and throughput if Ben uses parallelism? Spatial parallelism: Ben asks Allysa P. Hacker to help, using her own oven Temporal parallelism: Ben breaks the task into two stages: roll and baking. He uses two trays. While the first batch is baking he rolls the second batch, and so on. Copyright 27 Elsevier 3-<1> 5

51 Spatial Parallelism Latency: time to first tray Spatial Parallelism Tray 1 Tray 2 Tray 3 Tray 4 Ben 1 Ben 1 Alyssa 1 Alyssa 1 Ben 2 Ben 2 Alyssa 2 Alyssa 2 Time oll Bake Legend Latency = Throughput = Copyright 27 Elsevier 3-<11> Spatial Parallelism Latency: time to first tray Spatial Parallelism Tray 1 Tray 2 Tray 3 Tray 4 Ben 1 Ben 1 Alyssa 1 Alyssa 1 Ben 2 Ben 2 Alyssa 2 Alyssa 2 Time oll Bake Legend Latency = = 2 minutes = 1/3 hour Throughput = 2 trays/ 1/3 hour = 6 trays/hour Copyright 27 Elsevier 3-<12> 51

52 Temporal Parallelism Latency: time to first tray Temporal Parallelism Tray 1 Tray 2 Tray 3 Ben 1 Ben 1 Ben 2 Ben 2 Ben 3 Ben 3 Time Latency = Throughput = Copyright 27 Elsevier 3-<13> Temporal Parallelism Latency: time to first tray Temporal Parallelism Tray 1 Tray 2 Tray 3 Ben 1 Ben 1 Ben 2 Ben 2 Ben 3 Ben 3 Time Latency = = 2 minutes = 1/3 hour Throughput = 1 trays/ 1/4 hour = 4 trays/hour Using both techniques, the throughput would be 8 trays/hour Copyright 27 Elsevier 3-<14> 52

give sequence to events have memory (short-term) use feedback from output to input to store information

give sequence to events have memory (short-term) use feedback from output to input to store information Chapter 3 :: equential Logic esign Chapter 3 :: Topics igital esign and Computer Architecture avid Money Harris and arah L. Harris Introduction Latches and Flip-Flops ynchronous Logic esign Finite tate

More information

Give sequence to events Have memory y( (short-term) Use feedback from output to input to store information

Give sequence to events Have memory y( (short-term) Use feedback from output to input to store information Chapter 3 :: equential Logi esign igital esign and Computer Arhiteture avid Money Harris and arah L. Harris Chapter 3 :: Topis Introdution Lathes and Flip-Flops ynhronous Logi esign Finite tate Mahines

More information

ECEN454 Digital Integrated Circuit Design. Sequential Circuits. Sequencing. Output depends on current inputs

ECEN454 Digital Integrated Circuit Design. Sequential Circuits. Sequencing. Output depends on current inputs ECEN454 igital Integrated Circuit esign Sequential Circuits ECEN 454 Combinational logic Sequencing Output depends on current inputs Sequential logic Output depends on current and previous inputs Requires

More information

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

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98 More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 98 Review: Bit Storage SR latch S (set) Q R (reset) Level-sensitive SR latch S S1 C R R1 Q D C S R D latch Q

More information

Exercises. 162 CHAPTER THREE Sequential Logic Design

Exercises. 162 CHAPTER THREE Sequential Logic Design 162 CHPTE THEE equential Logic Design Exercises Exercise 3.1 Given the input waveforms shown in Figure 3.61, sketch the output,, of an latch. Figure 3.61 Input waveforms of latch for Exercise 3.1 Exercise

More information

Fundamentals of Computer Systems

Fundamentals of Computer Systems Fundamentals of Computer Systems Sequential Logic Stephen A. Edwards Columbia University Summer 2016 State-Holding Elements Bistable Elements S Latch Latch Positive-Edge-Triggered Flip-Flop Flip-Flop with

More information

Fundamentals of Computer Systems

Fundamentals of Computer Systems Fundamentals of Computer Systems Sequential Logic Stephen A. Edwards Columbia University Fall 2012 State-Holding Elements Bistable Elements Equivalent circuits; right is more traditional. Two stable states:

More information

ENGR 303 Introduction to Logic Design Lecture 10. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College

ENGR 303 Introduction to Logic Design Lecture 10. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College ENG 33 Introduction to Logic esign Lecture r. Chuck Brown Engineering and Computer Information cience Folsom Lake College Outline for Todays Lecture equential Circuits Latches egisters Flip-Flops ENG 33

More information

Lecture 11: Sequential Circuit Design

Lecture 11: Sequential Circuit Design Lecture 11: Sequential Circuit esign Outline q Sequencing q Sequencing Element esign q Max and Min-elay q Clock Skew q Time Borrowing q Two-Phase Clocking 2 Sequencing q Combinational logic output depends

More information

CPE/EE 427, CPE 527 VLSI Design I Sequential Circuits. Sequencing

CPE/EE 427, CPE 527 VLSI Design I Sequential Circuits. Sequencing CPE/EE 427, CPE 527 VLSI esign I Sequential Circuits epartment of Electrical and Computer Engineering University of Alabama in Huntsville Aleksandar Milenkovic ( www.ece.uah.edu/~milenka ) Combinational

More information

Fundamentals of Computer Systems

Fundamentals of Computer Systems Fundamentals of omputer Systems Sequential Logic Martha A. Kim olumbia University Spring 2016 1/1 2/1 Bistable Elements Equivalent circuits; right is more traditional. Two stable states: 0 1 1 0 3/1 S

More information

11. Sequential Elements

11. Sequential Elements 11. Sequential Elements Jacob Abraham Department of Electrical and Computer Engineering The University of Texas at Austin VLSI Design Fall 2017 October 11, 2017 ECE Department, University of Texas at Austin

More information

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

Chapter 6. Flip-Flops and Simple Flip-Flop Applications Chapter 6 Flip-Flops and Simple Flip-Flop Applications Basic bistable element It is a circuit having two stable conditions (states). It can be used to store binary symbols. J. C. Huang, 2004 Digital Logic

More information

CPS311 Lecture: Sequential Circuits

CPS311 Lecture: Sequential Circuits CPS311 Lecture: Sequential Circuits Last revised August 4, 2015 Objectives: 1. To introduce asynchronous and synchronous flip-flops (latches and pulsetriggered, plus asynchronous preset/clear) 2. To introduce

More information

Lecture 8: Sequential Logic

Lecture 8: Sequential Logic Lecture 8: Sequential Logic Last lecture discussed how we can use digital electronics to do combinatorial logic we designed circuits that gave an immediate output when presented with a given set of inputs

More information

Chapter 7 Sequential Circuits

Chapter 7 Sequential Circuits Chapter 7 Sequential Circuits Jin-Fu Li Advanced Reliable Systems (ARES) Lab. epartment of Electrical Engineering National Central University Jungli, Taiwan Outline Latches & Registers Sequencing Timing

More information

Problems with D-Latch

Problems with D-Latch Problems with -Latch If changes while is true, the new value of will appear at the output. The latch is transparent. If the stored value can change state more than once during a single clock pulse, the

More information

Sequential Circuit Design: Part 1

Sequential Circuit Design: Part 1 Sequential Circuit esign: Part 1 esign of memory elements Static latches Pseudo-static latches ynamic latches Timing parameters Two-phase clocking Clocked inverters James Morizio 1 Sequential Logic FFs

More information

Lecture 10: Sequential Circuits

Lecture 10: Sequential Circuits Introduction to CMOS VLSI esign Lecture 10: Sequential Circuits avid Harris Harvey Mudd College Spring 2004 1 Outline Floorplanning Sequencing Sequencing Element esign Max and Min-elay Clock Skew Time

More information

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

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis EE 25 Introduction to igital esign hapter 5 Sequential ircuits (5.1-5.4) Part 1 Storage Elements and Sequential ircuit Analysis Logic and omputer esign Fundamentals harles Kime & Thomas Kaminski 2008 Pearson

More information

Sequential Circuit Design: Part 1

Sequential Circuit Design: Part 1 Sequential ircuit esign: Part 1 esign of memory elements Static latches Pseudo-static latches ynamic latches Timing parameters Two-phase clocking locked inverters Krish hakrabarty 1 Sequential Logic FFs

More information

Chapter 5 Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic Chapter 5 Synchronous Sequential Logic Chih-Tsun Huang ( 黃稚存 ) http://nthucad.cs.nthu.edu.tw/~cthuang/ Department of Computer Science National Tsing Hua University Outline Introduction Storage Elements:

More information

EE 447/547 VLSI Design. Lecture 9: Sequential Circuits. VLSI Design EE 447/547 Sequential circuits 1

EE 447/547 VLSI Design. Lecture 9: Sequential Circuits. VLSI Design EE 447/547 Sequential circuits 1 EE 447/547 VLSI esign Lecture 9: Sequential Circuits Sequential circuits 1 Outline Floorplanning Sequencing Sequencing Element esign Max and Min-elay Clock Skew Time Borrowing Two-Phase Clocking Sequential

More information

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall,

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall, Sequencing ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall, 2013 ldvan@cs.nctu.edu.tw http://www.cs.nctu.edu.tw/~ldvan/ Outlines Introduction Sequencing

More information

Combinational vs Sequential

Combinational vs Sequential Combinational vs Sequential inputs X Combinational Circuits outputs Z A combinational circuit: At any time, outputs depends only on inputs Changing inputs changes outputs No regard for previous inputs

More information

Lecture 7: Sequential Networks

Lecture 7: Sequential Networks Lecture 7: Sequential Networks CSE 14: Components and Design Techniques for Digital Systems Spring 214 CK Cheng, Diba Mirza Dept. of Computer Science and Engineering University of California, San Diego

More information

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

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath Objectives Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath In the previous chapters we have studied how to develop a specification from a given application, and

More information

CS8803: Advanced Digital Design for Embedded Hardware

CS8803: Advanced Digital Design for Embedded Hardware Copyright 2, 23 M Ciletti 75 STORAGE ELEMENTS: R-S LATCH CS883: Advanced igital esign for Embedded Hardware Storage elements are used to store information in a binary format (e.g. state, data, address,

More information

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

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic equential logic equential circuits simple circuits with feedback latches edge-triggered flip-flops Timing methodologies cascading flip-flops for proper operation clock skew Basic registers shift registers

More information

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

CSE115: Digital Design Lecture 23: Latches & Flip-Flops Faculty of Engineering CSE115: Digital Design Lecture 23: Latches & Flip-Flops Sections 7.1-7.2 Suggested Reading A Generic Digital Processor Building Blocks for Digital Architectures INPUT - OUTPUT Interconnect:

More information

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited April 2, 2013 John Wawrzynek Spring 2013 EECS150 - Lec19-fsm Page 1 Finite State Machines (FSMs) FSM circuits are a type of sequential

More information

Software Engineering 2DA4. Slides 9: Asynchronous Sequential Circuits

Software Engineering 2DA4. Slides 9: Asynchronous Sequential Circuits Software Engineering 2DA4 Slides 9: Asynchronous Sequential Circuits Dr. Ryan Leduc Department of Computing and Software McMaster University Material based on S. Brown and Z. Vranesic, Fundamentals of

More information

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

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic Chapter 5. Synchronous Sequential Logic 1 5.1 Introduction Electronic products: ability to send, receive, store, retrieve, and process information in binary format Dependence on past values of inputs Sequential

More information

Engr354: Digital Logic Circuits

Engr354: Digital Logic Circuits Engr354: igital Circuits Chapter 7 Sequential Elements r. Curtis Nelson Sequential Elements In this chapter you will learn about: circuits that can store information; Basic cells, latches, and flip-flops;

More information

LATCHES & FLIP-FLOP. Chapter 7

LATCHES & FLIP-FLOP. Chapter 7 LATCHES & FLIP-FLOP Chapter 7 INTRODUCTION Latch and flip flops are categorized as bistable devices which have two stable states,called SET and RESET. They can retain either of this states indefinitely

More information

CS8803: Advanced Digital Design for Embedded Hardware

CS8803: Advanced Digital Design for Embedded Hardware CS883: Advanced Digital Design for Embedded Hardware Lecture 4: Latches, Flip-Flops, and Sequential Circuits Instructor: Sung Kyu Lim (limsk@ece.gatech.edu) Website: http://users.ece.gatech.edu/limsk/course/cs883

More information

Chapter 5: Synchronous Sequential Logic

Chapter 5: Synchronous Sequential Logic Chapter 5: Synchronous Sequential Logic NCNU_2016_DD_5_1 Digital systems may contain memory for storing information. Combinational circuits contains no memory elements the outputs depends only on the inputs

More information

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers equential logic equential circuits simple circuits with feedback latches edge-triggered flip-flops Timing methodologies cascading flip-flops for proper operation clock skew Basic registers shift registers

More information

Basis of sequential circuits: the R-S latch

Basis of sequential circuits: the R-S latch equential logic Asynchronous sequential logic state changes occur whenever state inputs change (elements may be simple wires or delay elements) ynchronous sequential logic state changes occur in lock step

More information

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger. CS 110 Computer Architecture Finite State Machines, Functional Units Instructor: Sören Schwertfeger http://shtech.org/courses/ca/ School of Information Science and Technology SIST ShanghaiTech University

More information

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both). 1 The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both). The value that is stored in a flip-flop when the clock pulse occurs

More information

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock.

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock. Topics! Memory elements.! Basics of sequential machines. Memory elements! Stores a value as controlled by clock.! May have load signal, etc.! In CMOS, memory is created by:! capacitance (dynamic);! feedback

More information

Synchronous Sequential Logic

Synchronous Sequential Logic Synchronous Sequential Logic -A Sequential Circuit consists of a combinational circuit to which storage elements are connected to form a feedback path. The storage elements are devices capable of storing

More information

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

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1 Sequential Logic E&CE 223 igital Circuits and Systems (A. Kennings) Page 1 Sequential Circuits Have considered only combinational circuits in which circuit outputs are determined entirely by current circuit

More information

Slide Set 7. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Slide Set 7. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary Slide Set 7 for ENEL 353 Fall 216 Steve Norman, PhD, PEng Electrical & Computer Engineering Schulich School of Engineering University of Calgary Fall Term, 216 SN s ENEL 353 Fall 216 Slide Set 7 slide

More information

6. Sequential Logic Flip-Flops

6. Sequential Logic Flip-Flops ection 6. equential Logic Flip-Flops Page of 5 6. equential Logic Flip-Flops ombinatorial components: their output values are computed entirely from their present input values. equential components: their

More information

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

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3) Logic esign ( Part ) Sequential Logic- Finite State Machines (Chapter ) Based on slides McGraw-Hill Additional material 00/00/006 Lewis/Martin Additional material 008 Roth Additional material 00 Taylor

More information

2 Sequential Circuits

2 Sequential Circuits 2 2.1 State Diagrams and General Form 0/0 1/0 Start State 0 /0 1/1 State 1 /1 0/1 State Diagram of a Change Detector ( Mealy-machine). The output Y assumes 1 whenever the input X has changed. Otherwise

More information

Chapter 5 Sequential Circuits

Chapter 5 Sequential Circuits Logic and omputer Design Fundamentals hapter 5 Sequential ircuits Part 1 Storage Elements and Sequential ircuit Analysis harles Kime & Thomas Kaminski 2008 Pearson Education, Inc. (Hyperlinks are active

More information

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing Traversing igital esign EECS - Components and esign Techniques for igital Systems EECS wks 6 - Lec 24 Sequential Logic Revisited Sequential Circuit esign and Timing avid Culler Electrical Engineering and

More information

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

L4: Sequential Building Blocks (Flip-flops, Latches and Registers) L4: Sequential Building Blocks (Flip-flops, Latches and Registers) Acknowledgements: Lecture material adapted from R. Katz, G. Borriello, Contemporary Logic esign (second edition), Prentice-Hall/Pearson

More information

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

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

More information

More Digital Circuits

More Digital Circuits More Digital Circuits 1 Signals and Waveforms: Showing Time & Grouping 2 Signals and Waveforms: Circuit Delay 2 3 4 5 3 10 0 1 5 13 4 6 3 Sample Debugging Waveform 4 Type of Circuits Synchronous Digital

More information

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

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS NH 67, Karur Trichy Highways, Puliyur C.F, 639 114 Karur District DEPARTMENT OF ELETRONICS AND COMMUNICATION ENGINEERING COURSE NOTES SUBJECT: DIGITAL ELECTRONICS CLASS: II YEAR ECE SUBJECT CODE: EC2203

More information

Momentary Changes in Outputs. State Machine Signaling. Oscillatory Behavior. Hazards/Glitches. Types of Hazards. Static Hazards

Momentary Changes in Outputs. State Machine Signaling. Oscillatory Behavior. Hazards/Glitches. Types of Hazards. Static Hazards State Machine Signaling Momentary hanges in Outputs Timing ehavior Glitches/hazards and how to avoid them SM Partitioning What to do when the state machine doesn t fit! State Machine Signaling State Machine

More information

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

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors CSC258 Week 5 1 We are here Assembly Language Processors Arithmetic Logic Units Devices Finite State Machines Flip-flops Circuits Gates Transistors 2 Circuits using flip-flops Now that we know about flip-flops

More information

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

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay)  CSC S.J. Park. Announcement Seung-Jong Park (Jay) http://www.csc.lsu.edu/~sjpark Computer Architecture (CSC-3501) Lecture 7 (07 Feb 2008) 1 Announcement 2 1 Combinational vs. Sequential Logic Combinational Logic Memoryless Outputs

More information

Sequential Circuit Design: Principle

Sequential Circuit Design: Principle Sequential Circuit Design: Principle modified by L.Aamodt 1 Outline 1. 2. 3. 4. 5. 6. 7. 8. Overview on sequential circuits Synchronous circuits Danger of synthesizing asynchronous circuit Inference of

More information

Chapter 3 Unit Combinational

Chapter 3 Unit Combinational EE 2: igital Logic ircuit esign r Radwan E Abdel-Aal, OE Logic and omputer esign Fundamentals hapter 3 Unit ombinational 4 Sequential Logic esign ircuits Part Implementation Technology and Logic esign

More information

Chapter 4. Logic Design

Chapter 4. Logic Design Chapter 4 Logic Design 4.1 Introduction. In previous Chapter we studied gates and combinational circuits, which made by gates (AND, OR, NOT etc.). That can be represented by circuit diagram, truth table

More information

EE 121 June 4, 2002 Digital Design Laboratory Handout #34 CLK

EE 121 June 4, 2002 Digital Design Laboratory Handout #34 CLK EE 2 June 4, 22 igital esign Laboratory Handout #34 Midterm Examination #2 Solutions Open book, open notes. Time limit: 75 minutes. (2 points) Setup and hold times. The flip-flops below have setup time

More information

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic. 1. CLOCK MUXING: With more and more multi-frequency clocks being used in today's chips, especially in the communications field, it is often necessary to switch the source of a clock line while the chip

More information

EECS150 - Digital Design Lecture 15 Finite State Machines. Announcements

EECS150 - Digital Design Lecture 15 Finite State Machines. Announcements EECS150 - Digital Design Lecture 15 Finite State Machines October 18, 2011 Elad Alon Electrical Engineering and Computer Sciences University of California, Berkeley http://www-inst.eecs.berkeley.edu/~cs150

More information

ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW

ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW LGOITHM HW EEC150 ection 2 Introduction to equential Logic Fall 2001 pproach #2: Combinational divide & conquer a[0] a[1] a[1022] a[1023] MX MX MX 512 + 256 + K+ 1 = 1023 blocks Each MX block has: 64 s;

More information

6.S084 Tutorial Problems L05 Sequential Circuits

6.S084 Tutorial Problems L05 Sequential Circuits Preamble: Sequential Logic Timing 6.S084 Tutorial Problems L05 Sequential Circuits In Lecture 5 we saw that for D flip-flops to work correctly, the flip-flop s input should be stable around the rising

More information

Flip-Flops and Sequential Circuit Design

Flip-Flops and Sequential Circuit Design Flip-Flops and Sequential Circuit Design ECE 52 Summer 29 Reading ssignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7.5 T Flip-Flop 7.5. Configurable Flip-Flops 7.6

More information

! Two inverters form a static memory cell " Will hold value as long as it has power applied

! Two inverters form a static memory cell  Will hold value as long as it has power applied equential Logic! equential Circuits " imple circuits with feedback " Latches " Edge-triggered flip-flops! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew! Basic egisters "

More information

Sequential Logic. Sequential Circuits. ! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew

Sequential Logic. Sequential Circuits. ! Timing Methodologies  Cascading flip-flops for proper operation  Clock skew equential Logic! equential Circuits " imple circuits with feedback " Latches " Edge-triggered flip-flops! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew! Basic egisters "

More information

Glitches/hazards and how to avoid them. What to do when the state machine doesn t fit!

Glitches/hazards and how to avoid them. What to do when the state machine doesn t fit! State Machine Signaling Timing Behavior Glitches/hazards and how to avoid them SM Partitioning What to do when the state machine doesn t fit! State Machine Signaling Introducing Idle States (synchronous

More information

Administrative issues. Sequential logic

Administrative issues. Sequential logic Administrative issues Midterm #1 will be given Tuesday, October 29, at 9:30am. The entire class period (75 minutes) will be used. Open book, open notes. DDPP sections: 2.1 2.6, 2.10 2.13, 3.1 3.4, 3.7,

More information

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

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences EECS150 J. Wawrzynek Spring 2002 4/5/02 Midterm Exam II Name: Solutions ID number:

More information

INTEGRATED CIRCUITS. AN219 A metastability primer Nov 15

INTEGRATED CIRCUITS. AN219 A metastability primer Nov 15 INTEGRATED CIRCUITS 1989 Nov 15 INTRODUCTION When using a latch or flip-flop in normal circumstances (i.e., when the device s setup and hold times are not being violated), the outputs will respond to a

More information

Switching Circuits & Logic Design

Switching Circuits & Logic Design Switching Circuits & Logic Design Jie-Hong oland Jiang 江介宏 Department of Electrical Engineering National Taiwan University Fall 22 Latches and Flip-Flops http://www3.niaid.nih.gov/topics/malaria/lifecycle.htm

More information

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

Introduction. NAND Gate Latch.  Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1 2007 Introduction BK TP.HCM FLIP-FLOP So far we have seen Combinational Logic The output(s) depends only on the current values of the input variables Here we will look at Sequential Logic circuits The

More information

Rangkaian Sekuensial. Flip-flop

Rangkaian Sekuensial. Flip-flop Rangkaian Sekuensial Rangkaian Sekuensial Flip-flop Combinational versus Sequential Functions Logic functions are categorized as being either combinational (sometimes referred to as combinatorial) or sequential.

More information

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

Final Exam review: chapter 4 and 5. Supplement 3 and 4 Final Exam review: chapter 4 and 5. Supplement 3 and 4 1. A new type of synchronous flip-flop has the following characteristic table. Find the corresponding excitation table with don t cares used as much

More information

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates. equential Logic equential Circuits equential Circuits imple circuits with feedback Latches Edge-triggered flip-flops Timing Methodologies Cascading flip-flops for proper operation Clock skew Basic egisters

More information

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

1. Convert the decimal number to binary, octal, and hexadecimal. 1. Convert the decimal number 435.64 to binary, octal, and hexadecimal. 2. Part A. Convert the circuit below into NAND gates. Insert or remove inverters as necessary. Part B. What is the propagation delay

More information

Combinational / Sequential Logic

Combinational / Sequential Logic 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

More information

Logic Design ( Part 3) Sequential Logic (Chapter 3)

Logic Design ( Part 3) Sequential Logic (Chapter 3) o Far: Combinational Logic Logic esign ( Part ) equential Logic (Chapter ) Based on slides McGraw-Hill Additional material 24/25/26 Lewis/Martin Additional material 28 oth Additional material 2 Taylor

More information

CHAPTER 1 LATCHES & FLIP-FLOPS

CHAPTER 1 LATCHES & FLIP-FLOPS CHAPTER 1 LATCHES & FLIP-FLOPS 1 Outcome After learning this chapter, student should be able to; Recognize the difference between latches and flipflops Analyze the operation of the flip flop Draw the output

More information

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15 ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS 1 Classes of Logic Circuits two stable op. pts. Latch level triggered. Flip-Flop edge triggered. one stable op. pt. One-shot single pulse output no stable op.

More information

CHAPTER 4: Logic Circuits

CHAPTER 4: Logic Circuits CHAPTER 4: Logic Circuits II. Sequential Circuits Combinational circuits o The outputs depend only on the current input values o It uses only logic gates, decoders, multiplexers, ALUs Sequential circuits

More information

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I. Lecture 8 Digital Circuit And Logic Design I Lecture 8 Outline Sequential Logic Design Principles (1) 1. Introduction 2. Latch and Flip-flops 3. Clocked Synchronous State-Machine Analysis Panupong Sornkhom, 2005/2

More information

Digital Circuit And Logic Design I

Digital Circuit And Logic Design I Digital Circuit And Logic Design I Lecture 8 Outline Sequential Logic Design Principles (1) 1. Introduction 2. Latch and Flip-flops 3. Clocked Synchronous State-Machine Panupong Sornkhom, 2005/2 2 1 Sequential

More information

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid CSE140: Components and esign Techniques for igital Systems More -Flip-Flops Tajana Simunic Rosing Where we are now. What we covered last time: SRAM cell, SR latch, latch, -FF What we ll do next: -FF review,

More information

Digital Fundamentals: A Systems Approach

Digital Fundamentals: A Systems Approach Digital Fundamentals: A Systems Approach Latches, Flip-Flops, and Timers Chapter 6 Traffic Signal Control Traffic Signal Control: State Diagram Traffic Signal Control: Block Diagram Traffic Signal Control:

More information

CprE 281: Digital Logic

CprE 281: Digital Logic CprE 281: igital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Registers CprE 281: igital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev Administrative

More information

Principles of Computer Architecture. Appendix A: Digital Logic

Principles of Computer Architecture. Appendix A: Digital Logic A-1 Appendix A - Digital Logic Principles of Computer Architecture Miles Murdocca and Vincent Heuring Appendix A: Digital Logic A-2 Appendix A - Digital Logic Chapter Contents A.1 Introduction A.2 Combinational

More information

P U Q Q*

P U Q Q* ECE 27 Learning Outcome 3 - - Practice Exam A LEARNING OUTCOME #3: an ability to analyze and design sequential logic circuits. Multiple Choice select the single most appropriate response for each question.

More information

Unit 11. Latches and Flip-Flops

Unit 11. Latches and Flip-Flops Unit 11 Latches and Flip-Flops 1 Combinational Circuits A combinational circuit consists of logic gates whose outputs, at any time, are determined by combining the values of the inputs. For n input variables,

More information

Chapter Contents. Appendix A: Digital Logic. Some Definitions

Chapter Contents. Appendix A: Digital Logic. Some Definitions A- Appendix A - Digital Logic A-2 Appendix A - Digital Logic Chapter Contents Principles of Computer Architecture Miles Murdocca and Vincent Heuring Appendix A: Digital Logic A. Introduction A.2 Combinational

More information

Chapter 3. Boolean Algebra and Digital Logic

Chapter 3. Boolean Algebra and Digital Logic Chapter 3 Boolean Algebra and Digital Logic Chapter 3 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple logic circuits. Understand how

More information

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

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic 12.12.216 Chapter 5 Flip Flops Dr.-ng. Stefan Werner /14 Table of content Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays Chapter 3: Karnaugh-Veitch-Maps Chapter 4: Combinational

More information

Clocking Spring /18/05

Clocking Spring /18/05 ing L06 s 1 Why s and Storage Elements? Inputs Combinational Logic Outputs Want to reuse combinational logic from cycle to cycle L06 s 2 igital Systems Timing Conventions All digital systems need a convention

More information

Digital Fundamentals 11/2/2017. Summary. Summary. Floyd. Chapter 7. Latches

Digital Fundamentals 11/2/2017. Summary. Summary. Floyd. Chapter 7. Latches igital Fundamentals Tenth Edition Floyd hapter 7 2009 Pearson Education, Upper 2008 Pearson Saddle iver, Education N 07458. All ights eserved A latch is a temporary storage device that has two stable states

More information

Digital Fundamentals

Digital Fundamentals igital Fundamentals Tenth Edition Floyd Chapter 7 Modified by Yuttapong Jiraraksopakun Floyd, igital Fundamentals, 10 th 2008 Pearson Education ENE, KMUTT ed 2009 Summary Latches A latch is a temporary

More information

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

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters Logic and Computer Design Fundamentals Chapter 7 Registers and Counters Registers Register a collection of binary storage elements In theory, a register is sequential logic which can be defined by a state

More information

Chapter 11 Latches and Flip-Flops

Chapter 11 Latches and Flip-Flops Chapter 11 Latches and Flip-Flops SKEE1223 igital Electronics Mun im/arif/izam FKE, Universiti Teknologi Malaysia ecember 8, 2015 Types of Logic Circuits Combinational logic: Output depends solely on the

More information

Note that none of the above MAY be a VALID ANSWER.

Note that none of the above MAY be a VALID ANSWER. ECE 27 Learning Outcome 3 - - Practice Exam / Solution LEARNING OUTCOME #3: an ability to analyze and design sequential logic circuits. Multiple Choice select the single most appropriate response for each

More information