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

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

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

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

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

Lecture 7: Logic design. Combinational logic circuits

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

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

Philadelphia University Student Name: Student Number:

Lecture 3 Review on Digital Logic (Part 2)

Fundamentals of Computer Systems

Adders, subtractors comparators, multipliers and other ALU elements

Fundamentals of Computer Systems

Problem Set 9 Solutions

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

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

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

Integrated Circuits & Systems

Philadelphia University Student Name: Student Number:

Topic 8: Sequential Circuits

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

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

Lecture Outline. ESE 570: Digital Integrated Circuits and VLSI Fundamentals. Total Power. Energy and Power Optimization. Worksheet Problem 1

University of Toronto Faculty of Applied Science and Engineering Final Examination

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

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

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

Sequential Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

Synchronous Sequential Circuit Design. Digital Computer Design

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

Latches. October 13, 2003 Latches 1

Adders, subtractors comparators, multipliers and other ALU elements

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

CS/COE1541: Introduction to Computer Architecture. Logic Design Review. Sangyeun Cho. Computer Science Department University of Pittsburgh

Digital Electronics Final Examination. Part A

Sample Test Paper - I


Shift Register Counters

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

ALU, Latches and Flip-Flops

Chapter 4. Sequential Logic Circuits

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

Written reexam with solutions for IE1204/5 Digital Design Monday 14/

Written exam with solutions IE Digital Design Friday 21/

Floating Point Representation and Digital Logic. Lecture 11 CS301

Lecture 10: Synchronous Sequential Circuits Design

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

CSC258: Computer Organization. Digital Logic: Transistors and Gates

For smaller NRE cost For faster time to market For smaller high-volume manufacturing cost For higher performance

ENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter. Lab 3. Lab 3 Gate Timing. Lab 3 Steps in designing a State Machine. Timing diagram of a DFF

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

Digital Design. Sequential Logic

ALU A functional unit

Design of Sequential Circuits

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

CPE100: Digital Logic Design I

Combinational vs. Sequential. Summary of Combinational Logic. Combinational device/circuit: any circuit built using the basic gates Expressed as

Logic design? Transistor as a switch. Layered design approach. CS/COE1541: Introduction to Computer Architecture. Logic Design Review.

Lecture 22 Chapters 3 Logic Circuits Part 1

Review for Final Exam

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

Digital Electronics. Part A

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

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

CPS 104 Computer Organization and Programming Lecture 11: Gates, Buses, Latches. Robert Wagner

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

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

5. Sequential Logic x Computation Structures Part 1 Digital Circuits. Copyright 2015 MIT EECS

CS/COE0447: Computer Organization

UNIVERSITY OF WISCONSIN MADISON

Sequential vs. Combinational

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

Topic 8: Sequential Circuits. Bistable Devices. S-R Latches. Consider the following element. Readings : Patterson & Hennesy, Appendix B.4 - B.

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

Preparation of Examination Questions and Exercises: Solutions

Boolean Logic Continued Prof. James L. Frankel Harvard University

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Memory, Latches, & Registers

Synchronous Sequential Logic

CMPEN 411. Spring Lecture 18: Static Sequential Circuits

Gates and Flip-Flops

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

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

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

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Lecture 9: Sequential Logic Circuits. Reading: CH 7

Topics. CMOS Design Multi-input delay analysis. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

CPE100: Digital Logic Design I

Digital Circuits and Systems

Fundamentals of Digital Design

CSE 140 Spring 2017: Final Solutions (Total 50 Points)

Digital Electronics Sequential Logic

ELEN Electronique numérique

Digital Electronics Circuits 2017

Transcription:

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering Final Examination ECE 241F - Digital Systems Examiners: J. Rose and B. Wang December 10, 2003 Duration: 2.5 Hours ANSWER UESTIONS ON THESE SHEETS, USING THE BACKS IF NECESSARY. 1. No aids of any kind are allowed, including calculators. 2. The amount of marks available for each question is given in square brackets []. 3. Answer all questions. LAST NAME: FIRST NAME: STUDENT NUMBER: CHECK LECTURE SECTION: 01 Rose [ ] 02 Wang [ ] uestion 1 2 3 4 5 6 7 Total Maximum 15 15 10 10 10 15 10 85 Mark Mark Obtained Page 1 of 17

[15] 1. [5] (a) A master-slave D-type flip-flop and a single bit of static random access memory (SRAM) are capable of storing 1 bit of information. You are to determine the number of transistors in each, assuming they are built as shown in class. For the flip-flop, assume that there are no set or set reset signals. For the SRAM bit, only count the transistors for a single bit in the array, not the circuitry on the periphery of the array. Show how you arrive at your answer by giving the transistor counts of the appropriate sub-units and adding them all up. Answer: Number of Transistors in CMOS Master-Slave D-type Flip-Flop: Number of Transistors in CMOS SRAM Bit: Page 2 of 17

1, cont'd [5] (b) Consider the following circuit, which has a exclusive OR gate feeding a chain of three inverters and an input signal G: G (i) Under what condition does this circuit oscillate? (ii) If the propagation delay of all the inverters is 2ns, and the propagation delay of the exclusive OR gate is 3ns, what is the period of oscillation of the circuit when it oscillates? Page 3 of 17

