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

Similar documents
The University of Michigan Department of Electrical Engineering and Computer Science. EECS 270 Fall Practice Final Exam.

Practice Final Exam Solutions

Final Exam. ECE 25, Spring 2008 Thursday, June 12, Problem Points Score Total 90

CPE100: Digital Logic Design I

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

Standard & Canonical Forms

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

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

EC-121 Digital Logic Design

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

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

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


Chapter 2 Boolean Algebra and Logic Gates

Chapter 2: Switching Algebra and Logic Circuits

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

Simplify the following Boolean expressions and minimize the number of literals:

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Finite State Machine (FSM)

CS470: Computer Architecture. AMD Quad Core

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

Sample Test Paper - I

EECS 141: SPRING 09 MIDTERM 2

MC9211 Computer Organization

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

CS61c: Representations of Combinational Logic Circuits

Chapter 2: Boolean Algebra and Logic Gates

Fundamentals of Digital Design

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

EECS150 - Digital Design Lecture 23 - FSMs & Counters

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

EECS 312: Digital Integrated Circuits Final Exam Solutions 23 April 2009

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

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

Fundamentals of Computer Systems

EECS150 - Digital Design Lecture 25 Shifters and Counters. Recap

Chapter 7 Logic Circuits

CPE100: Digital Logic Design I

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Week-I. Combinational Logic & Circuits

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

Combinational Logic. Fan-in/ Fan-out Timing. Copyright (c) 2012 Sean Key

CHAPTER1: Digital Logic Circuits Combination Circuits

Boolean Logic Continued Prof. James L. Frankel Harvard University

Philadelphia University Student Name: Student Number:

EE 209 Spiral 1 Exam Solutions Name:

Problem Set 9 Solutions

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

Sequential Logic Circuits

Synchronous Sequential Circuit Design. Digital Computer Design

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

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

Chapter-2 BOOLEAN ALGEBRA

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

Written exam with solutions IE Digital Design Friday 21/

Contents. Chapter 3 Combinational Circuits Page 1 of 36

Lecture 9: Sequential Logic Circuits. Reading: CH 7

Fundamentals of Computer Systems

Digital Electronics Final Examination. Part A

211: Computer Architecture Summer 2016

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

Floating Point Representation and Digital Logic. Lecture 11 CS301

Lecture A: Logic Design and Gates

Chap 2. Combinational Logic Circuits

CSE 140 Midterm I - Solution

UNIVERSITY OF WISCONSIN MADISON

Lecture 7: Logic design. Combinational logic circuits

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

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

EECS Variable Logic Functions

Time Allowed 3:00 hrs. April, pages

EECS 270 Midterm 2 Exam Answer Key Winter 2017

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

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

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

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

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

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

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

Chapter 4. Sequential Logic Circuits

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

Computer Science Final Examination Friday December 14 th 2001

Standard Expression Forms

EE141Microelettronica. CMOS Logic

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

Digital Electronics Sequential Logic

Sequential Logic Worksheet

Boolean Algebra & Logic Gates. By : Ali Mustafa

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

CSE 140 Midterm 3 version A Tajana Simunic Rosing Spring 2015

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

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

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

Adders, subtractors comparators, multipliers and other ALU elements

DIGITAL LOGIC CIRCUITS

CS61C : Machine Structures

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

Adders, subtractors comparators, multipliers and other ALU elements

Different encodings generate different circuits

Transcription:

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences EECS5 J. Wawrzynek Spring 22 2/22/2. [2 pts] Short Answers. Midterm Exam I a) [2 pts] Choose between FPGAs and Custom ICs for each of the following design constraints: For smaller NRE cost For faster time to market For smaller high-volume manufacturing cost For higher performance choice FPGA FPGA Custom IC Custom IC b) [ pt] Moore s law says that the number of transistors on a chip double every 8 months. c) [ pt] What is the minimum number of transistors required to implement a 3-input AND gate in the complementary MOS style? 8 (Eight) d) [ pt] Rebuffering signals sent on long wires on ICs is an effective way to control power, delay, cost (choose one): delay e) [2 pt] Write a Boolean expression for the exclusive-or of three variables x, y, & z. x y z + x yz + xy z + xyz f) [2 pt] Write a Boolean expression for the carry-out signal of a one-bit adder with inputs a, b, and ci. ab + ac + bc g) [2 pt] Rewrite the Boolean expression (x+y)(x+z) as one with only 3 literals. x + yz h) [ pt] Write an expression for the total number of Boolean functions that exist for n input variables. 2 2n

2. [7 pts] a) Showing all steps, us algebraic manipulation to show that an AND/OR circuit has equivalent function to an NAND/NAND circuit. In particular show that: a b c d = a b c d LHS = ab + cd = ((ab + cd ) ) = ((ab).(cd) ) = RHS b) Also through algebraic manipulation, show how to implement an AND/OR circuit with NORs and (if needed) inverters. Draw your NOR circuit implementation of ab+cd. ab + cd = (a b + c d ) = (((a +b ) + (c +d ) ) ) 2

