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

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

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

Fundamentals of Digital Design

Synchronous Sequential Circuit Design. Digital Computer Design

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

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

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Sample Test Paper - I

Written exam with solutions IE Digital Design Friday 21/

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

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

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Philadelphia University Student Name: Student Number:

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

Analysis of clocked sequential networks

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

Finite State Machine (FSM)

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

Gates and Flip-Flops

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

Synchronous Sequential Logic

Combinational Logic. By : Ali Mustafa

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

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

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

Fundamentals of Boolean Algebra

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

Philadelphia University Student Name: Student Number:

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

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Different encodings generate different circuits

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

University of Minnesota Department of Electrical and Computer Engineering

Design of Sequential Circuits

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

EE 209 Logic Cumulative Exam Name:

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

Digital Logic Appendix A

Show that the dual of the exclusive-or is equal to its compliment. 7

CPE/EE 422/522. Chapter 1 - Review of Logic Design Fundamentals. Dr. Rhonda Kay Gaede UAH. 1.1 Combinational Logic

(Boolean Algebra, combinational circuits) (Binary Codes and -arithmetics)

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

CPE100: Digital Logic Design I

Mealy & Moore Machines

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

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

Systems I: Computer Organization and Architecture

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

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

Cs302 Quiz for MID TERM Exam Solved

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

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

ELCT201: DIGITAL LOGIC DESIGN

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

Fundamentals of Computer Systems

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Chapter 7. Synchronous Sequential Networks. Excitation for

Chapter 7 Logic Circuits

DIGITAL LOGIC CIRCUITS


Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker


CHAPTER 7. Exercises 17/ / /2 2 0

Fundamentals of Computer Systems

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

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

ELEN Electronique numérique

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

Lecture 2 Review on Digital Logic (Part 1)

Computer Science Final Examination Friday December 14 th 2001

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

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

Topic 8: Sequential Circuits

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

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

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

EGR224 F 18 Assignment #4

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

ECE 2300 Digital Logic & Computer Organization

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

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

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

Digital Design. Sequential Logic

EECS150 - Digital Design Lecture 23 - FSMs & Counters

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

FSM model for sequential circuits

Computer organization

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

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Sequential vs. Combinational

CprE 281: Digital Logic

CHW 261: Logic Design

Synchronous Sequential Circuit

Adders allow computers to add numbers 2-bit ripple-carry adder

Transcription:

UN IVERSIT Y O F CA LIFO RNI A AT BERKELEY BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO SAN TA BARBA RA S AN TA CRUZ De p a r tm en t of Ele ctr i ca l En gin e e rin g a n d Com p u t e r Scien c es Final Examination Group 1 Room 1 Physical Science, 8am Friday 5/13 (Open Katz only, Calculators OK, 3 hours) CS 1 5 0 - Spr i n g 1 99 4 Pr o f. A. R. Ne wt o n Include all final answers in locations indicated on these pages. Use space provided for all working. If necessary, attach additional sheets by staple at the end. BE SURE TO WRITE YOUR NAME ON EVERY SHEET. (1) (16pts) Consider the following logic functions expressed in standard sum-of-products form: f 1 (A,B,C,D) = Σm(2,3,5,7,9,11,14,15) + Σd(1,10) f 2 (A,B,C,D) = Σm(2,3,7,9,11,15) (a) Construct a Karnaugh Map for each function and write the Boolean expression for each function as a minimum sum-of-products realization (minimum number of (gates + gate inputs.)) Show the product terms you have chosen to implement each function on the maps. 1(a) 6pts f 1 (A,B,C,D) = f 2 (A,B,C,D) = (b) If the two functions are to be implemented together (i.e. as a single, two-output, four-input function), construct a Karnaugh Map for each output and show the product terms that represent the minimum number of (gates + gate inputs) for the combined, two-output function on the maps. Write the Boolean expression for each output. 1(b) 6pts f 1 (A,B,C,D) = f 2 (A,B,C,D) = Final Group 1 Page 1 of 12 CS 150 - Sp. 94

(c) Considering the first function f 1 (A,B,C, D) = Sm(2,3,5,7,9,11,14,15) + Sd(1,10) only, draw a schematic diagram for f 1 that uses the minimum number of logic gates. Use only AND, OR, and inverter gates and assume input complements are not available (i.e. an inverter counts as a gate.) 1(c) 4pts Additional space for Problem 1 CS 150 - Sp. 94 Page 2 of 12 Final Group 1

(2) (16pts) Consider the logic function shown below in Karnaugh Map form. In all parts to this question, assume input complements are not available (i.e. an inverter counts as a gate.) f(a,b,c,d) = AB CD 00 01 11 10 00 1 0 1 0 01 0 1 0 1 11 1 1 1 0 10 0 0 0 1 (a) Derive an implementation of this function using a single 8-input, 3-control-line multiplexer and a minimum number of logic gates. 2(a) (4pts) (b) Derive an implementation of the function using a single 4-input, 2-control-line multiplexer and a minimum number of two-input XOR gates and inverters only. 2(b) (4pts) Final Group 1 Page 3 of 12 CS 150 - Sp. 94

