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

Similar documents
Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 2 Logistics

Microprocessor Design

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

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

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

MODULE 3. Combinational & Sequential logic

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

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

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

Course Plan. Course Articulation Matrix: Mapping of Course Outcomes (COs) with Program Outcomes (POs) PSO-1 PSO-2

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

North Shore Community College

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Computer Architecture and Organization

St. MARTIN S ENGINEERING COLLEGE

Digital Principles and Design

LESSON PLAN. Sub Code: EE2255 Sub Name: DIGITAL LOGIC CIRCUITS Unit: I Branch: EEE Semester: IV

Chapter 3. Boolean Algebra and Digital Logic

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

Department of Computer Science and Engineering Question Bank- Even Semester:


COE328 Course Outline. Fall 2007

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

Chapter Contents. Appendix A: Digital Logic. Some Definitions

VU Mobile Powered by S NO Group

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Semester III. Subject Name: Digital Electronics. Subject Code: 09CT0301. Diploma Branches in which this subject is offered: Computer Engineering

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

PURBANCHAL UNIVERSITY

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

UNIVERSITY OF MASSACHUSSETS LOWELL Department of Electrical & Computer Engineering Course Syllabus for Logic Design Fall 2013

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

WINTER 15 EXAMINATION Model Answer

Principles of Computer Architecture. Appendix A: Digital Logic

Contents Circuits... 1

Laboratory Objectives and outcomes for Digital Design Lab

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

In this chapter, you will...

Digital Circuits. Electrical & Computer Engineering Department (ECED) Course Notes ECED2200. ECED2200 Digital Circuits Notes 2012 Dalhousie University

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad ELECTRICAL AND ELECTRONICS ENGINEERING

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

Chapter 5: Synchronous Sequential Logic

CHAPTER 4: Logic Circuits

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW

Chapter 5 Synchronous Sequential Logic

Subject : EE6301 DIGITAL LOGIC CIRCUITS

Chapter 4. Logic Design

Combinational vs Sequential

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

CHAPTER 4: Logic Circuits

PLTW Engineering Digital Electronics Course Outline

Analogue Versus Digital [5 M]

Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

Logic Design Viva Question Bank Compiled By Channveer Patil

Logic Design. Flip Flops, Registers and Counters

UNIVERSITI TEKNOLOGI MALAYSIA

TYPICAL QUESTIONS & ANSWERS

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

S.K.P. Engineering College, Tiruvannamalai UNIT I

Digital Electronics Course Outline

AM AM AM AM PM PM PM

Lesson No Lesson No

Where Are We Now? e.g., ADD $S0 $S1 $S2?? Computed by digital circuit. CSCI 402: Computer Architectures. Some basics of Logic Design (Appendix B)

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30


DIGITAL ELECTRONICS MCQs

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

Combinational / Sequential Logic

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

SEMESTER ONE EXAMINATIONS 2002

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF ELECTRONICS AND ELECTRICAL ENGINEERING DEPARTMENT OF ECE COURSE PLAN

EECS 270 Final Exam Spring 2012

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam


WINTER 14 EXAMINATION

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

ROEVER COLLEGE OF ENGINEERING & TECHNOLOGY ELAMBALUR, PERAMBALUR DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

I B.SC (INFORMATION TECHNOLOGY) [ ] Semester II CORE : DIGITAL COMPUTER FUNDAMENTALS - 212B Multiple Choice Questions.

BHARATHIDASAN ENGINEERING COLLEGE, NATTRAMPALLI DEPARTMENT OF ECE

2 Marks Q&A. Digital Electronics. K. Michael Mahesh M.E.,MIET. Asst. Prof/ECE Dept.

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers.

Nirma University Institute of Technology. Electronics and Communication Engineering Department. Course Policy

CS 151 Final. Instructions: Student ID. (Last Name) (First Name) Signature

Page No.1. CS302 Digital Logic & Design_ Muhammad Ishfaq

Lecture 11: Synchronous Sequential Logic

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

TEST-3 (DIGITAL ELECTRONICS)-(EECTRONIC)

RS flip-flop using NOR gate

Chapter. Synchronous Sequential Circuits

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

Come and join us at WebLyceum

Transcription:

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 Technology cetinkayae@mst.edu http://web.mst.edu/~cetinkayae/teaching/cpe2210spring2018 25 April 2018 rev. 18.0 2014 2018 Egemen K. Çetinkaya

Exam3 Logistics Overview Exam 3 will be held on 27 April 2018 It will be in room ECE101 & EMGT 201 You are responsible from all material covered chapter readings from book lecture notes in-class discussions Cheating is prohibited! read course policies as a reminder Closed notes, books, no calculator Bring pencil and eraser 2

Exam3 Logistics Style Exam duration will be 50 minutes Exam will include different types of questions short answer long answer Students are responsible all material covered emphasis will be on topics after exam 2 3

Exam1 Topics 4

Applications and History Binary logic is the basis for digital systems Early history goes to 1850s not much done till 1938 significant progress after World War II with invention of transistor last decade is head-spinning There are many application areas of digital systems very pervasive in our lives Analog signals are continuous signals Digital signals are discrete signals 5

Signals can be: analog: continuous digital: discrete Important terminology: bit, byte, nibble, LSB, MSB Number Systems Important number systems: decimal, binary, hex, octal Conversions will be needed throughout your careers: know 2 0-2 10 by heart 6

Boolean Algebra Understand the important Boolean algebra properties commutativity distributivity associativity identity complementery null elements idempotent law involution law DeMorgan s law absorption law 7

Boolean Representations Three Boolean representations: circuits equations truth tables Important terminology variables/literals product term/sum term/sum-of-products/product-of-sums normal term/minterm/maxterm canonical sum (sum-of-minterms) canonical product (product-of-maxterms) 8

