Quiz 2 Room 10 Evans Hall, 2:10pm Tuesday April 2 (Open Katz only, Calculators OK, 1hr 20mins)

Similar documents
Quiz 2 Solutions Room 10 Evans Hall, 2:10pm Tuesday April 2 (Open Katz only, Calculators OK, 1hr 20mins)

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

Combinational Logic. By : Ali Mustafa

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

Cs302 Quiz for MID TERM Exam Solved

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

CS1800 Discrete Structures Final Version A

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

Numbers and Arithmetic

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

Chapter 3 Combinational Logic Design

Sample Test Paper - I

ECE20B Final Exam, 200 Point Exam Closed Book, Closed Notes, Calculators Not Allowed June 12th, Name

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

CPE100: Digital Logic Design I

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

COMPUTER SCIENCE TRIPOS

COMBINATIONAL LOGIC FUNCTIONS

Numbers and Arithmetic

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

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

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

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

ENGIN 112 Intro to Electrical and Computer Engineering

Practice Final Exam Solutions

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

University of Toronto Faculty of Applied Science and Engineering Final Examination

CprE 281: Digital Logic

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Digital Logic Design - Chapter 4

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

CSC9R6 Computer Design. Practical Digital Logic

Written exam with solutions IE Digital Design Friday 21/

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

Fundamentals of Digital Design

ECE 2300 Digital Logic & Computer Organization

Quality of Minimal Sets of Prime Implicants of Boolean Functions

DE58/DC58 LOGIC DESIGN DEC 2014

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

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

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

UNSIGNED BINARY NUMBERS DIGITAL ELECTRONICS SYSTEM DESIGN WHAT ABOUT NEGATIVE NUMBERS? BINARY ADDITION 11/9/2018

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

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

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

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

Synchronous Sequential Circuit

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Lecture 2 Review on Digital Logic (Part 1)

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

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

Digital Circuit And Logic Design I. Lecture 4

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

CprE 281: Digital Logic

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

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

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

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

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

Department of Electrical and Computer Engineering University of Wisconsin - Madison. ECE/CS 352 Digital System Fundamentals

Systems I: Computer Organization and Architecture

Combinational Logic. Review of Combinational Logic 1

Boolean Algebra & Logic Gates. By : Ali Mustafa

Digital Logic (2) Boolean Algebra

Boolean Logic Continued Prof. James L. Frankel Harvard University

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

211: Computer Architecture Summer 2016

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

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

DO NOT COPY DO NOT COPY

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

CPSC 121 Midterm 1 Friday February 5th, 2016

CPE100: Digital Logic Design I

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

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

Logic Design I (17.341) Fall Lecture Outline

ELCT201: DIGITAL LOGIC DESIGN

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

SAMPLE EXAMINATION PAPER

ELEN Electronique numérique

CS61c: Representations of Combinational Logic Circuits

CHAPTER1: Digital Logic Circuits Combination Circuits

University of Minnesota Department of Electrical and Computer Engineering

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

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

VLSI Arithmetic. Lecture 9: Carry-Save and Multi-Operand Addition. Prof. Vojin G. Oklobdzija University of California

Review for Test 1 : Ch1 5

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST

Floating Point Representation and Digital Logic. Lecture 11 CS301

Circuits & Boolean algebra.

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

Chapter 7 Logic Circuits

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Tree and Array Multipliers Ivor Page 1

Digital Logic Design - Chapter 5

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

ECE/Comp Sci 352 Digital System Fundamentals Quiz # 1 Solutions

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

Chapter 9 Asynchronous Sequential Logic

CSE 20 DISCRETE MATH. Fall

Transcription:

Your Name: NIVERSITY OF CALIFORNIA AT BERKELEY RKELEY DAVIS IRVINE LOS ANGELES RIVERSIDE SAN DIEGO SAN FRANCISCO Department of Electrical Engineering and Computer Sciences SANTA BARBARA SANTA CRUZ CS 150 - Spring 1996 Prof. A. R. Newton (1) /20 (2) /20 (3) /20 (4) /20 TOTAL /80 Quiz 2 Room 10 Evans Hall, 2:10pm Tuesday April 2 (Open Katz only, Calculators OK, 1hr 20mins) Include all final answers in locations indicated. Use space provided for all working and state all assumptions. If necessary attach additional sheets by staple at the end. BE SURE TO WRITE YOUR NAME ON EVERY SHEET. (1) You are to design a four-input priority encoder, shown below, such that when two inputs, D i and D j, are high simultaneously, D i has priority over D j when i>j. The encoder produces a binary output code (f 1 f 0 ) corresponding to the input that has the highest priority. The circuit should also have an enable input, E, such that (f 1 f 0 ) are set to (00) when E is low, and an output P which indicates the presence of data (1 s) on any of the inputs. inputs D 0 D 1 D 2 D 3 E f0 f1 P priority output input present Enable (a) Show a truth-table for the priority encoder, in terms of D 0 to D 3 only, and derive the logic equations for f 0 and f 1. Express the logic equations using a minimum number of literals. 1(a) (10pts) f 0 = f 1 = Quiz 2 Page 1 of 8 CS 150 - Sp. 96

