CSE 140 Discussion Section Midterm #2 Review Mingjing Chen.

Slides:



Advertisements
Similar presentations
CS 140 Lecture 11 Sequential Networks: Timing and Retiming Professor CK Cheng CSE Dept. UC San Diego 1.
Advertisements

Logic Gates.
1 A latch is a pair of cross-coupled inverters –They can be NAND or NOR gates as shown –Consider their behavior (each step is one gate delay in time) –From.
Review for Exam 2 Using MUXs to implement logic
Multiplexer as a Universal Function Generator Lecture L6.7 Section 6.2.
Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
1 Sequential Ckts, Latches and Timing Issues Today: Sequential Circuits, LatchesFirst Hour: Sequential Circuits, Latches –Section of Katz’s Textbook.
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
Digital Electronics Lecture 7 Sequential Logic Circuit Design.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
K-Maps, Timing Sequential Circuits: Latches & Flip-Flops Lecture 4 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier,
Chapter 6 –Selected Design Topics Part 2 – Propagation Delay and Timing Logic and Computer Design Fundamentals.
1 Lecture 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
Assume array size is 256 (mult: 4ns, add: 2ns)
How Computers Work Lecture 6 Page 1 How Computers Work Lecture 6 Finite State Machines.
Review and Overview. Review  Combinational logic circuit – Decoder, Encoder, Multiplexer, De-multiplexer, Full Adder, Multiplier  Sequential logic circuit.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
ENGIN112 L28: Timing Analysis November 7, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 28 Timing Analysis.
Revision Mid 2 Prof. Sin-Min Lee Department of Computer Science.
ENGIN112 L31: Read Only Memory November 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 31 Read Only Memory (ROM)
CHAPTER 3 Digital Logic Structures
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Timing Sequential Logic Flip Flops Registers Memory State Machines.
S. Reda EN160 SP’07 Design and Implementation of VLSI Systems (EN0160) Lecture 25: Sequential Circuit Design (3/3) Prof. Sherief Reda Division of Engineering,
Lecture 1: Introduction to Digital Logic Design CK Cheng Tuesday 4/1/02.
Design of Two-Level Multiple-Output Networks
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
CS 151 Digital Systems Design Lecture 31 Read Only Memory (ROM)
CS 151 Digital Systems Design Lecture 28 Timing Analysis.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Sequential Networks Two major classes of Sequential Circuits 1.Fundamental Mode – A sequential circuit where: Only one input is allowed to change at any.
Boolean Algebra and Digital Logic
Synchronous Sequential Logic Part II
Lecture 5. Sequential Logic 3 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
Circuit, State Diagram, State Table
Chap 4. Sequential Circuits
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
Multiplexers. Functional Description and Symbols.
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
© BYU 13 COUNTERS Page 1 ECEn 224 COUNTERS Counters Transition Tables Moore Outputs Counter Timing.
Digital Logic of Computer Engineering KKU.1 Chapter 5 Sequential Systems Latches and Flip-flops Synchronous Counter Asynchronous.
ITEC 352 Lecture 3 Low level components(2). Low-level components Review Electricity Transistors Gates Really simple circuit.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
1 COMP541 Sequential Logic Timing Montek Singh Sep 30, 2015.
Lecture 10: Computer Design Basics: The ALU and the Shifter Soon Tee Teoh CS 147.
CS 61C: Great Ideas in Computer Architecture Finite State Machines, Functional Units 1 Instructors: Vladimir Stojanovic and Nicholas Weaver
1 Lecture 24 Transistors A look ahead Course summary.
Lecture No. 23 Sequential Logic. Digital Logic & Design Dr. Waseem Ikram Lecture No. 23.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 13 Edge-Triggered FF Operation.
CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
Lecture 11: Sequential Circuit Design
Chapter 3 Digital Design and Computer Architecture, 2nd Edition
Lecture #16: D Latch ; Flip-Flops
Chapter 3 Digital Design and Computer Architecture: ARM® Edition
CSE 140 – Discussion 7 Nima Mousavi.
Timing and Verification
Sequential circuit design with metastability
Sequential Circuit Timing
Logic Gates.
CSE 140 MT 2 Review By Daniel Knapp.
Excitation Vectors Input Combinational Logic Memory Output States.
COMP541 Flip-Flop Timing Montek Singh Feb 23, 2010.
Logic Gates.
Excitation Vectors Input Combinational Logic Memory Output States.
COMP541 Sequential Logic Timing
Presentation transcript:

CSE 140 Discussion Section Midterm #2 Review Mingjing Chen

Flip-Flops Conversion Implement a JK flip-flop with a SR flip-flop and a minimal AND-OR-NOT network. S R Q Q’ Combinational logic J K JK flip-flop Solve the combinational logic design problem S = f 1 (J, K, Q) R = f 2 (J, K, Q)

