ECE 331: N0. Professor Andrew Mason Michigan State University. Opening Remarks

Similar documents
KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

LECTURE 4. Logic Design

Final Exam Solution Sunday, December 15, 10:05-12:05 PM

Systems Programming. Lecture 2 Review of Computer Architecture I

END-TERM EXAMINATION

1. Prove that if you have tri-state buffers and inverters, you can build any combinational logic circuit. [4]

Code No: R Set No. 1

Code No: R Set No. 1

SUBJECT CODE: IT T35 DIGITAL SYSTEM DESIGN YEAR / SEM : 2 / 3

Injntu.com Injntu.com Injntu.com R16

Question Total Possible Test Score Total 100

Philadelphia University Student Name: Student Number:

R10. II B. Tech I Semester, Supplementary Examinations, May

II/IV B.Tech (Regular/Supplementary) DEGREE EXAMINATION. Answer ONE question from each unit.

Code No: R Set No. 1

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

Scheme G. Sample Test Paper-I

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

3. The high voltage level of a digital signal in positive logic is : a) 1 b) 0 c) either 1 or 0

Lecture Topics. Announcements. Today: Integer Arithmetic (P&H ) Next: continued. Consulting hours. Introduction to Sim. Milestone #1 (due 1/26)

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

Chapter 2: Combinational Systems

ECE 2300 Digital Logic & Computer Organization. More Sequential Logic Verilog

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

Digital Logic Design Exercises. Assignment 1

Parallel logic circuits

UPY14602-DIGITAL ELECTRONICS AND MICROPROCESSORS Lesson Plan

NODIA AND COMPANY. GATE SOLVED PAPER Computer Science Engineering Digital Logic. Copyright By NODIA & COMPANY

CONTENTS CHAPTER 1: NUMBER SYSTEM. Foreword...(vii) Preface... (ix) Acknowledgement... (xi) About the Author...(xxiii)

Logic design Ibn Al Haitham collage /Computer science Eng. Sameer

ELCT 501: Digital System Design

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

ECE 341 Midterm Exam

DIGITAL CIRCUIT LOGIC UNIT 7: MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

Digital Fundamentals. Lab 6 2 s Complement / Digital Calculator

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

Outcomes. Spiral 1 / Unit 6. Flip Flops FLIP FLOPS AND REGISTERS. Flip flops and Registers. Outputs only change once per clock period

COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK SUBJECT CODE & NAME: EC 1312 DIGITAL LOGIC CIRCUITS UNIT I

EE292: Fundamentals of ECE

DE Solution Set QP Code : 00904

Microcomputers. Outline. Number Systems and Digital Logic Review

Basic Arithmetic (adding and subtracting)

Chapter 2 Basic Logic Circuits and VHDL Description

Spiral 1 / Unit 6. Flip-flops and Registers

Outcomes. Spiral 1 / Unit 6. Flip Flops FLIP FLOPS AND REGISTERS. Flip flops and Registers. Outputs only change once per clock period

ECE 341 Midterm Exam

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

Gate-Level Minimization. BME208 Logic Circuits Yalçın İŞLER

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK NAME OF THE SUBJECT: EE 2255 DIGITAL LOGIC CIRCUITS

Chapter 3. Boolean Algebra and Digital Logic

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

REGISTER TRANSFER LANGUAGE

Hours / 100 Marks Seat No.

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

Chapter 10 Binary Arithmetics

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

Arithmetic and Logical Operations

Semester Transition Point. EE 109 Unit 11 Binary Arithmetic. Binary Arithmetic ARITHMETIC

CSCB58 - Lab 3. Prelab /3 Part I (in-lab) /2 Part II (in-lab) /2 TOTAL /8

R07

COPYRIGHTED MATERIAL INDEX


CDA 3103 Computer Organization Exam 1 (Sep. 22th, 2014)

Midterm Project Design of 4 Bit ALU Fall 2001

Written exam for IE1204/5 Digital Design Thursday 29/

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

QUESTION BANK FOR TEST

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