(b) Draw a schematic diagram for the entire priority encoder, including output P and input E in the schematic, using a minimum number of NAND, OR, and inverter gates only. Assume complements are not available. 1(b) (10pts) Additional space for Problem1 CS 150 - Sp. 96 Page 2 of 8 Quiz 2

Your Name: (2) (a) For the following state table, where x is the input and Z is the output: PS NS Z x=0 x=1 A B C 0 B A C 0 C D C 0 D D E 1 E A F 0 F B G 0 G A E 0 (i) Use an implication table to identify and eliminate all redundant states. Show your final implication table and the state table with no redundancy. (ii) Show a state graph for the final irredundant machine. Include all information on the graph, including inputs and outputs. 2(a) (10pts) Quiz 2 Page 3 of 8 CS 150 - Sp. 96

2(b) Considering the definition of setup time for a latch, is it possible for the setup time for a latch to have a negative value? What would that mean? Under what conditions can the setup time for a latch be negative? State all the conditions you can think of and illustrate with an example, where possible. 2(b) (10pts) CS 150 - Sp. 96 Page 4 of 8 Quiz 2

Your Name: (3) This problem concerns a base-(-2) (base-(minus-two)) adder. In CS150, we only considered number systems with positive bases (in particular, the binary, or base-2, system). For example, in a base-3 system, the number ABCD 3 is equal to: ABCD 3 = A*3 3 + B*3 2 + C*3 1 + D*3 0. So for a base-(-2) system, EFGH -2 would be computed using: EFGH -2 = E*(-2) 3 + F*(-2) 2 + G*(-2) 1 + H*(-2) 0 (a) Convert the following decimal numbers to base-(-2). Use as many bits as you need. 3(a) (8pts) 5 10 = -2 6 10 = -2-7 10 = -2 11 10 = -2 (b) For the purpose of this problem, we define a number system as contiguous if, given any two integer values m and n which can be represented in the number system, there exists no integer value x, with m< x < n, that cannot be represented in the system. For example, a 1-bit decimal system is contiguous. It can represent the counting numbers 0-9, and there are no numbers in between 0 and 9 which cannot be represented using one decimal digit. The binary number system (base 2) is also contiguous. (i) Is a four-bit base-(-2) system contiguous? (ii) What are the maximum and minimum values (in decimal) that can be represented by a four-bit base-(-2) system? (iii) Is an n-bit base-(-2) system contiguous, where n is any positive integer? Justify your answer. 3(b) (6pts) (i) (ii) Maximum 10 = Minimum 10 = (iii) Quiz 2 Page 5 of 8 CS 150 - Sp. 96

(c) Add the following numbers in base-(-2). Pay close attention to the carry-in and carry-out aspects because they are important in Part (d) 3(c) (2pts) 001110-2 + 001111-2 = -2 (d) Draw a truth table for a one-bit bit slice of a base-(-2) adder. Assume one bit of carry-in. You must determine the specification for the carry-out. 3(d) (4pts) Additional space for Problem 3 CS 150 - Sp. 96 Page 6 of 8 Quiz 2

Your Name: (4) (a) For the two-input primitive flow table shown on the right, obtain the merged flow table by merging states to produce a table with the minimum possible number of rows. Show your merger diagram (graph). Assume all outputs are the same value. Do not attempt to reduce the table by eliminating equivalent states first; all states must appear in your final solution. x1 x2 00 01 11 10 1 5 6 2 1 - - 2-5 3 2 4 5 3 - - 5 6 2 4 5 - - 4. (a) (10pts) Merger diagram and minimum-row merged flow table Additional space for Problem 4(a) Quiz 2 Page 7 of 8 CS 150 - Sp. 96

(4) (b) Obtain a race-free state assignment for the merged flow table shown on the right (not related to part 4(a)) using as few additional states as possible. List all adjacency constraints. Show all steps and your final state-codes. (Hint: three state variables are required.) x1 x2 00 01 11 10 1 2 3 4 7 6 3 5 7 6 8 4 7 2 3 5 4. (b) (10pts) Additional space for Problem 4(b) CS 150 - Sp. 96 Page 8 of 8 Quiz 2