Section I: Digital System Analysis and Review

Size: px
Start display at page:

Download "Section I: Digital System Analysis and Review"

Transcription

1 Section I: Digital System Analysis and Review CEG 36/56; EE 45/65 Digital System Design Dr. Travis Doom, Assistant Professor Department of Computer Science and Engineering Wright State University Thanks to M. Mano, J. Wakerly, R. Haggard

2 Acknowledgements These slides were developed with the aid of examples found in: Logic and Computer Design Fundamentals - M. Morris Mano Digital Design: Principles and Practices - John Wakerly The original version of many of these slides were kindly provided by: Dr. Roger L. Haggard et al. Prentice Hall, Inc. CEG 36/56 - EE 45/65 Section I - 2

3 Outline Review of Combinational Logic Concepts What is Sequential Logic? Bi-stable Logic Elements and Metastability Basic Sequential Devices Flip-flops: Type, Function, and Structure Characteristic Equations The Clocked Synchronous State Machine (CSSM) Analysis of State Machines General structure, Analysis procedure CSSM Models: Mealy Vs. Moore Methods of Representation State tables and diagrams Timing Calculating Setup Time, Hold Times, and Maximum clock rate CEG 36/56 - EE 45/65 Section I - 3

4 Logic Devices Logic devices divide into two major types: Combinational Logic Current output depends on current input only Examples: gates, decoders, multiplexors (MUXs), ALUs Familiarity with combinational logic is a course prerequisite Sequential Logic Current output depends on past inputs as well as current input Thus has a memory (usually called the state) Examples: latches, flip-flops, state machines, counters, shift registers CEG 36/56 - EE 45/65 Section I - 4

5 Basic Logic Gates AND gate Output Z = only when inputs A and B are both A B Z OR gate Output Z = only when inputs A or B or both are A B Z NOT gate or inverter Output Z = only when input A is A Z Simple alone, but combine a few million gates properly and you have a computer! CEG 36/56 - EE 45/65 Section I - 5

6 Gate Symbols OR NOR AND NAND INVERTER BUFFER Exercise: show that the equivalent gates do the same function CEG 36/56 - EE 45/65 Section I - 6

7 Logic Diagram A A A B B B B A (A B) (AB ) A B + AB B Good Design Practices include: Bubble-to-Bubble logic All wires are either horizontal or vertical All wires are labeled with expression Wires are connected at T intersections Wires are not connected at X intersections Schematic diagrams should include IC-Type-Logic Family Pin numbers- Pin Diagram Logic Diagram Reference designator- Unit Number Wires connected Wires not connected CEG 36/56 - EE 45/65 Section I - 7

8 Bubble-to to-bubble Logic Design Purpose : To make it easy to understand the function of the Logic circuit / FAIL / OVERFLOW ERROR? / FAIL / OVERFLOW ERROR CEG 36/56 - EE 45/65 Section I - 8

9 Digital Devices Analog characteristics Continuous signal levels Very small, smooth level changes Digital characteristics Discrete signal levels (voltage usually) Two levels: on/off, high/low / (binary) Disjoint or quantized level changes v v t t Digital Concepts and Devices Digital Design also called Logic Design Logic Gates - the most basic digital devices Digital devices have analog electronic aspects Exercise: list some of these aspects CEG 36/56 - EE 45/65 Section I - 9

10 Electronic Aspects of Digital Design V out V cc V cc V in R b R c V out V OHmin V OLmax Abnormal except for switching V in low? I b = GND transistor cut off: V out = V cc V in high? I b > transistor on : V out = GND V CESat GND V in V OLmax V IHmin V cc V OLmax : max output voltage in low state V OHmin : min output voltage in high state V ILmax : max input voltage recognized as low V IHmin : min input voltage recognized as high CEG 36/56 - EE 45/65 Section I -

11 Electronic Aspects of Digital Design Digital devices are built with analog components A range of voltages associated with each logic value ( or ) Noise margin : The difference between the range boundaries in low state = V ILmax - V OLmax =.5 V -. V=.4 V for 5V CMOS in high state = V OHmin - V IHLmin = 4.9 V V=.4 V for 5V CMOS Voltage Outputs Noise Margin Inputs Logic Logic Invalid Logic Logic CEG 36/56 - EE 45/65 Section I -

12 Electronic Aspects of Digital Design Logic gates Specifications : - Conditions under which the digital device produces and recognizes logic signals within the appropriate range. - Examples : - Power-supply voltage - Temperature - Loading - Frequency Manufacturer specifications ( data sheets ) CEG 36/56 - EE 45/65 Section I - 2

13 Propagation Delay The delay time between input transitions and the output transitions due to the propagation delay of the the logic gates. tp of a signal depends on the signal path inside the logic circuit For a logic gate tplh may not equal tphl tp is specified in the manufacturer data sheets of the IC s Example : -The time delay for 74x in nanoseconds for three logic Families: Typical Maximum tplh tphl tplh tphl 74LS HCT ACT To find tp for a signal, add the propagation delays of all gates along the path of the signal CEG 36/56 - EE 45/65 Section I - 3

14 Timing Diagrams Actual Timing Diagram X Y X Y t plh(xy) t phl(xy) t rise t fall Functional Timing Diagram X Y Functional timing diagrams do not show exact delays. lining up everything allows the diagram to display more clearly which functions are performed in response to which action Illustrates operation, but does not specify upper and lower limits Not always sufficient for a real design CEG 36/56 - EE 45/65 Section I - 4