Flip-Flops Conversion How to attain the specification of the combinational circuit? SRQQ’ 00Q prev Q’ prev S = f 1 (J, K, Q) R = f 2 (J, K, Q) JKQQ’ 00Q prev Q’ prev Q prev JK QSR Truth table for combinational logic 0 x x 0 x 0 0 x

Flip-Flops Conversion JKQ prev QSR Truth table for combinational logic 0 x x 0 x 0 0 x x00x JK Q prev Kmap for S S = J Q’ prev xx JK Q prev Kmap for R R = K Q prev S R Q Q’ K J

Sequential Circuit Design A state machine is described by the following state equations. (1). Write the state table. 2-bit states: Q 1, Q 0 1 input: x 1 output: y XQ1(t)Q0(t)Q1(t+1)Q0(t+1)y

Sequential Circuit Design Design the system with two JK flip-flops and a minimal AND-OR-NOT network. XQ1(t)Q0(t)Q1(t+1)Q0(t+1)J1K1J0K0y X 1X x1 x0 1X 0X x0 x1 0X x1 1X x0 0X x0 0X x0

Sequential Circuit Design XQ1(t)Q0(t)J1K1J0K0y X 1X x1 x0 1X 0X x0 x1 0X x1 1X x0 0X x0 0X x0 xx01 xx Q1Q0 X Kmap for J1 J 1 = X’Q 0 +XQ 0 ’ 01xx 10xx Q1Q0 X Kmap for K1 K 1 = X’ Q 0 ’+X Q 0 0xx0 1xx Q1Q0 X Kmap for J0 x00x x01x Q1Q0 X Kmap for K0 J 0 = X’Q 1 K 0 = X’ Q 1 ’ Q1Q0 X Kmap for y y = Q 1 ’+Q 0

Timing Circuit implemented using two T flip-flops and a D flip-flop. Timing characteristics:  T flip-flop: clock-to-Q maximum delay tpcq = 2ns clock-to-Q minimum delay tccq = 1.8ns setup time tsetup = 1ns hold time thold = 1.5ns  D flip-flop: clock-to-Q maximum delay tpcq = 2.5ns clock-to-Q minimum delay tccq = 2.3ns setup time tsetup = 2.5ns hold time thold = 2ns  NAND gate: propagation delay tpd = 1ns contamination delay tcd = 0.8ns  Inverter: propagation delay tpd = 0.5ns contamination delay tcd = 0.3ns

Timing TQ TQ DQ How many paths?

Timing TQ TQ DQ 3 paths P1 P2 P3

Timing What is the maximum clock frequency of this circuit? P1: tpcq(D) + tpd(NAND) + tsetup(T) <= clock cycle P2: tpcq(T) + tpd(NOT) + tsetup(D) <= clock cycle P3: tpcq(T) + tpd(NAND) + tsetup(T) <= clock cycle <= clock cycle <= clock cycle <= clock cycle Min cycle = 5 ns  max f = 1 / min cycle = 200 MHz

Timing what is the maximum clock skew that the circuit can tolerate before it might experience a hold time violation? P1: tccq(D) + tcd(NAND) >= thold(T) + skew P2: tccq(T) + tcd(NOT) >= thold(D) + skew P3: tccq(T) + tcd(NAND) >= thold(T) + skew >= skew >= 2 + skew >= skew Max skew = 0.1ns

Decoder & MUX three-input Boolean function f(a, b, c) = ∑Pm(1, 2, 4, 7) + ∑ Pd(3) 01x ab c f = a’b’c + a'bc’ + abc + ab’c’ + (a’b’c)

Decoder & MUX Implement the function using a minimal network of 2:4 decoders and OR gates f = a’b’c + a'bc’ + abc + ab’c’ + (a’b’c) = a’b’c + a'bc’ + abc + ab’c’ s1s1 s0s s1s1 s0s0 In c a b a b If inverter is not allowed f = a’b’c + a'bc’ + abc + ab’c’ + (a’b’c) = a’(b+c)+a(b+c)’+bc s1s1 s0s s1s1 s0s0 In c a b 1 1 c b

Decoder & MUX Implement the function using a minimal network of 4:1 multiplexers. f = a’b’c + a'bc’ + abc + ab’c’ + (a’b’c) = a’b’c + a'bc’ + abc + ab’c’ s1s1 s0s0 a b Out c c’ c

Decoder & MUX Implement the function using a minimal network of 2:1 multiplexers f = a’c+a’b+bc+ab’c’ = af(1, b, c) + a’f(0, b, c) = a(bc+b’c’) + a’ (b+c) a 1 0 s b 1 0 s c c’ b 1 0 s 1 c