University of Toronto Faculty of Applied Science and Engineering Final Examination

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

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

Sample Test Paper - I

Written exam with solutions IE Digital Design Friday 21/

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

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

DE58/DC58 LOGIC DESIGN DEC 2014

Floating Point Representation and Digital Logic. Lecture 11 CS301

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

ENGIN 112 Intro to Electrical and Computer Engineering


Combinational Logic. By : Ali Mustafa

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

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

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

Lecture 10: Synchronous Sequential Circuits Design

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Philadelphia University Student Name: Student Number:

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

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

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

University of Toronto Faculty of Applied Science and Engineering Department of Electrical and Computer Engineering Midterm Examination

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Synchronous Sequential Logic

ECE 341. Lecture # 3

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

ELCT201: DIGITAL LOGIC DESIGN

Digital Electronics II Mike Brookes Please pick up: Notes from the front desk

Philadelphia University Student Name: Student Number:

Lecture 7: Logic design. Combinational logic circuits

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

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Contents. Chapter 3 Combinational Circuits Page 1 of 36

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

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

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

Introduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison

Lecture 17: Designing Sequential Systems Using Flip Flops

Review Problem 1. should be on. door state, false if light should be on when a door is open. v Describe when the dome/interior light of the car

Digital Electronics Final Examination. Part A

CSE 140 Lecture 11 Standard Combinational Modules. CK Cheng and Diba Mirza CSE Dept. UC San Diego

Fundamentals of Digital Design

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

ELEN Electronique numérique

DIGITAL LOGIC CIRCUITS

CprE 281: Digital Logic

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

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.

Synchronous Sequential Circuit Design. Digital Computer Design

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

Computer Science Final Examination Friday December 14 th 2001

to become literate in most common concepts and terminology of digital electronics

Experiment 7: Magnitude comparators

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

Written exam with solutions IE1204/5 Digital Design Monday 23/

Systems I: Computer Organization and Architecture

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

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

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007

Computer organization

MODULAR CIRCUITS CHAPTER 7

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

Combinational Logic Design Combinational Functions and Circuits

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

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

CS61c: Representations of Combinational Logic Circuits

COMBINATIONAL CIRCUITS

EECS150 - Digital Design Lecture 16 Counters. Announcements

Exercise booklet - Logic

Digital Circuits ECS 371

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

DESIGN AND IMPLEMENTATION OF ENCODERS AND DECODERS. To design and implement encoders and decoders using logic gates.

UNIT III Design of Combinational Logic Circuits. Department of Computer Science SRM UNIVERSITY

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

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

Combinational Logic. Jee-Hwan Ryu. School of Mechanical Engineering Korea University of Technology and Education

COMBINATIONAL LOGIC FUNCTIONS

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

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

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

Numbers and Arithmetic

Parity Checker Example. EECS150 - Digital Design Lecture 9 - Finite State Machines 1. Formal Design Process. Formal Design Process

INF2270 Spring Philipp Häfliger. Lecture 8: Superscalar CPUs, Course Summary/Repetition (1/2)

Introduction to Computer Engineering. CS/ECE 252, Spring 2017 Rahul Nayar Computer Sciences Department University of Wisconsin Madison

Chapter 5. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 5 <1>

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

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

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Logic. Combinational. inputs. outputs. the result. system can

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

EECS 270 Midterm 2 Exam Answer Key Winter 2017

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

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences

Chapter 1 :: From Zero to One

Transcription:

University of Toronto Faculty of Applied Science and Engineering Final Examination ECE 24S - Digital Systems Examiner: Belinda Wang, Jianwen Zhu 2: - 4:3pm, April 26th, 24 Duration: 5 minutes (2.5 hours) ANSWER QUESTIONS ON THESE SHEETS, USING THE BACKS IF NECESSARY.. No calculator is allowed. 2. Weight for each question is indicated in []. Attempt all questions, since a blank sheet will certainly get a zero. Last Name: Maximum grade = First Name: Student Number: Lecture Section: Section (Zhu) [ ] Section 2 (Wang) [ ] Question 2 3 4 5 6 7 Total Mark