15 Decoder Multiple-input/multiple-output device. Decoder -Inputs (n) < outputs (m). Encoder - Inputs (n) > outputs (m) input code DECODER output code Converts input code words into output code words. One-to-One mapping : - Each input code produces only one output code. enable inputs Input codes : - Binary Code - Gray Code - BCD Code - Your Code! input code ENCODER output code CEG 36/56 - EE 45/65 Section I - 5

16 Binary Decoder n-to-2^n decoder: n inputs and 2^n outputs. Input code : Binary Code. Output code : -out-of-2^n, One output is asserted for each input code. Example : n=2, 2-to-4 decoder Inputs Outputs EN I I Y3 Y2 Y Y x x I I EN Y Y Y2 Y3 CEG 36/56 - EE 45/65 Section I - 6

17 Comparators Compares Two binary words and indicate if they are equal A B Comparator OUTPUT Advanced Comparators : A B Comparator A=B A>B A<B -bit Comparator : XOR gate, the Output is if A<>B A B F CEG 36/56 - EE 45/65 Section I - 7

18 Iterative Combinational Logic Iterative logic array: A device consisting of identical sub-circuits connected together in a chain to perform a larger overall function Iterative Comparator : cascaded -bit comparators -bit comparator : Function Table EI X Y EO x x EI X Y EO X Y X Y X(N-) Y(N-) E = X EI Y EO E X EI Y EO E E(N-) X EI Y EO EN CEG 36/56 - EE 45/65 Section I - 8

19 MSI Arithmetic Logic Units (ALU ) ALU performs Arithmetic and Logical Functions - A, B : 4 bits inputs - S3,S2,S,S : Function select - M= : Arithmetic operations +=Plus, - = Minus M= : Logical operations : += OR,. =AND Example : Inputs Functions S3 S2 S S M= M= F= A-+CIN F=A F= A-B-+CIN F=A XOR B F= A+B+CIN F=A XOR B F=(A OR B)+ CIN F=A+B F= A+A+CIN F= F=A+CIN F=A 74x8 S S S2 G S3 P M A=B CIN A F B F A F2 B F3 A2 COUT B2 A3 B3 CEG 36/56 - EE 45/65 Section I - 9

20 Multiplexers Multiplexing: transmitting large number of signals over a small number of channels or lines Digital multiplexer (MUX): selects one of many input lines and directs it to a single output (often a bus or party line ). Selection lines controls the selection of a particular input m-bit 2 n x multiplexer: n selection lines, 2 n m-bit inputs, m-bit output. Example : 4-to- line multiplexer: Function Table : S S Y I I I2 I3 Inputs I I I2 I3 4? MUX S S Select Y Output CEG 36/56 - EE 45/65 Section I - 2

21 Implementing Logic Functions Any n-variable logic function can be implemented using a 2 n -to- MUX (In fact, MUXs are a universal device! Any combinational function can be implemented using only MUXes). The inputs variables are connected to the select input. The function value for each input combination ( or ) is connected to the corresponding input of the MUX Example: I Row X Y F 2 3 X Y I I2 I3 4? MUX S S Y F CEG 36/56 - EE 45/65 Section I - 2

22 Functional Decomposition Effective way for using MUX to implement Logic Functions. n-variable truth table can be simplified using any MUX : Use one or more variables as control inputs Decompose the remaining logic function in terms of the remaining inputs For 3-variable Logic Function, the decomposed truth table is : Row X Y Z F, x F(Z) 2,3 x F(Z) 4,5 x F(Z) 6,7 x F(Z) F(Z) F(Z) F(Z) I I I2 4? MUX Y F Values of Fxx(Z) = or or Z or Z F(Z) I3 S S X Y CEG 36/56 - EE 45/65 Section I - 22

23 Demultiplexers Demultiplexer (DMUX) performs the opposite function of a MUX. A digital Demultiplexer receives input data on a single input and transmits it on one of 2^n possible outputs according to the value of the n select inputs MUX/DMUX are used in data transmission Source Destination A B MUX BUS DMUX A B C C Select Select CEG 36/56 - EE 45/65 Section I - 23

24 Programmable Logic Devices PLDs are generic logic devices capable of implementing a wide range of combinational (and sequential) functions. O = F (x x n ) O = F (x x n ) O m = F m (x x n ) n inputs Combinational PLD m outputs CEG 36/56 - EE 45/65 Section I - 24

25 Outline Review of Combinational Logic Concepts What is Sequential Logic? Bi-stable Logic Elements and Metastability Basic Sequential Devices Flip-flops: Type, Function, and Structure Characteristic Equations The Clocked Synchronous State Machine (CSSM) Analysis of State Machines General structure, Analysis procedure CSSM Models: Mealy Vs. Moore Methods of Representation State tables and diagrams Timing Calculating Setup Time, Hold Times, and Maximum clock rate CEG 36/56 - EE 45/65 Section I - 25

26 Sequential Logic Definitions STATE- A collection of state variables whose values at any one time contain all the information about the past values necessary to account for future behavior. Example: A TV tuner could have a current channel stored internally, so the next channel can be predicted as a function of the inputs, i.e. the UP button increases the channel by one, the DOWN button decreases the channel by one. What is the state of this TV tuner? Digital sequential logic State variables are binary values Circuit with n binary state variables has 2 n possible states Also known as a finite state machine (FSM). Changes usually synchronized with a system clock CEG 36/56 - EE 45/65 Section I - 26