1, cont'd [5] (c) Consider a basic carry-lookahead adder, roughly illustrated below: Carry Lookahead Unit FA... FA FA Assuming that the logic is built using CMOS logic family, what prevents an adder designer from usefully employing a single level of carry lookahead, (as illustrated above) across a large number (more than 4, say) of full adder units? Your answer should consist of just a few sentences. Page 4 of 17

[15] 2. [5] (a) A children s riddle concerns a Farmer who is traveling with a sack of Rye, a Goose and a mischievous Dog. The farmer comes to a river that he must cross from east to west. A boat is available, but it only has room for the farmer and one of his possessions. If the farmer is not present on the same side of river, 1) As the goose and the rye, the goose will eat the rye, which is bad. 2) As the dog and the goose, the dog will eat the goose which is also bad. You are to create a truth table for a logic circuit that will indicate when one of the bad events will happen. A separate switch is provided for the farmer (F), the rye (R), the goose (G) and the dog (D). Each switch will indicate a logic high if the corresponding object is on the east bank and a logic low if that object is on the west bank. The output of the circuit, an alarm signal (A) should be set high any time the rye or the goose is in danger of being eaten. Give the truth table for the function A: F R G D A 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 Page 5 of 17

2, cont'd [5] (b) Determine the minimal Product-of-Sums (POS) expression for the following logic function: F (P,,R,S) = Σ m(3,6,7,9,12,13,14,15) Make use of the following Karnaugh Map: P RS 00 00 01 11 10 01 11 10 Answer, in Product of Sum form: Page 6 of 17

2, cont'd [5] (c) Give the circuit implementation of the following truth table using ONE 4-to-1 multiplexer and as few other logic gates as possible. You must use a and b as the multiplexor selector inputs, as shown on the 4-to-1 multiplexor below. Use this multiplexor circuit as part of your answer: a b c d f 0 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 0 1 0 0 0 1 1 0 0 1 0 1 0 1 0 1 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 00 01 f 10 11 a b Page 7 of 17

[10] 3. Implement the logic function f ( a, b, c, d ) = m(1,2,6,8,9,10,11,14) using no more than three 3- LUTs (3-input look up tables). Indicate inside each LUT the Boolean expression (not the truth table) for logic function being implemented in the LUT, in its minimal sum-of-products form. Page 8 of 17

[10] 4. You are to analyze the finite state machine circuit below, as specified in parts (a), (b) and (c) below. Assume that the D flip-flops are initially reset to zero before the machine begins. The circuit x D 1 D SET y 1 CLR Clock D 2 D SET y 2 Z CLR [3] (a) Give the logic expressions for next-state variables (D 1 and D 2 ) and the output (Z); [4] (b) Give the state transition table. You must represent each state by the specific code used by the circuit. Fill in the following table appropriately: Present State Next State Output Page 9 of 17

4, cont'd [3] (c) The state diagram, again using the code to represent each state. Page 10 of 17

[10] 5. Consider the circuit below and the table giving various maximum and minimum propagation delays for the circuit elements. Propagation Delay Maximum (ns) Minimum (ns) T INV 2.0 0.5 T AND 5.0 1.5 T OR 5.0 1.5 T Clock-to- 3.0 1.0 T set-up 2.0 T hold 1.0 x INV_1 D SET CLR Dff_1 INV_2 AND_1 D SET CLR Dff_2 AND_3 Z D SET CLK AND_2 OR_1 CLR Dff_3 [7] (a) Determine the minimum clock period for which this circuit is guaranteed to operate correctly. Be sure to show how you make the calculation Page 11 of 17

5, cont'd [3] (b) Will the circuit have a hold-time violation? Explain why or why through a hold-time analysis. Page 12 of 17

[15] 6. You are to design a one-input, one-output serial 2 s complementer state machine. The input is a series of bits (one per clock cycle) beginning with the least-significant bit of the number to be negated and the output is the 2 s complement of the input. The circuit is reset asynchronously to start and end each operation. [6] (a) Give the state diagram and the state transition table. Use a fully-encoded state coding. Page 13 of 17

6, cont'd [4] (b) Derive the logic expressions for all next-state variables and the output. Page 14 of 17

6, cont'd [5] (c) Give the logic circuit for the machine - clearly label all signals. Page 15 of 17

[10] 7. [7] (a) Give the Verilog code that implements the state machine described by the following state diagram, using the same signal and state names and state encoding as given. In your code, you must separate the code that describes the next state computation from the code that describes the state registers. Code for State A: 00 Code for State B: 01 Code for State C: 11 Inputs X Y Output: Z 00 01 01 10 A (Z = 0) B (Z = 1) 10 00 Reset State 00 11 C (Z = 1) 01 11 10 Page 16 of 17

Give Verilog code for part (a) here: 7, cont'd [3] (b) What is the likely cause of the following problem: this above circuit simulates correctly using functional simulation, but incorrectly using timing simulation? Page 17 of 17