Total Time = 90 Minutes, Total Marks = 100. Total /10 /25 /20 /10 /15 /20

Similar documents
Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

CprE 281: Digital Logic

ELCT201: DIGITAL LOGIC DESIGN

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

UNSIGNED BINARY NUMBERS DIGITAL ELECTRONICS SYSTEM DESIGN WHAT ABOUT NEGATIVE NUMBERS? BINARY ADDITION 11/9/2018

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Combinational Logic. By : Ali Mustafa

ECE380 Digital Logic. Positional representation

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

Systems I: Computer Organization and Architecture

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

LOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Digital Techniques. Figure 1: Block diagram of digital computer. Processor or Arithmetic logic unit ALU. Control Unit. Storage or memory unit

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

Number System conversions

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Fundamentals of Digital Design

CprE 281: Digital Logic

MC9211 Computer Organization

Class Website:

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

Carry Look Ahead Adders

SAMPLE ANSWERS MARKER COPY

Review for Test 1 : Ch1 5

University of Toronto Faculty of Applied Science and Engineering Final Examination

Combinational Logic Design Arithmetic Functions and Circuits

Chap 2. Combinational Logic Circuits

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

Chapter 4: Combinational Logic Solutions to Problems: [1, 5, 9, 12, 19, 23, 30, 33]

Chapter 2. Digital Logic Basics

Chapter 2. Boolean Algebra and Logic Gates

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev

Signals and Systems Digital Logic System

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

CS61c: Representations of Combinational Logic Circuits

Digital Logic (2) Boolean Algebra

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System?

Contents. Chapter 3 Combinational Circuits Page 1 of 36

The Design Procedure. Output Equation Determination - Derive output equations from the state table

Sample Marking Scheme

Combinational Logic. Course Instructor Mohammed Abdul kader

COE 202: Digital Logic Design Combinational Circuits Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q

Chapter 5. Digital systems. 5.1 Boolean algebra Negation, conjunction and disjunction

Combinational Logic. Review of Combinational Logic 1

CS 140 Lecture 14 Standard Combinational Modules

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

Binary addition by hand. Adding two bits

Boolean Algebra and Logic Gates

Adders - Subtractors

Sample Test Paper - I

Introduction to Digital Logic

Numbers and Arithmetic

Lecture 2 Review on Digital Logic (Part 1)

Midterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two.

EC-121 Digital Logic Design

ELEN Electronique numérique

Hakim Weatherspoon CS 3410 Computer Science Cornell University

Number representation

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

Lecture 10: Synchronous Sequential Circuits Design

04. What is the Mod number of the counter circuit shown below? Assume initially reset.

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

Gate-Level Minimization

Digital Logic Design. Combinational Logic

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Introduction to Digital Logic Missouri S&T University CPE 2210 Subtractors

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

ENG2410 Digital Design Combinational Logic Circuits

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)


Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

Chapter 2 Boolean Algebra and Logic Gates

Digital Circuits ECS 371

Chapter 7 Logic Circuits

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

Chapter 2 Combinational Logic Circuits

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

PG - TRB UNIT-X- DIGITAL ELECTRONICS. POLYTECHNIC-TRB MATERIALS

Chapter 2 Combinational Logic Circuits

Chapter 03: Computer Arithmetic. Lesson 03: Arithmetic Operations Adder and Subtractor circuits Design

211: Computer Architecture Summer 2016

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Numbers and Arithmetic

CprE 281: Digital Logic

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

UNIT II COMBINATIONAL CIRCUITS:

Transcription:

University of Waterloo Department of Electrical & Computer Engineering E&CE 223 Digital Circuits and Systems Midterm Examination Instructor: M. Sachdev October 30th, 2006 Total Time = 90 Minutes, Total Marks = 100 Student Name: Student ID: 1 2 3 4 5 6 Total /10 /20 /20 /25 /15 /10 Attempt all problems. Show all work. If information appears to be missing make a reasonable assumption, state it, and proceed. Calculators are not needed and are not allowed.

Problem 1 [10 Marks] (a) Convert (853) 10 to BCD and 84-2-1 code. [3 Marks] (1000 0101 0011) BCD (1000 1011 0101) 8 4-2 -1 (b) What is the key feature of Gray Code and when should it be used? [3 Marks] Only one bit in the code group changes when going from one number to the next. Used when sequence of binary numbers may produce an error or ambiguity during the transition from one number to the next. For example, gray code is utilized in measuring & sensing mechanical movement. (c) Convert (101 0110 1000 0111 1001 0011.11011) 2 to base 4 format. [4 Marks] Grouping two bits at a time starting from either side of the decimal point and adding leading zero to the most significant and least significant bits give us: (1112 2013 2103.312) 4

Problem 2 [20 Marks] (a) What are three different ways of representing a signed number? Assume 8 bit numbers and represent (-15) in each of them. [4 Marks] Signed & Magnitude: 10001111 Signed & 1 s Complement 11110000 Signed & 2 s Complement 11110001 (b) Calculate B-A using 1 s complement subtraction. Both B and A are in unsigned binary format. Express your answer in sign and magnitude form. [8 Marks] Given A=1101010 B=0110101 Take 1 s complement for A: 0010101 0110101 0010101 1001010 The answer is in 1 s complement form: 1001010 Signed and magnitude: -1110101 = (-53) 10 (c) Find (-17) 10 (30) 10 using 8-bit signed 2 s complement form. Express you answer in signed 2 s complement format. [8 Marks] -17 = 10010001 (Signed & Magnitude) = 11101111 (Signed & 2 s Complement) -30 = 10011110 (Signed & Magnitude) = 11100010 (Signed & 2 s Complement) 11101111 11100010 111010001 Ignore the carry bit, the final answer is 11010001