27 Bistable Element The simplest possible feedback sequential logic circuit is shown below: V in V out V in2 V out2 / It is bistable because it has two stable states: State : If (=V out =V in2 ) is high, the bottom inverter output (/ =V out2 =V in ) is low, which keeps the top inverter output high. State 2: If is low, the bottom inverter output / is high, which keeps the top inverter output low. CEG 36/56 - EE 45/65 Section I - 27

28 Analog Analysis of a Bistable Top Inverter alone Bottom Inverter alone V out V in2 V in V out2 / Complete Bistable V out =V in2 Stable High Metastable Stable Low V in =V out2 CEG 36/56 - EE 45/65 Section I - 28

29 Bistable Devices and Metastability There are not two stable states, but three (a problem!) A metastable point occurs when both outputs are halfway between high and low, the resulting output is not a valid logic level. Metastability could last forever, but noise usually pushes towards a stable state (HIGH or LOW). Noise in a bistable state returns it to the same stable state Every input pulse must remain stable long enough This is the minimum pulse width for the bistable element Analogous to a ball on a hill: Metastable Stable Low Stable High Strong kick (wide pulse)? Weak kick? Moderate kick? CEG 36/56 - EE 45/65 Section I - 29

30 S-R R Latch Set Symbol S Hold Function Table S R / Last Last / Reset R Reset Set ILLEGAL R S Schematic / Characteristic Equation: (t+) = S + R (t) Consider: Timing Diagram Propagation delay Minimum pulse width Oscillation CEG 36/56 - EE 45/65 Section I - 3

31 S-R R Latch with Enable S C R S R C / Last Last / S X X Last Last / C R S R Only sensitive to S and R when enabled (C=) Same oscillation problem How does C effect the minimum pulse width? CEG 36/56 - EE 45/65 Section I - 3

32 D Latch D C C D / X Last Last / Characteristic Equation: (t+) = D D C S C R Store a data bit, not set/reset The Transparent latch No illegal operation problem CEG 36/56 - EE 45/65 Section I - 32

33 Outline Review of Combinational Logic Concepts What is Sequential Logic? Bi-stable Logic Elements and Metastability Basic Sequential Devices Flip-flops: Type, Function, and Structure Characteristic Equations The Clocked Synchronous State Machine (CSSM) Analysis of State Machines General structure, Analysis procedure CSSM Models: Mealy Vs. Moore Methods of Representation State tables and diagrams Timing Calculating Setup Time, Hold Times, and Maximum clock rate CEG 36/56 - EE 45/65 Section I - 33

34 Types of Sequential Logic An Asynchronous Sequential Circuit uses ordinary gates and feedback loops to implement memory in a logic circuit. Meeting minimum pulse width requirements may be tricky A Synchronous Sequential Circuit uses flip-flops (internally, an asynchronous sequential device) to form useful sequential logic functions or applications. The state variables and outputs of a synchronous system change with respect to a controlling clock signal Meeting minimum pulse width requirements is simplified by restating all timing constraints in terms of the clock signal CEG 36/56 - EE 45/65 Section I - 34

35 Sequential Logic Definitions Clock - the master timing element behind the state changes of most sequential circuits. a clock signal is active high if the state changes occur at the rising edge (for edge triggered devices) or in the logic state (for pulse-triggered devices) active low if state changes occur at the falling edge or in the logic state. Clock Period - time between successive transitions in the same direction Clock Frequency - reciprocal of the clock period Clock Tick - the first edge or pulse in a clock period, or the period itself Duty Cycle - the percentage of time that a clock is at its assertion level CEG 36/56 - EE 45/65 Section I - 35

36 Clock Characteristics State change Frequency = /Period Active High Period t L t H Duty Cycle = t H /Period State change Active Low Period t L t H Duty Cycle = t L /Period CEG 36/56 - EE 45/65 Section I - 36

37 Master/Slave S-R S R Flip-Flop Flop S R C / S C R X X Last Last Last / Last / Pulse-triggered S-R flip-flop Multiple signals may conflict Ideally, inputs are held for the entire enable pulse S R S C R S C R undef. undef. / C Only one state change/pulse CEG 36/56 - EE 45/65 Section I - 37

38 Master/Slave J-K J K Flip-Flop Flop J K C / J C K Fixes S=R= problem, now toggles /s catching - gate propagation delays complicate timing X X Last Last Last / Last / Last / Last J K S C R S C R / C CEG 36/56 - EE 45/65 Section I - 38

39 Positive-Edge Edge-Triggered D Flip-Flop Flop D D CLK / D >CLK Device samples inputs and changes state only on a clock edge. Simplifies the meeting of setup/hold times. Master FF - transparent on CLK (entire pulse) Slave FF - transparent on CLK (master fixed) Master D X X M Last Last Slave D Last / Last / C C / CLK CEG 36/56 - EE 45/65 Section I - 39

40 Negative-Edge Edge-Triggered D Flip-Flop Flop D >CLK D CLK / X X Last Last Last / Last / D D D C C / CLK CEG 36/56 - EE 45/65 Section I - 4

41 Edge-Triggered J-K J K Flip-Flop Flop J K C / J >CLK K X X X X Last Last Last Last / Last / Last / Last / Last J K D (t+) = J (t) + K (t) CLK >CLK / CEG 36/56 - EE 45/65 Section I - 4

