Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

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

Chapter 5 Sequential Circuits

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

Final Exam review: chapter 4 and 5. Supplement 3 and 4

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

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.

CprE 281: Digital Logic

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

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

Digital Networks and Systems Laboratory 2 Basic Digital Building Blocks Time 4 hours

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

Asynchronous (Ripple) Counters

MODULE 3. Combinational & Sequential logic

RS flip-flop using NOR gate

RS flip-flop using NOR gate

Other Flip-Flops. Lecture 27 1

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Flip-Flops and Sequential Circuit Design

CHAPTER 4: Logic Circuits

Final Examination (Open Katz, Calculators OK, 3 hours)

Chapter. Synchronous Sequential Circuits

Chapter 5 Synchronous Sequential Logic

EE292: Fundamentals of ECE

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

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

REPEAT EXAMINATIONS 2002

CHAPTER 4: Logic Circuits

AIM: To study and verify the truth table of logic gates

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

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Chapter 4. Logic Design

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

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

EECS 270 Midterm 2 Exam Closed book portion Fall 2014

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

B. Sc. III Semester (Electronics) - ( ) Digital Electronics-II) BE-301 MODEL ANSWER (AS-2791)

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

EECS 270 Final Exam Spring 2012

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

Dr. Shahram Shirani COE2DI4 Midterm Test #2 Nov 19, 2008

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Computer Architecture and Organization

Unit 11. Latches and Flip-Flops

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

Logic Design. Flip Flops, Registers and Counters

Sequential Circuits: Latches & Flip-Flops

Digital Logic Design I

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

Counter dan Register

EECS 270 Group Homework 4 Due Friday. June half credit if turned in by June

CprE 281: Digital Logic

ELCT201: DIGITAL LOGIC DESIGN

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Lecture 8: Sequential Logic

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

DIGITAL ELECTRONICS MCQs

Introduction to Sequential Circuits

EECS 270 Midterm 1 Exam Closed book portion Winter 2017

Combinational / Sequential Logic

Midterm Examination II

Chapter 5: Synchronous Sequential Logic

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

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

CprE 281: Digital Logic

EECS 270 Midterm Exam Spring 2011

SEMESTER ONE EXAMINATIONS 2002

D Latch (Transparent Latch)

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

CHAPTER 11 LATCHES AND FLIP-FLOPS

Vignana Bharathi Institute of Technology UNIT 4 DLD

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

CprE 281: Digital Logic

LAB #4 SEQUENTIAL LOGIC CIRCUIT

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

Principles of Computer Architecture. Appendix A: Digital Logic

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

ELCT201: DIGITAL LOGIC DESIGN

INTRODUCTION TO SEQUENTIAL CIRCUITS

Software Engineering 2DA4. Slides 3: Optimized Implementation of Logic Functions

Engr354: Digital Logic Circuits

Sequential Logic and Clocked Circuits

Sequential Design Basics

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

Sequential Logic Circuits

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Instructions. Final Exam CPSC/ELEN 680 December 12, Name: UIN:

ME 515 Mechatronics. Introduction to Digital Electronics

Digital Logic. ECE 206, Fall 2001: Lab 1. Learning Objectives. The Logic Simulator

IT T35 Digital system desigm y - ii /s - iii

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

CprE 281: Digital Logic

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

1 Hour Sample Test Papers: Sample Test Paper 1. Roll No.

ECE 341. Lecture # 2

Transcription:

1 McGill University Faculty of Engineering ECSE-221B Introduction to Computer Engineering Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012 Examiner: Rola Harmouche Date: Friday, March 2, 2012 Time: 11:35 12:25 Student Name: McGill ID: Signature: INSTRUCTIONS: This is a CLOSED BOOK EXAM. FACULTY STANDARD CALCULATOR permitted ONLY. Read through ALL of the questions before beginning. Print your name legibly at the top of this page, fill in your student ID number and sign on the line below. Initial each page of the exam paper (nine pages in total) in case the sheets should get separated. The exam consists of Part 1 consisting of 10 multiple choice questions and Part 2 consisting of 4 problems. The multiple choice questions are equally weighted. You must encircle your answer. You can use the space provided to help yourself finding the answers. In Part 1, 2 marks for each correct answer, and 0.5 marks deducted for each wrong answer. Blank entries are not penalized. The 4 problems to be answered in the space provided on the examination sheet. You must encircle your final answer. The exam has a total of 30 marks.

2 Part 1 Multiple Choice (2 pts for correct answer) Question 1: What is the value represented by 110101 in a two s complement system? (Assume a 6 bit register) a) -11 b) 53 c) -53 d) 11 e) 21 Answer: a Question 2: What is the logical expression of the following circuit? a) b) c) d) e) Answer: a

3 Question 3: How many 2-input MUX, how many stages, and what is the total delay for a 32 bit multiplexer? (Do not count delay of inverters) a) 30 MUX, 5 stages, 15 units of gate delay b) 30 MUX, 4 stages, 10 units of gate delay c) 15 MUX, 4 stages, 10 units of gate delay d) 15 MUX, 5 stages, 30 units of gate delay e) 30 MUX, 5 stages, 10 units of gate delay Answer: e (30 was replaced by 31) Question 4: What is the base-8 representation of 4A7 12? a) 417 b) 703 c) 1607 d) 1277 e) 407 Answer: d Question 5: In the Flip Flop shown below, what is the next state of the output state variable if D(t) = 1? a) Undefined b) 0 c) Toggle d) 1 e) None of the above Answer: d Question 6: What is the minimum logic function of the following Karnaugh map?