1. Mark the correct statement(s)

Code No: 07A3EC03 Set No. 1

This tutorial gives a complete understanding on Computer Logical Organization starting from basic computer overview till its advanced architecture.

EE 109L Review. Name: Solutions


EECS150, Fall 2004, Midterm 1, Prof. Culler. Problem 1 (15 points) 1.a. Circle the gate-level circuits that DO NOT implement a Boolean AND function.

DIRECTORATE OF TECHNICAL EDUCATION DIPLOMA IN ELECTRICAL AND ELECTRONICS ENGINEERING II YEAR M SCHEME IV SEMESTER.

Ripple Counters. Lecture 30 1

Question No: 1 ( Marks: 1 ) - Please choose one A SOP expression is equal to 1

Gate Level Minimization Map Method

UNIT I BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS PART-A (2 MARKS)

Chapter 3. Gate-Level Minimization. Outlines

Reference Sheet for C112 Hardware

10EC33: DIGITAL ELECTRONICS QUESTION BANK

Digital logic fundamentals. Question Bank. Unit I

CMPE 413/ CMSC 711. Project Specification: 16 bit 2 s complement Adder and 8 bit 2 s complement multiplier. GND. Input bus. Latches I[8]-I[15]

EE 109L Final Review

SHRI ANGALAMMAN COLLEGE OF ENGINEERING. (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

ARM 64-bit Register File

EE 3170 Microcontroller Applications

Digital Arithmetic. Digital Arithmetic: Operations and Circuits Dr. Farahmand

Dec Hex Bin ORG ; ZERO. Introduction To Computing

60-265: Winter ANSWERS Exercise 4 Combinational Circuit Design

Chapter 4. Combinational Logic

2008 The McGraw-Hill Companies, Inc. All rights reserved.

CSE140: Components and Design Techniques for Digital Systems

(ii) Simplify and implement the following SOP function using NOR gates:

Transcription:

ECE 331: N0 ECE230 Review Professor Andrew Mason Michigan State University Spring 2013 1.1 Announcements Opening Remarks HW1 due next Mon Labs begin in week 4 No class next-next Mon MLK Day ECE230 Review HO_0 posted on web Anyone need a syllabus? Today s Objectives Questions? Perform number base conversions for Dec, Hex, Bin Identify value range as function of number of bits; identify out of range overflow for signed and unsigned binary numbers Express numbers in signed 2 s complement (S2C) form, perform 2 s complement operation, and evaluate subtraction using S2C. Identify value range in S2C and determine 2C overflow Perform minimization of logic expressions using min/max terms, K-maps, and Boolean arithmetic 1.2

Be neat! Homework Guidelines should represent a professional work product Show work Clearly indicate answers Give units in answer Grading effort more than results may not be corrected but solutions will be posted Homework Questions come to office hours! 1.3 Digital Bases Decimal (Dec), base 10 Binary (Bin), base 2 Hexadecimal (Hex), base 16 Base Conversions Bin Dec Number Systems Hex Dec Bin Hex TPS: Convert 111101101 to hex. 1.4

Binary Addition DEMO: using PC Calculator to check conversions & math only for checking answers! always show work in homework Addition Examples Decimal Binary Hex Decimal Binary Hex 7 + 4 7 0111 4 0100 0111 + 0100 0111 2 7 16 0100 2 4 16 7 + 4 7 + 9 7 0111 9 1001 0111 + 1001 0111 2 7 16 1001 2 9 16 7 + 9 11 10 1011 2 B 16 16 10 1]0000 2 10 16 Value Range n unsigned binary bits can only express values 0 to 2 n -1 n unsigned hex bit express values 0 to 16 n -1 larger values generate overflow carry_out bit 1.5 Binary Subtraction Microprocessors do not subtract, they only add! 2 s Complement = 2C X-Y = X+(-Y) = X+[Y]*, where [ ]* means 2 s complement read extensive notes in HO_0a To subtract use numbers in signed 2 s complement (S2C) form use 2C operation to negate subtracted/negative values then ADD EX: Evaluate 5 3 using 4-bit S2C # s value = 2 sign bit 0 = + (positive) carry_out, ignore for subtraction 1.6