42 T (toggle) Flip-Flop Flop A T flip-flop changes state on every clock tick (if enabled) Possible circuit designs T without enable D >CLK / J >CLK K / (t+) = (t) T with enable T D >CLK / T J >CLK K / (t+) = T (t) + T (t) CEG 36/56 - EE 45/65 Section I - 42

43 Types Latches and Flip-flops Common Latches S-R Latch /S-/R Latch S-R Latch with Enable D Latch Common Flip-flops Edge-Triggered D Flip-Flop Master/Slave S-R Flip-Flop Master/Slave J-K Flip-Flop Edge-Triggered J-K Flip-Flop T Flip-Flop CEG 36/56 - EE 45/65 Section I - 43

44 Characteristic Equations Describe the next state of a flip-flop as function of current state and inputs: (t+) = f ((t), inputs) t+ represents the next clock tick t represents the current clock tick t- represents the previous clock tick and so on... Derived from basic function table for a given flip-flop type Very useful in state machine analysis and design CEG 36/56 - EE 45/65 Section I - 44

45 Characteristic Equations D latch or flip-flop present next input state state D (t) (t+) Characteristic Equation: (t+) = D S-R latch S R (t) (t+) X X X X Characteristic Equation: (t+) = S + R (t) CEG 36/56 - EE 45/65 Section I - 45

46 Characteristic Equations J-K flip-flop J K (t) (t+) = hold = reset = set = toggle Characteristic Equation: (t+) = J (t) + K (t) T flip-flop with enable T (t) (t+) Characteristic Equation: (t+) = T (t) + T (t) CEG 36/56 - EE 45/65 Section I - 46

47 Characteristic Equations Summary Device Type Characteristic Equation S-R latch (t+) = S + R (t) D latch Edge-triggered D flip-flop Master/slave S-R flip-flop Master/slave J-K flip-flop Edge-triggered J-K flip-flop T flip-flop T flip-flop with enable (t+) = D (t+) = D (t+) = S + R (t) (t+) = J (t) + K (t) (t+) = J (t) + K (t) (t+) = (t) (t+) = T (t) + T (t) CEG 36/56 - EE 45/65 Section I - 47