4 (a) (b) (c) (d) (e) Answer: a Question 7: You are designing a modulo-8 counter using the following 7 segment display and a 3-to-8 decoder: Answer: e 7 Segment Display 3-to-8 Decoder A 3-to-8 decoder is used to assert each octal code (0 to 7). The inputs of the decoder represent the octal code in binary. Each segment of the display (a to g) combines 1 s (OR) or 0 s (NOR), depending on which are fewer in the truth table. What is the logic equation for segment b? (a) a = OR (5,6) (b) a = OR (1,2,5,6) (c) a = NOR(1,4) (d) a = XOR(2,3,5,6,7,8) (e) a = NOR (5,6)

5 Question 8: What is the main difference between The J-K master-slave flip-flop and the RISING edge-triggered flip-flop? a) Toggle mode is undefined for the J-K master-slave flip-flop but is defined for the edge triggered flip flop. b) The edge triggered flip flop is not susceptible to 1 s and 0 s catching whereas the J-K masterslave flip-flop is. c) RACE condition occurs in the J-K master-slave flip-flop but does not occur for the edge triggered flip flop. a) Preset and Clear allow the flip-flop to be forced into an initial state in the The J-K master-slave flip-flop but not in the edge triggered flip flop b) None of the above Answer: b Question 9: How is not a number represented using IEEE-754 format? a) Mantissa = 0, exponent = 0 b) Mantissa = non-zero, exponent = 0 c) Mantissa = 0, exponent = 255 d) Mantissa = 1, exponent = 0 e) Mantissa = non-zero, exponent = 255 Answer: e Question 10: In what mode is the Master-Slave SR latch at t = 87 units (red dash line)? a) Set Mode b) Reset Mode c) Toggle Mode d) Memory Mode

6 Answer: a Part 2 Problem 1 (5 pts): Encode the number -8.573 x 10 13 using the IEEE 754 format and express your result as a 8-digit hexadecimal number. Determine the mantissa to equivalent precision. -0.5 pts for not getting the right number of significant digits -2 pts for bad exponent -2 pts for bad mantissa Sign = 1 log(-8.573 x 10 13) /log(2) = 46.285 2 47 = 1.4074x10 14-8.573 x 10 13 x2 47 = 1.4074x10 14 x (-8.573 x 10 13 ) -8.573 x 10 13 = (-8.573 x 10 13 x 2 47 ) / 1.4074x10 14-8.573 x 10 13 = (-8.573 x 2 47 ) / 14.074 = 0.6092 x 2 47 = 1.2184 x 2 46 # of significant bits : 4/log (2) = 13.28 - > round up = 14 1 for the hidden bit normalization = 13 Mantissa:.2183 x 16 = 3.4928.4928 x 16 = 7.8848.8848 x 16 = 14.1568.1568 x 16 = 2.5088 Exponent = 46 + 127 = 173 Answer : 1 1010110 100110111111001000000 D69BF200

7 Problem 2 (5 pts): Write out the algorithm for binary multiplication. Use the algorithm to perform the multiplication of 10111 and 00101. Assuming 5-bit registers, indicate whether overflow occurred. Soln: Set I = M; set P = 0. For j = 0, 1, 2,, n-1 do the following: 1. If digit j of N is 1 then set P = P + I Else if digit j of N is 0, do nothing; 2. Shift I left one place. 00101 * 10111 5 * -9 10111 1011100 1110011-12. Overflow occurred. Things to remove points for: - shift left after each digit of N - do nothing if digit is 0 and add I if digit is 1 - the actual multiplication: 1 point - overflow detection: ½ a point Problem 3 (5 points) Derive the minimal Sum of Product and Product of Sum for the following function: F 1,4,5,6,9,12,13,14 A, B, C, D Show the corresponding NAND-NAND and NOR-NOR implementations and draw the circuit diagram using simple gates for the NAND and for NOR. 1.25 points for each map 1.25 points for each circuit

8 Problem 4 (5 points) Fill in the following state transition tables for the clocked S-R latch and the J-K Flip-flop. Indicate the mode for each input combination. What is the main difference between a clocked S-R latch and a J-K Flip-flop? 1 point for difference 2 points for each truth table J K Q Q Mode S R Q Q Mode 0 0 0 0 Memory 0 0 0 0 Memory 0 0 1 1 Memory 0 0 1 1 Memory 0 1 0 0 Reset 0 1 0 0 Reset 0 1 1 0 Reset 0 1 1 0 Reset 1 0 0 1 Set 1 0 0 1 Set 1 0 1 1 Set 1 0 1 1 Set 1 1 0 1 toggle 1 1 0 - Not defined 1 1 1 0 toggle 1 1 1 - Not defined Main difference: J=1 K=1 defined for JK flip flop. S=1, R=s not defined for SR latch