Problem 3 [20 Marks] F 1 = xyz + wx y + (x +z+w)(x +z+w ) + xyz + wx y F 2 = xy + wx + x + z (a) Do not use K-Map! Show F 1 can be simplified to F 2 by algebraic means. [8 Marks] F 1 = xyz + wx y + (x +z+w)(x +z+w ) + xyz + wx y = xy(z + z ) + wx (y+y ) + (x + z) + (ww ) = xy + wx + x + z (b) Implement F 2 using NAND gates only. Assume all variables are available in both true and complement form [6 Marks] F 2 = (x +y ) (w +x) xz = (xy) (wx ) xz F 2 = [(xy) (wx ) xz )] Y X Z F W X

Problem 4 [25 Marks] F (A, B, C, D) = (3, 11, 13) (a) Express the above expression in canonical sum of products form. [4 Marks] The sum of product expression for F will include the terms not present in the product of sum form. Therefore, F (A, B, C, D) = (0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15) (b) List all the prime implicants and essential prime implicants [16 Marks] F = D + A B + B C + BC or F = D + A C + B C + BC Prime Implicants: D, A B, BC, B C, A C or (0, 2, 4, 6, 8, 10, 12, 14), (4, 5, 6, 7), (6, 7, 14, 15), (0, 1, 8, 9), (0, 1, 4, 5) Essential Prime Implicants: D, BC, B C or (0, 2, 4, 6, 8, 10, 12, 14), (6, 7, 14, 15), (0, 1, 8, 9)

0 1 2 4 5 6 7 8 9 10 12 14 15 (0,2,4,6 8,10,12,14) ^ ^ ^ ^ ^ ^ ^ ^ (4,5,6,7) ^ ^ ^ ^ (6,7,14,15) ^ ^ ^ ^ (01,8,9) ^ ^ ^ ^ (0,1,4,5) ^ ^ ^ ^ (c) P (A, B, C, D) = (0, 1, 3, 4, 6, 7, 8, 12, 14, 15) Fill out the K-map provided below for expression P. Assume A is the most significant bit (MSB) and D is the least significant bit (LSB) [5 Marks] CD\AB 00 01 11 10 00 1 1 1 1 01 1 0 0 0 11 1 1 1 0 10 0 1 1 0

Problem 5 Many offices and buildings use combination locks to control entry. As the design engineer of the Wonderful Door Security Company, you are asked to implement a door security system by using a card reader. There are four inputs to the card reader: inputs X, Y, and Z are used to validate the correct door code, and input V is used to check if the card reader is still valid. After the card reader is being read by the system, there are three outputs to this system: alarm (A), door open (D), and Error (E). Door (D) will only open when the decimal value of the binary inputs (x, y, z) is odd AND the card reader is valid. The Error (E) signal goes on when the code on the card is correct (i.e. decimal value equal to odd) but the card is no longer valid. Finally, the alarm (A) will trigger when the code is incorrect. Show your final design in canonical product of sum form. x y z V A D E 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 1 0 0 1 1 0 1 0 0 1 0 0 1 0 0 0 1 0 1 1 0 0 0 1 1 0 0 0 1 0 1 1 1 0 1 0 1 0 0 0 1 0 0 1 0 0 1 1 0 0 1 0 1 0 0 0 1 1 0 1 1 0 1 0 1 1 0 0 1 0 0 1 1 0 1 1 0 0 1 1 1 0 0 0 1 1 1 1 1 0 1 0 A(x, y, z, V) = (2, 3, 6, 7, 10, 11, 14, 15) D(x, y, z, V) = (0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13, 14) E(x, y, z, V) = (0, 1, 3, 4, 5, 7, 8, 9, 11, 12, 13, 15)

Problem 6 The critical path in a digital circuit is defined as the path through the logic that determines the ultimate speed of the structure. In the 4-bit ripple carry adder structure shown in Figure 6-1, the critical path in this circuit is the time that takes to generate the last carry out bit, C o,3. Figure 6-2 shows the implementation of each full adder used in the ripple carry adder. If the delay for each logic gate is given in Table-1, calculate the total delay in the critical path of the 4-bit ripple carry adder. Assume all the inputs A 0 -A 3, B 0 -B 3, and C i,0 are ready at t=0. Provide justification for your answer. A 0 B 0 A 1 B 1 A 2 B 2 A 3 B 3 C i,0 C o,0 C o,1 C o,2 C o,3 FA FA FA FA (= C i,1 ) S 0 S 1 S 2 S 3 Figure-1: Ripple Carry Adder A i B i C in S A i B i C C in Figure-2: Full Adder Implementation Table-1: Logic Gate Delays Delay (ns) Inverter 1ns AND 3ns OR 5ns XOR 9ns

1 st FA: Delay = 1 + 3 + 5 + 3 + 5 = 17ns 2 nd, 3 rd, and 4 th FA: Delay = 3 + 5 = 8ns Total delay is 17 + 8 + 8 + 8 = 41ns