48 What Are Flip-flops? Common asynchronous (feedback) sequential circuits Latch Single-bit storage (memory) Changes state at any time due to input change Must guarantee a minimum pulse width to avoid metastability Fast and cheap (small # of transistors) Often used in high speed microprocessor design Flip-flop Also single-bit storage Changes state ONLY when a clock edge or pulse is applied Uses setup and hold times before and after the clock pulse to avoid metastability Clocking simplifies the design process CEG 36/56 - EE 45/65 Section I - 48

49 Flip-flop Timing t pd Combinational Latch Flip-flip t pd,min t pd,max t pd,min t pd,max t w t pd, min t pd, max t setup t hold t setup, t hold J >CLK K - minimum propagation delay, input to output - maximum propagation delay, input to output - minimum propagation delay, input to output - maximum propagation delay, input to output - minimum pulse width, input to input - minimum propagation delay, CLK to output - maximum propagation delay, CLK to output - required time of stable input before CLK, input before CLK - required time of stable input after CLK, input after CLK CEG 36/56 - EE 45/65 Section I - 49

50 Asynchronous Inputs Most flip-flops have two asynchronous/direct inputs Preset and Reset (or Clear) Directly set or reset the /S-/R latches Operate independent of clock Good design practice dictates: NEVER use asynchronous inputs for logic functions, only for system initialization to a known state Why? Recall: Synchronous circuits: behavior of circuit depends on the value of the signals at discrete points in time, determined by a control signal (clock) Asynchronous circuits: behavior of circuit depends on the order in which the inputs signals change (changes can occur at any time) CEG 36/56 - EE 45/65 Section I - 5

51 Outline Review of Combinational Logic Concepts What is Sequential Logic? Bi-stable Logic Elements and Metastability Basic Sequential Devices Flip-flops: Type, Function, and Structure Characteristic Equations The Clocked Synchronous State Machine (CSSM) Analysis of State Machines General structure, Analysis procedure CSSM Models: Mealy Vs. Moore Methods of Representation State tables and diagrams Timing Calculating Setup Time, Hold Times, and Maximum clock rate CEG 36/56 - EE 45/65 Section I - 5

52 Clocked Synchronous State-machine Analysis Analysis How does a given circuit work? What does it do? How do input sequences map to output sequences? Clocked synchronous state-machine Clocked: storage elements (flip-flops) use a clock input Synchronous: all flip-flops use the same clock signal State-machine types Mealy Machine (most general type): Next state = F ( current state, inputs ) Output = G ( current state, inputs ) Moore Machine: Next state = F ( current state, inputs ) Output = G ( current state ) CEG 36/56 - EE 45/65 Section I - 52

53 Clocked Synchronous State-machine Model (Mealy machine) inputs Next-state Logic excitation State Memory current state Output Logic outputs F G clock clock State memory: Usually edge-triggered D or JK flip-flops Moore Machine CEG 36/56 - EE 45/65 Section I - 53

54 Basic Analysis of State Machines Determine next-state and output functions F and G Use F and G to construct a state/output table Draw a graphical representation of the state/output table State Diagram Common for small designs Similar to a finite automata Algorithmic State Machine (ASM) Chart Common for larger designs Similar to a flowchart Timing Diagram Common for all designs CEG 36/56 - EE 45/65 Section I - 54

55 Detailed Analysis of State Machines Analyze the combinational logic to determine flip-flop input (excitation) equations: D i = F i ((t), X(t)) The input to each flip-flop is based upon current state and primary inputs Substitute excitation equations into flip-flop characteristic equations, giving transition equation: i (t+) = H i ( D i ) Construct a state table from the transition equations Find output equations: Z(t) = G ((t), X(t)) The primary outputs are based upon the current state and primary inputs Add output values to the state table Provide meaningful names for the states in state table, if possible The graphical representation of state table is called a state diagram Analyze timing requirements CEG 36/56 - EE 45/65 Section I - 55

56 Moore A B, State Diagram Format: Arc = input X Node = state/output Mealy Basic Format: State Output Input / A / B Format: Arc = input X / mealy output Y Node = state /, / CEG 36/56 - EE 45/65 Section I - 56

57 Example - Circuit w/o Primary Inputs Y D D D D Z CLK Excitation: D = ( + ) = D = Output: Y = Z = Thus, Moore machine CEG 36/56 - EE 45/65 Section I - 57

58 Example - Equations Excitation D = D = Characteristic (t+) = D (t+) = D Transition (t+) = D = (t+) = D = Output Y = Z = CEG 36/56 - EE 45/65 Section I - 58

59 State Table: Example - Tables 2 Y Z State Table w/named states: (t+)2(t+) S Y Z A A B C C B D B S(t+) No inputs! Transition (t+) = D = (t+) = D = CEG 36/56 - EE 45/65 Section I - 59

60 Example - State Diagram Format: Arc = no input Node = state/outputs YZ A B A,D Unreachable, Only B,C are useful. Therefore, only flip-flop is needed. D C CEG 36/56 - EE 45/65 Section I - 6

61 Example 2 - State Machine with D Flip-flops X Y /2 D D CLK Z D D CLK D2 D CLK 2 /2 /Z2 CLK Input Logic F State Memory Output Logic G CEG 36/56 - EE 45/65 Section I - 6

62 Example 2 - Equations Excitation D = X Y 2 D = X D2 = Y + Characteristic (t+) = D (t+) = D 2(t+) = D2 Transition (t+) = D = X Y 2 (t+) = D = X 2(t+) = D2 = Y + Output Z = X + /Z2= ( 2) CEG 36/56 - EE 45/65 Section I - 62

63 Example 2 - Two-Dimensional State table state XY name 2 A=,,,, B=,,,, C=,,,, D=,,,, E=,,,, F=,,,, G=,,,, H=,,,, 2(t+) (t+) (t+), Z /Z2 (Next State, Outputs) Transition Equations (t+) = D = X Y 2 (t+) = D = X 2(t+) = D2 = Y + X Y or Output Equations Z = X + /Z2= ( 2) CEG 36/56 - EE 45/65 Section I - 63

64 Example 2 - Named State / Output table XY S A E, A, A, F, B E, A, C, H, C E, E, E, F, D E, E, G, H, E E, A, A, E, F E, A, C, G, G E, E, E, E, H E, E, G, G, S(t+), Z /Z2 CEG 36/56 - EE 45/65 Section I - 64

65 Example 2 - State Diagram Y () () X Y B X Y () H Incomplete! A G XY () X Y () F X Y () C XY X +Y X Y () () () XY () XY () Different format Arc: input expression (outputs) = expression (Z /Z2) E D X () Also possible: Same transition, but different outputs x y () A x y () CEG 36/56 - EE 45/65 Section I - 65 B

66 Analysis of J-K J K Flip-Flop Flop State Machines There are two excitation equations per flip-flop (J, K) The characteristic equation : (t+) = J (t) + K (t) Use the same analysis procedure shown previously CEG 36/56 - EE 45/65 Section I - 66

67 Example 3 - State Machine with J-K J K Flip-flops X J J Z Y K J2 K J 2 Mealy Output: Z = X + 2 K2 K CLK CEG 36/56 - EE 45/65 Section I - 67

68 Example 3 - Equations Excitation J = X K = X Y J2 = X K2 = Characteristic (t+)= J + K (t+) = J + K 2(t+) = J2 2 + K2 2 Transition (t+) = X + (X Y) = X + X + Y 2(t+) = X = X Mealy Output Z = X + 2 CEG 36/56 - EE 45/65 Section I - 68

69 Example 3 - State Table XY S 2 A,,,, B,,,, C,,,, D,,,, (t+) 2(t+), Z Transition (t+) = X + (X Y) = X + X + Y 2(t+) = X = X Mealy Output Z = X + 2 CEG 36/56 - EE 45/65 Section I - 69

70 Example 3 - Named State/Output Table XY S A B, B, C, C, B B, B, D, D, C D, D, A, C, D D, D, B, D, S(t+), Z CEG 36/56 - EE 45/65 Section I - 7

71 Example 3 - State Diagram Arc Format: inputs xy output z A, B,,, D,,, C CEG 36/56 - EE 45/65 Section I - 7

72 Example 3 - State Diagram Arc Format: Transition Expression output A X B X X XY X XY X C (XY) D XY For each state/input combination there must be exactly one next-state (and output). Mutual Exclusion: No more than one transition arc from any state can be satisfied by any input assignment All Inclusion: At least one transition arc must exist from any state for any input assignment CEG 36/56 - EE 45/65 Section I - 72

73 Timing Analysis All digital devices have associated propagation delays (min,max) Sequential devices have setup and hold times that must be satisfied to avoid metastable behavior Providing a synchronous clock simplifies timing analysis All devices produce effects within a well-defined range At what speeds will a device function? One transition per clock What is the maximum clock rate? Sequential devices require the following timing documentation: Maximum propagation delay (clock to output) Minimum propagation delay (clock to output) Setup time (input before clock) Hold time (input after clock) CEG 36/56 - EE 45/65 Section I - 73

74 74LS74 Data Sheet Timing Parameter Min Max Units t W Pulse Width - Clock High 8 ns - Preset Low 5 ns - Clear Low 5 ns t SU Setup Time 2 ns t H Hold Time ns f MAX Max Clock Frequency 2 MHz t PLH Prop Delay, Clock-to- 35 ns t PLH Prop Delay, Preset-to- 35 ns t PLH Prop Delay, Clear-to- 35 ns CEG 36/56 - EE 45/65 Section I - 74

75 Clocked Synchronous State-machine Structure (Mealy machine) inputs Next-state Logic excitation State Memory current state Output Logic outputs F R G clock clock Calculate: t, F_pd(max) t, F_pd(min) t, R_pd(max) t, R_pd(min) t, R_setup(max) t, R_hold(max) t, G_pd(max) t, G_pd(min) CEG 36/56 - EE 45/65 Section I - 75

76 Timing Diagram CLOCK flip-flop outputs combinational logic t ffpd t H t clk t L t comb excitation inputs setup-time margin t setup t hold CEG 36/56 - EE 45/65 Section I - 76

77 Calculating Sequential Device Timing Specs. Calculate the delay from clock edge to worst-case primary output: t_pd,clock-to-output (min) = t,r_pd(min) + t,g_pd(min) t_pd,clock-to-output (max) = t,r_pd(max) + t,g_pd(max) Calculate the delay from input to worst-case (Mealy) primary output: t_pd,input-to-output (min) = t,g_pd(min) t_pd,input-to-output (min) = t,g_pd(min) Calculate the worst-case setup time for any input: t_setup = t,f_pd(max) + t,r_setup(max) Calculate the worst-case hold time for any input: t_hold = t,r_hold(max) - t,f_pd(min) Calculate the maximum clock rate by finding the minimum period: min. period = t,r_pd(max) + t,f_pd(max) + t,r_setup(max) Make certain that the device works! t,r_pd(min) + t,f_pd(min) > t,r_hold(max) CEG 36/56 - EE 45/65 Section I - 77

78 Synchronous System Example in in2 Combinational logic State Devices 3 2 t pd,comb = 2 ns (min) to 2 ns (max) t pd,ff = 3 ns (min) to 5 ns (max) t setup = 5 ns Setup/Hold Time: Max Frequency? Setup MHz? Hold Margin? t hold = 4 ns t setup = 2 + 5; t hold = 4-2 = 2 ns t clk,min >= = 4 ns, f max <= 25 MHz - 4 = 6 ns (3 + 2) - 5 = ns (4ns) - = 25 MHz CEG 36/56 - EE 45/65 Section I - 78

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

Advanced Digital Logic Design EECS 303

Advanced Digital Logic Design EECS 303 Advanced Digital Logic Design EECS 303 http://ziyang.eecs.northwestern.edu/eecs303/ Teacher: Robert Dick Office: L477 Tech Email: dickrp@northwestern.edu Phone: 847 467 2298 Outline Introduction Reset/set

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

Sequential Logic Circuits

Sequential Logic Circuits Sequential Logic Circuits By Dr. M. Hebaishy Digital Logic Design Ch- Rem.!) Types of Logic Circuits Combinational Logic Memoryless Outputs determined by current values of inputs Sequential Logic Has memory

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