Name: ID: 2 Problem [2 marks] We want to build a NAND gate circuit to compute the parity of an n-bit unsigned number. The parity is defined as if and only if there are an odd number of s in the number. One way of doing this is to build the circuit bit at a time (as in the adder), such that the circuit computes the parity after that bit as a function of the parity up to that bit and the one input bit. A block diagram of the first few bits of such circuit is shown below. a a 2 a p p 2 p (a) [8] Show an NAND gate circuit to implement bit and compute the delay of n bits. Assume that the delay for an NAND is +.*(# of inputs) ns.

Name: ID: 3 (b) [2] Reduce the delay by implementing 2 bits at a time as shown below. Draw the NAND gate circuit. Compute the delay for n bits in this case. a b p out p in

Name: ID: 4 Problem 2 [2 marks] Consider the three functions, the K-map of which are given below. You have available as components, OR gates and 2-to-4 decoders (as shown in the diagram below). Write down the logic expressions (in the forms that can be implemented using the given components) and draw the circuit diagrams for all three functions (highest mark will be given to those designs with fewer decoders, gates and minimal number of inputs to the gates). wx yz wx yz wx yz a b 2 to 4 decoder y y y 2 y 3 f g h Enable

Name: ID: 5 Problem 3 [ marks] Design a system that has an output (z) of when input (x) has been for exactly seven clock cycles. In addition to combinational logic gates, one of the following component is available: (a) [5] A 4-bit counter (with asynchronous clear) En binary counter Q Q Q2 Q 3 clear (b) [5] An 8-bit shift register (with asynchronous preset and clear) preset preset preset preset preset preset preset preset D Q D Q D Q D Q D Q D Q D Q D Q

Name: ID: 6 Problem 4 [5 marks] You are building an adder to add the 32-bit constant () to an arbitrary 32-bit number. You can implement this with 6 identical adder modules, each of which will add 2 bits of the number to the constant () and a carry from the previous lower pair of bits and produce 2 bits of the sum and the carry to the next pair. A block diagram of part of the design is shown below: a b 2 bit adder c 2 bit adder y 2 bit adder s t The problem each 2-bit adder solve is: c a b + y s t (a) [7] Show a truth table for the 2-bit adder (It has three inputs: a,b,c; three outputs: y,s, and t.)

Name: ID: 7 (b) [6] Write the minimum cost expressions for all outputs (y, s and t), if only NOR gates are available for implementation. (c) [2] Assume each NOR gate has an ns delay, compute the delay from the c input of each module to the y output of the module and the total delay for the 32 bits (from c to y 3 )

Name: ID: 8 Problem 5 [2 marks] Consider a sequential system with a single input w and single out z. The state diagram of the system is shown below. B / A / / / / E / D / / / / / C / F / / G (a) [3] Draw the state table of the sequential system.

Name: ID: 9 (b) [6] Reduce the system to one with the minimum number of states, and draw the reduced state table. (c) [3] Draw the state diagram of (b). (d) [3] Given the following input pattern(x), fill out the expected output pattern (z). Assume that you start at state A. x z

Name: ID: Problem 6 [5 marks] Consider a sequential system with a single input w and single out z. The state diagram of the system is shown below. A z= B z= D z= C z= Design a sequential circuit using one-hot encoding. Draw the circuit diagram below.

Name: ID: Problem 7 [5 marks] Imagine it is your first day in a hot startup company in silicon valley called ZINI (an acronym for Zini Is Not Intel). Your manager, Dr. Build Gates, is a well-known architect in chip design. Dr. Gates asked you to design a critical component in a new microprocessor, called the page manager, whose specification is shown below. allocate free 3 8 decoder T Register Din 3 page manager Dout 3 8 3 priority encoder multi plexor The page manager manages a total of 8 memory pages, each of which is of K bytes. Each page can be identified by a three-bit number, called its page number. Each page is either freed, meaning not being used, or allocated, meaning being used. Initially, all pages are supposed to be freed. The inputs of the page manager consists of two control signals, allocate, free, and a three-bit data signal din. The output of the page manager consists of a three-bit data signal dout. When the signal allocate is asserted (), the page manager should output a 3- bit page number in dout, representing a page that are free. At the same time, the page manage should mark the status of the page as allocated. When the signal free is asserted (), the page manager should mark the status of the page, whose 3-bit page number is supplied at din, as free. The design components that can be used include a 3-8 decoder, 8-3 priority encoder, T-register (array of T-flipflops), multiplexors, as well as ordinary logic gates.

Name: ID: 2 (a) [5] Show the truth-table of a priority encoder, Assume the inputs are D 7,D 6,D 5,D 4,D 3,D 2,D,D and the outputs are A 2,A,A. [] Draw the circuit diagram of the page manager you designed.