ENEL Digital Circuit Design. Final Examination

Similar documents
Fundamentals of Digital Design

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

Computer Science Final Examination Friday December 14 th 2001

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

University of Minnesota Department of Electrical and Computer Engineering

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

University of Florida EEL 3701 Fall 2014 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Wednesday, 15 October 2014

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

Philadelphia University Student Name: Student Number:

Signals and Systems Digital Logic System

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

EGR224 F 18 Assignment #4


Lecture 2 Review on Digital Logic (Part 1)

CHAPTER 7. Exercises 17/ / /2 2 0

Combinational Logic. By : Ali Mustafa

Numbers and Arithmetic

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

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.

ECE 341. Lecture # 3

Systems I: Computer Organization and Architecture

MC9211 Computer Organization

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

Digital Logic (2) Boolean Algebra

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

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

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

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

ENGG 1203 Tutorial_9 - Review. Boolean Algebra. Simplifying Logic Circuits. Combinational Logic. 1. Combinational & Sequential Logic

Sample Test Paper - I

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

Number System conversions

Combinational Logic. Course Instructor Mohammed Abdul kader

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

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

12. Finite State Machine Design

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

ENGG 1203 Tutorial. Solution (b) Solution (a) Simplification using K-map. Combinational Logic (II) and Sequential Logic (I) 8 Feb Learning Objectives

Numbers and Arithmetic

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Chapter 7 Logic Circuits

Save from: cs. Logic design 1 st Class أستاذ المادة: د. عماد

Exam for Physics 4051, October 31, 2008

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

University of Guelph School of Engineering ENG 2410 Digital Design Fall There are 7 questions, answer all questions.

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

Hakim Weatherspoon CS 3410 Computer Science Cornell University

Cs302 Quiz for MID TERM Exam Solved

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

Philadelphia University Student Name: Student Number:

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

Digital Electronics Circuits 2017

Sequential Circuit Design

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

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

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

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

EECS 270 Midterm Exam 2 Fall 2009

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

ENEL Digital Circuits Final Examination

Mealy & Moore Machines

Contents. Chapter 3 Combinational Circuits Page 1 of 36

Lecture 10: Synchronous Sequential Circuits Design

ELEN Electronique numérique


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

Written exam with solutions IE1204/5 Digital Design Friday 13/

Faculty of Engineering. FINAL EXAMINATION FALL 2008 (December2008) ANSWER KEY

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

DE58/DC58 LOGIC DESIGN DEC 2014

Chapter 2 Combinational Logic Circuits

Synchronous Sequential Circuit

DIGITAL LOGIC CIRCUITS

Lecture 7: Logic design. Combinational logic circuits

COMPUTER SCIENCE TRIPOS

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

Why digital? Overview. Number Systems. Binary to Decimal conversion

Asynchronous sequence circuits

Synchronous Sequential Circuit Design. Dr. Ehab A. H. AL-Hialy Page 1

Chapter 2. Digital Logic Basics

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

Unit 2 Session - 6 Combinational Logic Circuits

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

Synchronous Sequential Circuit Design. Digital Computer Design

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

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

CMPT-150-e1: Introduction to Computer Design Final Exam

CPE100: Digital Logic Design I

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

EEE130 Digital Electronics I Lecture #4

University of Florida EEL 3701 Fall 1996 Dr. Eric M. Schwartz

Combinational Logic. Review of Combinational Logic 1

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

EE 209 Spiral 1 Exam Solutions Name:

Logic Design I (17.341) Fall Lecture Outline

ECE 2300 Digital Logic & Computer Organization

Digital Systems Roberto Muscedere Images 2013 Pearson Education Inc. 1

Transcription:

ELECTRICAL AND COMPUTER ENGINEERING ENEL 353 - Digital Circuit Design Final Examination Friday, December 17, 1999 Red Gymnasium, 3:30PM - 6:30 PM Instructions: Time allowed is 3 hours. The examination is closed-book. Calculators are permitted. The maximum number of marks is 100, as indicated. Please attempt all questions. Please use a pen or heavy pencil to ensure legibility. If you use more than one examination booklet, please make sure that your name and ID number are on both. Where appropriate, marks will be awarded for proper and well-reasoned explanations.

ENEL 353 Final Examination 2 1 Positional Number Systems (15 marks) For questions (1.1)-(1.5) below, please show your work to receive full marks. 1.1 Convert 932.62 12 to decimal. [3 marks.] 1.2 Convert BAD.8 16 to base 6. [3 marks.] 1.3 Multiply the unsigned binary numbers 1001 2 and 110 2 using binary arithmetic. Express your answer as another unsigned binary number. [3 marks.] 1.4 Determine the radix r such that the following relationship is satisfied. [3 marks.] 211 r = 152 8 (1) 1.5 Consider the numbers X = 3D 16 and Y = CE 16 that are hexadecimal representations of 8-bit sign-magnitude binary numbers. Compute X + Y using two s-complement binary arithmetic, then convert your answer back to signmagnitude binary form. [3 marks.] 2 Switching Algebra (15 marks) 2.1 Using the method of your choice, prove the Consensus Theorem, which is stated as follows. [3 marks.] xy + x z + yz = xy + x z (2) 2.2 Express the following as a canonical sum-of-products and a canonical productof-sums. [3 marks.] F = C(A + B) + BCD + A D (3) 2.3 Simplify the following expression algebraically. [3 marks.] F = y(vwx(x u+w ov)+ou+ouwx )+g((g +x+y) +(o +t ) )+ix t+ixt (4) 2.4 Without using a truth table, use the theorems of switching algebra to determine the canonical sum-of-products for the following. [3 marks.] F = A B C (5) 2.5 Find the complement (i.e., F ) of the following expression. [3 marks.] F = AB(C D + CD ) + A B (C + D)(C + D ) (6)