3. [5pts] We will define a binary encoder as a combinational logic circuit that takes a one-hot encoded word (only one bit is ever equal to ) and generates a binary number representing the bit position of the single bit equal to. We will number input bits from right to left starting at. The inputs bits are labeled as follows: [x4 x3 x2 x], and the outputs are labeled as [y2 y y]. If the input to the encoder was then the output will be 3 = 2. a) Write the canonical forms - both some of products (SOP) and products of sums (POS) for y, y, and y2. SOP: y 2 = x 4 x 3 x 2 x y = x 4 x 3 x 2 x + x 4 x 3 x 2 x y = x 4 x 3 x 2 x + x 4 x 3 x 2 x x 4 x 3 x 2 x y 2 y y All other inputs - - - POS: y 2 = (x 4+ x 3 + x 2+ x ) (x 4+ x 3+ x 2 + x ) (x 4+ x 3+ x 2+ x ) y = (x 4 + x 3+ x 2+ x ) (x 4+ x 3+ x 2+ x ) y = (x 4+ x 3 + x 2+ x ) (x 4+ x 3+ x 2+ x ) 3

b) Using the k-map technique derive the minimized SOP equations for the three bits of the output, y, y, and y2. X4X3 X2X Y2 = X4 Y = X3 + X2 Y = X2' X4' c) Using the k-map technique derive the minimized POS equations for the three bits of the output, y, y, and y2. Y2 = X4 Y = X' X4' Y = X2' X4' X4X3 X2X 4

4. [5 pts] Consider the circuit shown below. Write a simple Boolean expression that describes its function. b' a b b' F F = a b = a b + ab 5

5. [2pts] Consider the edge-triggered flip-flop circuit shown below. Assume that all the transistors in the flip-flop circuit are of the same size. Ignore delay due to wires. The propagation delay of the tri-state buffer and the inverter, respectively, can be expressed as: T TS-LH = 4 + 4F T TS-HL = 2 + 2F T INV-LH = 2 + 2F T INV-HL = + F delay for tri-state buffer low to high transition delay for tri-state buffer high to low transition delay for inverter low to high transition delay for inverter high to low transition where F is the fan-out in units of gate inputs (one n-type and one p-type transistor gate connection). The tri-state buffer delay is the same for both the in-to-out delay and the e-to-out delay. D clk clk x Q TS INV TS3 INV2 TS2 TS4 out clk clk in e' e in e out Tri-state Buffer Circuit V V t a) Write an expression for the clock to Q delay (T CQ ) of the flip-flop in terms of the fan-out of the flip-flop. T C->Q = T TS-LH + T inv-hl = 4 + 4F -> + + F ->+F = 4 + 4 + + + F = +F HL T C->Q = T TS-HL + T inv-lh = 2 + 2F -> + 2 +2 F ->+F = 2 + 2 + 2 + 2 +2F = 8+2F LH 6

b) Determine the setup time of the flip-flop (T SU ). Same as a) expect that fanout is known T S = +F -> = HL T S = 8+2F -> = LH c) The waveforms shown in the illustration represent the low-to- high and high-tolow transitions of a single inverter driving another single inverter. Using this as your guide, in the place provided, draw a sketch of the waveforms for both lowto-high and high-to-low transitions at node x. Assume that CLK=. V 7

6. [ pts] The circuit shown below includes three registers (labeled R, R, and ACC) implemented with positive-edge triggered flip-flops, an n-bit adder, and 2-to- multiplexors. S S R S2 + ACC R S3 a) The table below has one row for each clock cycle of interest. A clock cycle goes from the rising edge of the clock to the next rising edge. The table is filled in with the values of S, S, S3, and the register contents (in base ) as applied to the circuit by some external method. These values are applied after the rising edge of the clock (so that they can be ready for the next rising edge of the clock). Trace the operation of the circuit and fill in the empty squares in the table with the proper values as they would be appear at the end of each clock cycle. Cycle # S S S2 S3 R R ACC 4 2 - - - - 5 2 3 2 3 3 2 2 3 5 3 2 5 7 4 - - - - 7 5 2 8

b) Write an expression for the minimum achievable clock period with this circuit in terms of the mux delay (T MUX ), adder delay (T ADD ), flip-flop setup time (T SU ), and clock to Q delay (T C-Q). Assume perfect clock distribution. T clk >= T setup + T clk->q + max(t mux + T add, 3. T mux ) 9

7. [ pts] Consider the simple combinational logic circuit shown below. Inputs a and b are applied over three clock cycles as shown in the waveforms. The clock period is ns. a b x clk a b x a) Draw the waveform for node x in the place provided. Don t forget to account for gate delays. b) Write an expression for the total energy consumed by the output of the AND gate driving node x over these three clock cycles. c) Write an expression for the average power consumption by the output of the AND gate driving node x over these three clock cycles.

8. [8pts] Given the logic function shown in the circuit below and the configurable logic block (CLB), partition the circuit so that it can be implemented with a collection of CLBs. Indicate your answer by filling in the table: one row per CLB used: write in the name of the signal wire from the logic circuit that corresponds to the CLB input or output; for the configuration bit, s, write in a or. Try to use as few a number of CLBs as possible. You can extend the table or leave some rows blank. If you add any new signal wires, label the wires. X2 X X X2X X3 X4 X4 X5 W2 X X5 X6 Y X6 X2X Y.... X7 X8 X9 X W X X2 X7 X8 3 LUT W2 X2 X9 X 3 LUT

a b c d e f g s h X X 2 X 3 X 4 X 2 X 5 X 6 W X X 2 X 7 X 8 X 2 X 9 X W 2 X W φ φ W 2 φ φ h 2