CS 150 - Sp. 94 Page 4 of 12 Final Group 1

(c) Implement the function using a minimum number of simple logic gates (AND, OR, NAND, NOR, XOR, XNOR, and inverters only.) 2(c) (4pts) (d) Construct the PLA-format table representation for the function in AND-OR form. How many product terms would an AND-OR PLA implementation require? 2(d) (2pts) Product terms: (e) If the function were implemented using a ROM, how many ROM storage locations would be required? How many address inputs would the ROM have? 2(e) (2pts) Storage Locations: Address inputs: Additional space for Problem 2 Final Group 1 Page 5 of 12 CS 150 - Sp. 94

(3) (19pts) Consider the following state-transition graph which is to be implemented as a clocked, synchronous sequential circuit. If State d is the reset state and the states are encoded as State a = 01, State b = 11, State c = 10, and State d = 00: b 1/1 a 1/0 0/0 d 0/0 0/0 Input/Output = X/Z 1/1 c */1 (a) Construct a state transition table for the machine in terms of input X and present-state (y 1 y 2 ) for output Z and next-state (Y 1 Y 2.) 3(a) (4pts) (b) Use Karnaugh map(s) to obtain the reduced next-state and output equations for the machine. Show your Karnaugh map(s.) 3(b) (6pts) CS 150 - Sp. 94 Page 6 of 12 Final Group 1

(c) Use the reduced set of equations to obtain a circuit diagram for an implementation of the machine. Use the minimum number of logic gates (AND, OR, NAND, NOR, XOR, XNOR, or inverters) and positive-edge-triggered toggle (T) flip-flops only. 3(c) (6pts) (c) Using your next-state table from Part 3(a) above, construct an implication table and check for state equivalence. List the equivalent states. Enter the word NONE below if you cannot find any equivalent states from your table. 3(d) (4pts) Equivalent States: Additional space for Problem 3 Final Group 1 Page 7 of 12 CS 150 - Sp. 94

(4) (14pts) A clocked, synchronous sequential circuit is to be designed as follows: The circuit is to have a single input, X, that is used to control two outputs Z 1 and Z 2. While X is 1, (Z 1,Z 2 ) = (00). When X becomes 0, the outputs (Z 1,Z 2 ) begin the sequence (00, 01, 11, 10). If they reach the value 10 they hold that value until the input changes to 1 again. (a) Construct a state transition graph (STG) for the machine in Mealy form. 3(a) (4pts) (b) Convert your STG to Moore form and make a state assignment that minimizes the amount of output logic needed for a Moore implementation of the machine. 3(b) (4pts) CS 150 - Sp. 94 Page 8 of 12 Final Group 1

(c) Determine the next-state and output equations for your machine and implement the circuit using positive edge-triggered D flip-flops and a minimum number of two-input NAND gates only. Assume X comes from the output of another flip-flop and so the complement of X is also available. 3(b) (6pts) Additional space for Problem 4 Final Group 1 Page 9 of 12 CS 150 - Sp. 94

(5) (18pts) (a) What is a fundamental-mode asynchronous circuit? Give a concise definition. 5(a) (4pts) Consider the state diagram for the asynchronous sequential machine shown below. 0/0 1/1 1/0 a 0/0 b d 0/0 1/0 1/0 c 0/0 (b) Draw a primitive flow table for the machine, indicating all stable states and outputs. 5(b) (4pts) (c) With the code for State a given as all 0 s derive a race-free state assignment for the machine using a minimum number of internal state variables. Show all working. 5(c) (4pts) a = CS 150 - Sp. 94 b = c = d = Page 10 of 12 Final Group 1

(d) Provide a schematic diagram for the machine using a minimum number of logic gates (AND, OR, NAND, NOR, XOR, XNOR, or inverters). Indicate your state variables as labels on buffer symbols. Ensure that the output logic cannot produce glitches and state why that is so. 3(b) (6pts) Additional space for Problem 5 Final Group 1 Page 11 of 12 CS 150 - Sp. 94

(6) (17pts) (a) Draw the block diagram for a sequential, 32-bit full-adder that uses a single, one-bit full adder and two 32-bit serial shift registers to perform addition of two unsigned, 32-bit binary numbers. Explain how the adder operates and how overflow would be detected if it occurred. 6(a) (6pts) (b) With the addition of a single add/subtract input and logic gates, modify your design to perform addition or subtraction of two unsigned binary numbers. 6(b) (4pts) CS 150 - Sp. 94 Page 12 of 12 Final Group 1

(c) Derive a block diagram for a bit-serial sequential circuit that can be used for comparing the relative magnitudes of two 32-bit numbers, A<31:0> and B<31:0>, stored in sign-magnitude form, where bit 31 is the sign bit. Do not use subtraction. Describe how your circuit operates. 6(c) (7pts) Additional space for Problem 6 Final Group 1 Page 13 of 12 CS 150 - Sp. 94