ENEL 353 Final Examination 3 3 Combinational Circuits (35 marks) 3.1 Consider the multi-level AND-OR diagram shown in Fig. 1. (a) Write the expression for the output F of this circuit. [3 marks.] (b) Modify this circuit so that it uses only NAND gates and inverters. [5 marks.] [8 marks total.] Fig. 1. An AND-OR logic diagram 3.2 Design a combinational circuit that takes a 4-bit binary-coded decimal (BCD) integer P QRS as input, and produces a 4-bit output W XY Z that is the nine s complement of P QRS. P is the most-significant bit (MSB) of the input and W is the MSB of the output. Your circuit should be minimal in complexity and use only NAND gates and inverters. You may assume that non-bcd numbers are never input to the circuit. [9 marks.] 3.3 The logic symbol for a 74x138 3-to-8 line decoder is shown in Fig. 2. Fig. 2. A 74x138 decoder Implement the nine s-complement converter in question (3.2) using decoders of this type and NAND gates. The MSB of the select lines is C. [6 marks.]

ENEL 353 Final Examination 4 3.4 Design a combinational circuit that takes a 4-bit BCD number and appropriately illuminates segment F in the seven-segment display shown in Fig. 3. The segment is illuminated for BCD digits 0, 4, 5, 6, 8, and 9, when a logic-1 is applied to the segments input. Your circuit should be minimal in complexity and the only gates available to you are NOR gates (that is, no inverters are available). You may assume that non-bcd numbers are never input to the circuit. [6 marks.] Fig. 3. A seven-segment display 3.5 Using Karnaugh maps, obtain both a minimal sum-of-products and product-ofsums expression for the function F = y z + wxy + wxz + w x z (7) For your choice of groupings, carefully indicate the distinguished one- and zerocells and the essential prime implicants/implicates. [6 marks.] 4 Sequential Circuits (35 marks) 4.1 The state/output table for a particular clocked synchronous circuit is shown in Fig. 4. The circuit has a single input, X, and a single output, Z. Fig. 4 A state/output table (a) Draw the state diagram for this circuit. [3 marks.]

ENEL 353 Final Examination 5 (b) Briefly describe the operation of this circuit; that is, what particular pattern of input X causes the output Z to be become asserted. [2 marks,] (c) Design the circuit based on D-type flip-flops (DFFs) using the minimal cost approach for the unused states. For your design, assign the states Q2Q1Q0 = 000 (INIT), 001 (S1), 011 (S2), 010 (S3), 110 (S4), and 111 (S5). Please provide the following design components: [6 marks.] The transition/excitation/output table. The minimized excitation equations and output equation. The logic diagram using NAND gates, inverters, and DFFs. [11 marks total.] 4.2 Analyze the clocked synchronous circuit given in Fig. 5. Write the excitation equations, the excitation/transition table, and the state/output table (use state names S0-S3 for Q1Q0 = 00, 01, 10, 11). [6 marks.] Fig. 5. A clocked synchronous circuit for analysis 4.3 Design a clocked synchronous circuit based on DFFs that produces a dual outof-order counting sequence. It has a single input, X, and the outputs are the system state variables Q2Q1Q0. When the input is X = 1, the circuit produces the repeating output sequence 0-1-6-3-7-5; that is, when X = 1, the state variables count through the sequence Q2Q1Q0 =... 016375016375016375... Similarly, when the input is X = 0, the circuit produces the alternate repeating output sequence of 0-5-3-1-7-6. Use the minimal cost approach for the unused states in your design. For your design, please provide the following design components. The state diagram. Show all transitions.

ENEL 353 Final Examination 6 The state/output table. The transition/excitation/output table. The minimized excitation equations. It is not necessary to draw the logic diagram for the circuit. [10 marks.] 4.4 Suppose that Krusty Enterprises has approached you to design a vending machine that dispenses Krusty-brand after-dinner mints. The machines are to be installed at all local Krusty Burger restaurants. The cost of the mints is $1.00, and the machine accepts only quarters (25-cent coins) or loonies (1-dollar coins). Design a Mealy-type clocked synchronous state machine to act as a controller for the vending machine. Suggest a state diagram only; it is not necessary to complete the design. There are three inputs available to you: Q - quarter. This signal is asserted after a quarter has been inserted into the machine and the coin is in physical contact with the coin sensor. Normally, Q=0; then, when the coin first touches the sensor, Q becomes asserted Q=1, and it remains Q=1 until the coin completely passes the sensor. L - loonie. This signal has the same properties as Q above, except that it is asserted when a loonie is in contact with the sensor. Since the same sensor is used for both coins, Q and L are never asserted simultaneously. CR - coin return. This signal is from a front-panel button on the machine to request that the transaction be terminated and to return just the quarters, if any, that have been inserted. CR=1 while the button is pressed. The outputs of the controller are M ( mint ), used to dispense a mint, and C ( coin ), used to cause the return of any quarters collected in the current transaction. The mint signal M indicates a successful transaction, and it also causes the machine to keep the inserted coins. The operation of the machine is as follows: When a loonie has passed by the sensor, the machine dispenses a mint and returns any quarters that may have been inserted first. The transaction is complete. If quarters are being inserted, the controller must count the passage of four coins; as the fourth moves past the sensor, the machine dispenses a mint, and the transaction is complete. If the coin-return button is pressed while the controller is waiting for a coin to be inserted, then all quarters inserted so far are returned and the transaction terminates. [8 marks.] Norm Bartley, December 14, 1999