IT T35 Digital system desigm y - ii /s - iii

IT T35 Digital system desigm y - ii /s - iii UNIT - III Sequential Logic I Sequential circuits: latches flip flops analysis of clocked sequential circuits state reduction and assignments Registers and Counters: Registers shift registers ripple counters

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

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

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

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

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany Digital Logic Design Sequential Circuits Dr. Basem ElHalawany Combinational vs Sequential inputs X Combinational Circuits outputs Z A combinational circuit: At any time, outputs depends only on inputs

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

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

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

Sequential Logic and Clocked Circuits

Sequential Logic and Clocked Circuits Sequential Logic and Clocked Circuits Clock or Timing Device Input Variables State or Memory Element Combinational Logic Elements From combinational logic, we move on to sequential logic. Sequential logic

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

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

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

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

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

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

Logic Design. Flip Flops, Registers and Counters

Logic Design. Flip Flops, Registers and Counters Logic Design Flip Flops, Registers and Counters Introduction Combinational circuits: value of each output depends only on the values of inputs Sequential Circuits: values of outputs depend on inputs and

More information

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

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS COURSE / CODE DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS In the same way that logic gates are the building blocks of combinatorial circuits, latches

More information

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

EEC 118 Lecture #9: Sequential Logic. Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation EEC 118 Lecture #9: Sequential Logic Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation Outline Review: Static CMOS Logic Finish Static CMOS transient analysis Sequential

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

MODULE 3. Combinational & Sequential logic

MODULE 3. Combinational & Sequential logic MODULE 3 Combinational & Sequential logic Combinational Logic Introduction Logic circuit may be classified into two categories. Combinational logic circuits 2. Sequential logic circuits A combinational

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

