CPE100: Digital Logic Design I

Similar documents
CPE100: Digital Logic Design I

CPE100: Digital Logic Design I

CPE100: Digital Logic Design I

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Different encodings generate different circuits

Finite State Machine (FSM)

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

Philadelphia University Student Name: Student Number:

Synchronous Sequential Circuit Design. Digital Computer Design

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Karnaugh Maps (K-Maps)

Synchronous Sequential Logic

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

EE 209 Spiral 1 Exam Solutions Name:

UNIVERSITY OF WISCONSIN MADISON

Computer Science Final Examination Friday December 14 th 2001

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Chapter 3. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 3 <1>

Sequential Logic Worksheet

For smaller NRE cost For faster time to market For smaller high-volume manufacturing cost For higher performance

Clocked Synchronous State-machine Analysis

Chapter 4. Sequential Logic Circuits

EGR224 F 18 Assignment #4

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Sequential Logic Circuits

State and Finite State Machines

CprE 281: Digital Logic

Lecture 10: Synchronous Sequential Circuits Design

Sequential Synchronous Circuit Analysis

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

State & Finite State Machines

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

Sample Test Paper - I

ECE 341. Lecture # 3

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

ECE 2300 Digital Logic & Computer Organization

Lecture 7: Logic design. Combinational logic circuits

Digital Logic Design. Midterm #2

CPE100: Digital Logic Design I

ENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter. Lab 3. Lab 3 Gate Timing. Lab 3 Steps in designing a State Machine. Timing diagram of a DFF

Final Exam. ECE 25, Spring 2008 Thursday, June 12, Problem Points Score Total 90

Problem Set 9 Solutions

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

State & Finite State Machines

Digital Design. Sequential Logic

Sequential logic and design

Principles of Computer Architecture. Appendix B: Reduction of Digital Logic. Chapter Contents

Digital Logic Appendix A

Digital Electronics Sequential Logic

FSM model for sequential circuits

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Chapter 3. Chapter 3 :: Topics. Introduction. Sequential Circuits

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Digital Logic & Computer Design CS Professor Dan Moldovan Spring Copyright 2007 Elsevier 2-<101>

Philadelphia University Student Name: Student Number:

Logic Design Combinational Circuits. Digital Computer Design

Digital Logic & Computer Design CS Professor Dan Moldovan Spring 2010

EE 209 Logic Cumulative Exam Name:

CPE100: Digital Logic Design I

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

Digital Design 2010 DE2 1

ELCT201: DIGITAL LOGIC DESIGN

EEE2135 Digital Logic Design

6. Finite State Machines


CE1911 LECTURE FSM DESIGN PRACTICE DAY 1

Integrated Circuits & Systems

14.1. Unit 14. State Machine Design

Topic 8: Sequential Circuits

Last lecture Counter design Finite state machine started vending machine example. Today Continue on the vending machine example Moore/Mealy machines

FYSE420 DIGITAL ELECTRONICS

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

ALU, Latches and Flip-Flops

ENGG 1203 Tutorial - 2 Recall Lab 2 - e.g. 4 input XOR. Parity checking (for interest) Recall : Simplification methods. Recall : Time Delay

ALU A functional unit

Written exam for IE1204/5 Digital Design with solutions Thursday 29/

15.1 Elimination of Redundant States

Synchronous Sequential Circuit

ENEL Digital Circuits Final Examination

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Logic. Combinational. inputs. outputs. the result. system can

Sequential vs. Combinational

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

DIGITAL LOGIC CIRCUITS

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

CS470: Computer Architecture. AMD Quad Core

CSE 140 Midterm 2 - Solutions Prof. Tajana Simunic Rosing Spring 2013

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Timing Constraints in Sequential Designs. 63 Sources: TSR, Katz, Boriello & Vahid

Adders, subtractors comparators, multipliers and other ALU elements

Adders, subtractors comparators, multipliers and other ALU elements

Transcription:

Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu CPE100: Digital Logic Design I Midterm02 Review http://www.ee.unlv.edu/~b1morris/cpe100/

2 Logistics Thursday Nov. 16 th In normal lecture (13:00-14:15) 1 hour and 15 minutes Chapters 2.7-3.4 Responsible for all material but emphasis on sections since Midterm01 Closed book, closed notes No calculators Must show work and be legible for credit

3 Preparation Read the book (2 nd Edition) Then, read it again Do example problems Use both Harris and Roth books Be sure you understand homework solutions Come visit during office hours for questions Exam Advice: Be sure to attempt all problems. Partial credit can only be given for something written on the page Don t spend too much time thinking