2 s Complement Overflow EX: Evaluate -7 6 using 4-bit S2C # s value = 3 sign bit 0 = + (positive) carry_out, ignore for subtraction but does -7 6 = 3? No! should = -13-13 is out of range for 4-bit S2C # 2 s Complement m Overflow: when result of arithmetic is outside the value range of n-bit signed binary number Signed binary range: -2 n-1 to 2 n-1-1 Detecting 2C Overflow: only overflow if sign of both numbers is same & is opposite sign of addition result Overflow A B S A B S n 1 n 1 n 1 n 1 n 1 n 1 1.7 Arithmetic with 2C Overflow EX: Evaluate using 3-bit S2C # s, detect 2C overflow 2C Overflow? sign of both #s (at addition) = 0 sign of result = 1 (opposite of 0) 2C overflow! More examples in HO_0a 1.8

Bin/Hex Math Examples EX: Evaluate using 4-bit S2C # s, detect 2C overflow meets conditions for 2C overflow, so answer is not reliable EX: Evaluate using 4-bit S2C # s, check answer 1.9 Logic Minimization Often need to reduce a complex logic expression to it smallest form (i.e., fewest number of logic operations) Methods of logic minimization Boolean arithmetic using Boolean properties EX F X Y Z X Y Z X Y Z Z X Y Karnaugh maps EX: Find the minimal SoP expression for XY F (1,2,5,7 ) XYZ 00 01 11 10 Z 0 m 2 1 m 1 m 7 m 5 then reduce using Boolean arithmetic F = XZ + Y Z +X YZ =Z(X+Y ) Z(X+Y +X YZ is the minimal form. 1.10

Basic Combinational Logic Gates INV AND NAND OR NOR inversion bubbles bbl 1.11 More Combinational Logic MUX: select 1 from many example 4:1 MUX Buffer: signal isolation & drive inverter without the inversion Tri-State (buffer/inverter) buffer (or inverter) with disable (high impedance) state 1.12

XOR & XNOR And More true of both different (XOR) or both same (XNOR) Decoder only one active output example 4:1 decoder difference from MUX? active low concept 1.13 Sequential logic Sequential Logic & Latch difference from combinational? - output based on input value at prior time Latch 2-state storage circuit can hold data bi-stable circuit D-type latch D-type latch w/ enable SR latch 1.14

Flip Flop Flip flop is a synchronous circuit which means? D-type master-slave slave flip flop latch level logic gate level JK flip flop Toggle flip flop Convertability State tables for D-type type, JK, and T-type flip flops 1.15 Flip Flop Timing Diagrams Timing diagram: map of digital output (& input) vs. time use state table to find output look at proper clock transition ignore input changes outside clock transitions Rising- vs. falling-edge triggered triggered by clock rising = positive = up falling = negative = down CLK D Qp Qn 1.16

Data registers Registers stores block (byte/word) of digital data composed of flip flops; used as static memory example: 4b parallel-in parallel-out register Shift register can move data laterally between register bits can input or output (or both) data serially example: 4b serial-in parallel out shift register 1.17 Shift Shift & Rotate move each bit (left or right) to adjacent register, load in preset value (normally 0) into open registers Rotate move each bit (left or right) to adjacent register, rotate exiting bits back into other side of register Example: shift right by 2 rotate left by 1 1.18

DeMorgans & Complete Set DeMorgans Relations Complete Set Concept all logic functions can be implemented with ONLY NAND (or ONLY NOR) example: INV with NAND similarly, can make AND, OR, NOR with only NAND 1.19 Logic Schematic Manipulation Bubble pushing technique bubbles can be moved from input of a gate to the output of an attached gate (or from output to input) 2 bubbles can be added to any node (like double negative) Example: convert to all NANDs ND using DeMorgans & bubble pushing initial F bubble pushing DeMorgans final 1.20