INTRODUCTION TO SEQUENTIAL CIRCUITS NOTE: Explanation Refer Class Notes Digital Circuits(15EECC203) INTRODUCTION TO SEQUENTIAL CIRCUITS by Nagaraj Vannal, Asst.Professor, School of Electronics Engineering, K.L.E. Technological University,

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

Experiment 8 Introduction to Latches and Flip-Flops and registers Experiment 8 Introduction to Latches and Flip-Flops and registers Introduction: The logic circuits that have been used until now were combinational logic circuits since the output of the device depends

More information

ELEN Electronique numérique

ELEN Electronique numérique ELEN0040 - Electronique numérique Patricia ROUSSEAUX Année académique 2014-2015 CHAPITRE 5 Sequential circuits design - Timing issues ELEN0040 5-228 1 Sequential circuits design 1.1 General procedure 1.2

More information

Chapter 2. Digital Circuits

Chapter 2. Digital Circuits Chapter 2. Digital Circuits Logic gates Flip-flops FF registers IC registers Data bus Encoders/Decoders Multiplexers Troubleshooting digital circuits Most contents of this chapter were covered in 88-217

More information

Introduction to Sequential Circuits

Introduction to Sequential Circuits Introduction to Sequential Circuits COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals Presentation Outline Introduction to Sequential Circuits Synchronous

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

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

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

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

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

Sequential Circuits: Latches & Flip-Flops

Sequential Circuits: Latches & Flip-Flops Sequential Circuits: Latches & Flip-Flops Overview Storage Elements Latches SR, JK, D, and T Characteristic Tables, Characteristic Equations, Eecution Tables, and State Diagrams Standard Symbols Flip-Flops

More information

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic. Chapter 6. sequential logic design This is the beginning of the second part of this course, sequential logic. equential logic equential circuits simple circuits with feedback latches edge-triggered flip-flops

More information

Chapter 5 Flip-Flops and Related Devices

Chapter 5 Flip-Flops and Related Devices Chapter 5 Flip-Flops and Related Devices Chapter 5 Objectives Selected areas covered in this chapter: Constructing/analyzing operation of latch flip-flops made from NAND or NOR gates. Differences of synchronous/asynchronous

More information

Computer Architecture and Organization

Computer Architecture and Organization A-1 Appendix A - Digital Logic Computer Architecture and Organization 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

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

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN ELCT201: DIGITAL LOGIC DESIGN Dr. Eng. Haitham Omran, haitham.omran@guc.edu.eg Dr. Eng. Wassim Alexan, wassim.joseph@guc.edu.eg Lecture 6 Following the slides of Dr. Ahmed H. Madian ذو الحجة 1438 ه Winter

More information

UNIT 1 NUMBER SYSTEMS AND DIGITAL LOGIC FAMILIES 1. Briefly explain the stream lined method of converting binary to decimal number with example. 2. Give the Gray code for the binary number (111) 2. 3.

More information

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과 EEE235 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과 . Delay and Latches ) Signal Storage a. as voltage level static memory b. as charges dynamic memory 2) Delays

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

WINTER 15 EXAMINATION Model Answer

WINTER 15 EXAMINATION Model Answer Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate

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

ELE2120 Digital Circuits and Systems. Tutorial Note 7

ELE2120 Digital Circuits and Systems. Tutorial Note 7 ELE2120 Digital Circuits and Systems Tutorial Note 7 Outline 1. Sequential Circuit 2. Gated SR Latch 3. Gated D-latch 4. Edge-Triggered D Flip-Flop 5. Asynchronous and Synchronous reset Sequential Circuit

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

MC9211 Computer Organization

MC9211 Computer Organization MC9211 Computer Organization Unit 2 : Combinational and Sequential Circuits Lesson2 : Sequential Circuits (KSB) (MCA) (2009-12/ODD) (2009-10/1 A&B) Coverage Lesson2 Outlines the formal procedures for the

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

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

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

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

Digital Integrated Circuits EECS 312

Digital Integrated Circuits EECS 312 14 12 10 8 6 Fujitsu VP2000 IBM 3090S Pulsar 4 IBM 3090 IBM RY6 CDC Cyber 205 IBM 4381 IBM RY4 2 IBM 3081 Apache Fujitsu M380 IBM 370 Merced IBM 360 IBM 3033 Vacuum Pentium II(DSIP) 0 1950 1960 1970 1980

More information

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

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP 1 Chapter Overview Latches Gated Latches Edge-triggered flip-flops Master-slave flip-flops Flip-flop operating characteristics Flip-flop applications

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

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

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active. Flip-Flops Objectives The objectives of this lesson are to study: 1. Latches versus Flip-Flops 2. Master-Slave Flip-Flops 3. Timing Analysis of Master-Slave Flip-Flops 4. Different Types of Master-Slave

More information

Logic Design Viva Question Bank Compiled By Channveer Patil

Logic Design Viva Question Bank Compiled By Channveer Patil Logic Design Viva Question Bank Compiled By Channveer Patil Title of the Practical: Verify the truth table of logic gates AND, OR, NOT, NAND and NOR gates/ Design Basic Gates Using NAND/NOR gates. Q.1

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

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

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

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

Digital Logic Design I

Digital Logic Design I Digital Logic Design I Synchronous Sequential Logic Mustafa Kemal Uyguroğlu Sequential Circuits Asynchronous Inputs Combinational Circuit Memory Elements Outputs Synchronous Inputs Combinational Circuit