4 Chapter 2.7 K-Maps Logic minimization in graphical form Generally easier than using Theorems/Axioms Expected to know up to 5 variables Use K-map to encode truth table Adjacent rows/columns only differ by a single bit to exploit combining Implement bot SOP ( 1 ) and POS ( 0 ) forms Draw largest circle possible to cover each 1 Take advantage of Don t Cares ( X ) to have more simple logic

5 Chapter 2.7 Kmap Example 5-input function (A,B,C,D,E) Create two 4-input K-maps and stack A = 0 DE BC 00 01 11 10 00 0 4 12 8 A = 1 DE BC 00 01 11 10 00 16 20 28 24 01 1 5 13 9 11 3 7 15 11 10 2 6 14 10 01 17 21 29 25 11 19 23 31 27 10 18 22 30 26 Draw bubbles within 4x4 and in between stack (above or below) E.g. cell 5 and 21 B CD E

6 Example 8 Y = m(0,1,2,3,8,9,16,17,20,21,24,25,28,29,30,31) A = 0 DE BC 00 01 11 10 00 1 4 12 1 A = 1 DE BC 00 01 11 10 00 1 1 1 1 01 1 5 13 1 01 1 1 1 1 11 1 7 15 11 11 19 23 1 27 10 1 6 14 10 10 18 22 1 26 Be sure to check above/below Y=AD + A B C + ABC + C D

7 Chapter 2.8.1 Mux Select one of N inputs for output Select log 2 N-bits Mux logic: Use as a lookup table with zero outputs tied to ground and one output to V DD Use simplification technique for smaller mux size Combine rows and move far right input variable into the output column

8 Chapter 2.8.2 Decoder Given N inputs 2 N (one-hot) outputs Each output is a row of truth table Decoder logic: Build SOP logic by OR-ing output

9 Chapter 2.9 Timing Takes time (delay) for input change to cause output change Signal must travel through logic gates Two important delay components Propagation - t pd is max time from input to final stable output (longest path) Contamination - t cd is minimum time from input to first change in output (shortest path)

10 Chapter 2.9 Timing t pd t cd

11 Chapter 3 Sequential Logic Design Logic that depends on both current input as well as past input values (memory) State all information about a circuit necessary to explain its future behavior Latches and flip-flops state elements that store a single bit of state (memory element) Synchronous sequential circuits combinational logic followed by a register

12 Chapter 3.2.1 SR Latch Bistable circuit to store state Q and Q S set Q = 1 R reset Q = 0 S = R = 0 hold Q state Circuit symbol and operation Note: logic does not hold for S = R = 1

13 Chapter 3.2.2 D Latch Simplify SR Latch logic D single input CLK pass D on high cycle Avoids previous Q Q case

14 Chapter 3.2.3 D Flip-Flop More tightly controlled timing than D latch Only passes D value on rising edge of CLK Edge-triggered device Only activated on CLK transition from 0 1 Samples value of D at time of rising edge to pass through to Q

15 Chapter 3.2 Examples Given SR Latch provide output Q Note: S = R = 1 sets Q = 0 S 1 0 0 0 0 0 1 1 0 1 1 R 0 0 1 0 1 0 0 1 1 1 0 Q 1 Qp=1 0 Qp 0 0 1 0 0 0 1

16 Chapter 3.2 Examples Given D Latch provide output Q Note: Q follows D during CLK high period

17 Chapter 3.2 Examples Given D flip-flop provide output Q Note: Q samples D during CLK 0 1 transition

18 Chapter 3.3 Sequential Circuit Design Synchronous Design 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

19 Chapter 3.4 Finite State Machine Technique for representing synchronous sequential circuit Consists of combinational logic and state register Moore machine output only dependent on state (not inputs)

20 Chapter 3.4 FSM Design Steps 1. Identify inputs and outputs 2. Sketch state transition diagram 3. Write state transition table 4. Select state encodings 5. Rewrite state transition table with state encodings 6. Write output table 7. Write Boolean equations for next state and output logic 8. Sketch the circuit schematic

21 Chapter 3.4 FSM Examples Given problem description, give state transition diagram Given state transition diagram, encode state and provide next state/output equations Given FSM circuit, describe what system does and give state transition/output tables

22 Chapter 3.4 FSM Examples Design and edge detector circuit. The output should go HIGH for one cycle after the input makes a 0 1 transition. Single input: A

23 FSM Example State transition diagram State/Output Tables Use binary state encoding S 1 S 0 A S 1 S 0 Q 00 0 00 0 00 1 01 0 01 0 00 1 01 1 10 1 10 0 00 0 10 1 10 0

24 FSM Example Equations S 1 = AS 1 + AS 0 S 0 = AS 1 S 0 Q = S 1 Circuit diagram