Karnaugh Maps Karnaugh maps used to simplify truth tables Group together adjacent cells containing ones 1s grouping is done for a group of: 2 0, 2 1, 2 2 1s Every one must be in at least one group Each group should be as large as possible Fewest number of groups possible Overlapping of 1s is allowed Zeros are not allowed Diagonal groupings are not allowed For DC conditions; assign a 0 or a 1 and then simplify 9

Electric Circuits There are two types of digital circuits combinatorial circuits: no memory sequential circuits: memory Ohm s law: V=IR Switches are basic components of digital circuits Switches have two states: on and off Transistors are basic electric circuit component CMOS have NMOS and PMOS transistors together NMOS transistors conduct when gate is on PMOS transistors conduct when gate is off 10

Basic Logic Gates Logic gates building blocks of complex logic circuits Gate functions can be represented via: symbols truth tables equations timing diagrams transistor circuits Important three basic gates are: AND OR NOT 11

Logic Gates: NAND, NOR, XOR, XNOR Basic gates are: AND OR NOT More gates: NAND NOR XOR XNOR Universal gates: NAND & NOR 12

Combinatorial Logic Circuit Design and Analysis Combinatorial logic circuit analysis truth table might be hard to construct for many inputs equations can be simplified via Boolean algebra circuits Combinatorial logic circuit design/synthesis capture behavior create equations simplify implement as a gate-based circuit 13

Real gates have delay Wires also have delay Practical Considerations Designer must consider critical path delay Attention to active-lows are required Simulations help analyze digital logic 14

PLDs Computing resources are: CPU, memory, BW, power IC types are: off-the-shelf vs. manufactured off-the-shelf ICs: logic IC, PLD, FPGA manufactured IC: full-custom vs. semi-custom Simple PLDs: PLA: Programmable Logic Array: OR-AND or AND-OR planes PAL: Programmable Array Logic 15

Exam2 Topics 16

Adders Adders add two N-bit numbers Half-adder: adds two bits, generates sum bit and carry-out bit Full-adder: adds three bits, generates sum bit and carry-out bit Types: carry-ripple: carry ripples through adders carry-select: for faster add operation, uses multiplexers carry-lookahead: for faster add operation Incrementer increments by 1 using half-adder 17

Half-subtractor: Subtractors subtracts two bits: minuend and subtrahend generates two output bits: difference and borrow Full-subtractor: subtracts three bits: minuend, subtrahend, and borrow in generates two output bits: difference and borrow out Negative binary numbers can be represented via: 1 s complements: flip all bits including the sign bit 2 s complements: 1s complement + 1 Overflow can be determined by: c n 1 c n 18

Comparators N-bit equality comparator (aka identity comparator) inputs: two N-bit inputs output: control bit eq=1 if two inputs are equal N-bit magnitude comparator inputs: two N-bit inputs output: three control bits eq, gt, lt staged design each bit is compared from higher order to lower order 19

Multipliers/Dividers Many multipliers design exists Division is a slow and expensive operation Need to preserve the sign for signed numbers when doing multiplication/division via shifting ALUs performs Boolean and arithmetic functions 20

Latches There are two types of digital circuits combinatorial circuits: no memory sequential circuits: memory Sequential circuit elements: latches, flip-flops, etc. Latches store a bit Latch types: basic SR latch level-sensitive SR latch level-sensitive D latch SR 11 is an issue for latches 21

Flip-flops store one bit Flip-Flops Latches are level-sensitive Flip-flops are edge-triggered Signal travels one cycle per flip-flop D-flip-flops are most commonly used Flip-flop types: SR, JK, D, T Two types of flip-flops: edge-triggered: active edge of the clock impacts the state master-slave: with two gated latches 22

Registers Registers store multiple bits a flip-flop stores only one bit Several types of registers exist serial/parallel I/O combinations directional (right or left)/bidirectional Important operations using registers: shift: right: divide operation left: multiply operation rotation does not drop LSB or MSB, substitutes 23

Exam3 Topics 24

Multiplexers Multiplexers/Demultiplexers multiplex n data inputs onto a single data output under control of the select inputs Demultiplexers places single data input onto multiple data outputs 25

Encoders/Decoders Encoders: makes information compact Decoders: decode encoded information convert data from some binary form to another binary form Combinations: active-low/active-high enable/outputs Larger decoders can be built from smaller decoders by utilizing enable input An AND n-to-2 n -line decoder is minterm generator A NAND n-to-2 n -line decoder is maxterm generator In addition to n-to-2 n -line decoders: function-specific decoders: e.g. BCD 4-to-10-line decoders 26

Counters/Timers Counters are sequential components that increments or decrements Ripple counters are known as asynchronous counters causes problems related to propagation delay Ring counter: only 1 flip-flop is in 1 state Binary patterns can be counted too Up/down counter can count both directions Timers pulse output at user-specified timer interval 27

Finite State Machines FSM is a mathematical formalism method FSMs are useful in designing sequential logic circuits Representations: state diagrams state transition tables timing diagrams Attention to non-exclusive and incomplete transitions! Moore: Outputs are determined by the current state Mealy: Outputs are determined by: current state and current input 28

Controllers Controllers are sequential logic that implements FSM Mathematical formalism that help digital design: FSM for sequential logic circuits Boolean algebra for combinatorial logic circuits Controller design steps: capture the FSM setup architecture encode states create the truth table implement the combinatorial circuit Reverse engineering is converting circuit to FSM There are practical aspects: delay, initial states 29

State reduction: Sequential Logic Optimizations reduces number of states without changing the behavior fewer states potentially reduces: register and circuit reducing states does not guarantee reduction in reg. & circt. State encoding: assignment of unique bits to each state may or may not reduce size of circuit and/or state register 30

Questions? 31