More information

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

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur SEQUENTIAL LOGIC Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur www.satish0402.weebly.com OSCILLATORS Oscillators is an amplifier which derives its input from output. Oscillators

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

Sequential Logic Basics

Sequential Logic Basics Sequential Logic Basics Unlike Combinational Logic circuits that change state depending upon the actual signals being applied to their inputs at that time, Sequential Logic circuits have some form of inherent

More information

D Latch (Transparent Latch)

D Latch (Transparent Latch) D Latch (Transparent Latch) -One way to eliminate the undesirable condition of the indeterminate state in the SR latch is to ensure that inputs S and R are never equal to 1 at the same time. This is done

More information

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops Objective Construct a two-bit binary decoder. Study multiplexers (MUX) and demultiplexers (DEMUX). Construct an RS flip-flop from discrete gates.

More information

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it, Solution to Digital Logic -2067 Solution to digital logic 2067 1.)What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it, A Magnitude comparator is a combinational

More information

DIGITAL ELECTRONICS MCQs

DIGITAL ELECTRONICS MCQs DIGITAL ELECTRONICS MCQs 1. A 8-bit serial in / parallel out shift register contains the value 8, clock signal(s) will be required to shift the value completely out of the register. A. 1 B. 2 C. 4 D. 8

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

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

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

Outline. EECS150 - Digital Design Lecture 27 - Asynchronous Sequential Circuits. Cross-coupled NOR gates. Asynchronous State Transition Diagram

Outline. EECS150 - Digital Design Lecture 27 - Asynchronous Sequential Circuits. Cross-coupled NOR gates. Asynchronous State Transition Diagram EECS150 - Digital Design Lecture 27 - Asynchronous Sequential Circuits Nov 26, 2002 John Wawrzynek Outline SR Latches and other storage elements Synchronizers Figures from Digital Design, John F. Wakerly

More information

VU Mobile Powered by S NO Group

VU Mobile Powered by S NO Group Question No: 1 ( Marks: 1 ) - Please choose one A 8-bit serial in / parallel out shift register contains the value 8, clock signal(s) will be required to shift the value completely out of the register.

More information

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic. Chapter 6. sequential logic design This is the beginning of the second part of this course, sequential logic. 1 equential logic equential circuits simple circuits with feedback latches edge-triggered flip-flops

More information

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

Outline. CPE/EE 422/522 Advanced Logic Design L03. Review: Clocked D Flip-Flop with Rising-edge Trigger. Sequential Networks Outline PE/EE 422/522 Advanced Logic Design L3 Electrical and omputer Engineering University of Alabama in Huntsville What we know ombinational Networks Analysis, Synthesis, Simplification, Buiing Blocks,

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

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

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

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall Objective: - Dealing with the operation of simple sequential devices. Learning invalid condition in

More information

Multiplexor (aka MUX) An example, yet VERY useful circuit!

Multiplexor (aka MUX) An example, yet VERY useful circuit! Multiplexor (aka MUX) An example, yet VERY useful circuit! A B 0 1 Y S A B Y 0 0 x 0 0 1 x 1 1 x 0 0 1 x 1 1 S=1 S=0 Y = (S)? B:A; Y=S A+SB when S = 0: output A 1: output B 56 A 32-bit MUX Use 32 1-bit

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

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

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

CHAPTER1: Digital Logic Circuits

CHAPTER1: Digital Logic Circuits CS224: Computer Organization S.KHABET CHAPTER1: Digital Logic Circuits 1 Sequential Circuits Introduction Composed of a combinational circuit to which the memory elements are connected to form a feedback

More information

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers EEE 304 Experiment No. 07 Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers Important: Submit your Prelab at the beginning of the lab. Prelab 1: Construct a S-R Latch and

More information

Introduction to Microprocessor & Digital Logic

Introduction to Microprocessor & Digital Logic ME262 Introduction to Microprocessor & Digital Logic (Sequential Logic) Summer 2 Sequential Logic Definition The output(s) of a sequential circuit depends d on the current and past states of the inputs,

More information

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20 Advanced Devices Using a combination of gates and flip-flops, we can construct more sophisticated logical devices. These devices, while more complex, are still considered fundamental to basic logic design.

More information

EE292: Fundamentals of ECE

EE292: Fundamentals of ECE EE292: Fundamentals of ECE Fall 2012 TTh 10:00-11:15 SEB 1242 Lecture 23 121120 http://www.ee.unlv.edu/~b1morris/ee292/ 2 Outline Review Combinatorial Logic Sequential Logic 3 Combinatorial Logic Circuits

More information

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

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram UNIT III INTRODUCTION In combinational logic circuits, the outputs at any instant of time depend only on the input signals present at that time. For a change in input, the output occurs immediately. Combinational

More information

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

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics Egemen K. Çetinkaya Egemen K. Çetinkaya Department of Electrical & Computer Engineering Missouri University of Science and

More information

EKT 121/4 ELEKTRONIK DIGIT 1

EKT 121/4 ELEKTRONIK DIGIT 1 EKT 2/4 ELEKTRONIK DIGIT Kolej Universiti Kejuruteraan Utara Malaysia Sequential Logic Circuits - COUNTERS - LATCHES (review) S-R R Latch S-R R Latch Active-LOW input INPUTS OUTPUTS S R Q Q COMMENTS Q

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

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

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