EE 209 Spiral 1 Exam Solutions Name:

Similar documents
EE 209 Logic Cumulative Exam Name:

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

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

Time Allowed 3:00 hrs. April, pages

CHAPTER 2 BOOLEAN ALGEBRA

CPE100: Digital Logic Design I

Philadelphia University Faculty of Engineering

Chapter 2: Switching Algebra and Logic Circuits

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

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Written exam with solutions IE Digital Design Friday 21/

Lecture 2 Review on Digital Logic (Part 1)

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

Chapter 2 Combinational Logic Circuits

CPE100: Digital Logic Design I

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

Fundamentals of Boolean Algebra

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

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

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

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

Chapter 4. Sequential Logic Circuits

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

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

CS61c: Representations of Combinational Logic Circuits

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

Philadelphia University Student Name: Student Number:

Synchronous Sequential Logic


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

Outcomes. Spiral 1 / Unit 5. Logic Function Synthesis KARNAUGH MAPS. Karnaugh Maps

Spiral 1 / Unit 5. Karnaugh Maps

CHAPTER1: Digital Logic Circuits Combination Circuits

CHW 261: Logic Design

Outcomes. Spiral 1 / Unit 5. Logic Function Synthesis KARNAUGH MAPS. Karnaugh Maps

Chapter 2 Boolean Algebra and Logic Gates

CSC9R6 Computer Design. Practical Digital Logic

14.1. Unit 14. State Machine Design

Computer Science Final Examination Friday December 14 th 2001

University of Florida EEL 3701 Summer 2015 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Tuesday, 30 June 2015

EECS 270 Midterm 2 Exam Answer Key Winter 2017

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

Boolean Algebra. Boolean Variables, Functions. NOT operation. AND operation. AND operation (cont). OR operation

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

A B D 1 Y D 2 D 3. Truth table for 4 to 1 MUX: A B Y 0 0 D D D D 3

Clocked Synchronous State-machine Analysis

Unit 2 Boolean Algebra

Sequential Logic Circuits

Lecture 10: Synchronous Sequential Circuits Design

Combinational Logic. By : Ali Mustafa

Digital Logic Design - Chapter 5

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

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

CHAPTER III BOOLEAN ALGEBRA

Chapter 2 Combinational Logic Circuits

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

CHAPTER 3 BOOLEAN ALGEBRA

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

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

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

Review Getting the truth table

2 Application of Boolean Algebra Theorems (15 Points - graded for completion only)

CMPT-150-e1: Introduction to Computer Design Final Exam

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

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

6 Synchronous State Machine Design

DIGITAL LOGIC CIRCUITS

CHAPTER 7. Exercises 17/ / /2 2 0

Chapter 5 Synchronous Sequential Logic

Unit 2 Boolean Algebra

Design at the Register Transfer Level

Philadelphia University Student Name: Student Number:

CHAPTER III BOOLEAN ALGEBRA

Digital Circuit And Logic Design I. Lecture 3

Review for Final Exam

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

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

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

Sample Test Paper - I

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

Fundamentals of Digital Design

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

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

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

Please read carefully. Good luck & Go Gators!!!

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec 09 Counters Outline.

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

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS


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

Mealy & Moore Machines

Digital Logic Design - Chapter 4

Analysis and Design of Sequential Circuits: Examples

Digital Circuits ECS 371

Sequential Circuit Analysis

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Boolean Algebra, Gates and Circuits

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

Transcription:

EE 29 Spiral Exam Solutions Name:.) Answer the following questions as True or False a.) A 4-to- multiplexer requires at least 4 select lines: true / false b.) An 8-to- mux and no other logic can be used to implement any combinational logic function of 4 input variables: true / false c.) A 3-to-8 decoder along with (4) 8-input OR gates can be used to implement any combinational logic involving 3 input variables and 4 output variables: true / false TRUE d.) 3 separate 2-to- muxes can be used to build a single 4-to- mux: true / false TRUE e.) 5 flip-flops are required to implement a state machine with 5 states: true / false f.) In a state machine with Moore style outputs, a change in the external inputs can independently and immediately cause the outputs to change: true / false g.) What are the three primary design goals that we try to optimize in circuit design?.) Area or Size 2.) Speed or elay 3.) Power h.) Given a 5-to-32 decoder with inputs (A4, A3, A2, A, A), write out the logic equation for output 7 (i.e. O7)? 7 2 = A4 A3 A2 A A i.) A 2-to- mux would require a minimum of how many select bits? 5 bits

2.) State Machine esign (own Counter w/ Restart): esign a synchronous state machine circuit that implements a 2-bit down counter (i.e. counts,,,, ). The circuit has an external input, R (RESTART), that when should force the counter back to the state no matter what the current state is. As long as R stays, the counter should stay in the state. The circuit should also have one output Z. Z= when in the state and Z = otherwise. Let us use 4 states: S3 (initial state on reset) The count should be 2 = 3 S2 The count should be 2 = 2 S The count should be 2 = S The count should be 2 = a.) Complete the state diagram below by filling in all necessary transitions and the values of Z. On Reset (power on) R = R = R = S3 Z = R = S2 Z = S Z = S Z = R = R = b.) What is the minimum number of flip-flops required to implement this state machine? 2 Flip Flops c.) Complete the state transition/output table given below. (Note: We have provided the state assignment already). We have ordered the states in such a way to use gray code ordering, so take care when translating your state diagram to the transition/output table. Current State Next State Output R= R= State State ** State ** Z S S3 S3 S S S3 S3 S2 S3 S2 S S3

d.) Assume we will implement our circuit using Flip-Flops. Use the K-Maps below to find minimal expressions for,, and Z. Map Map Z Map R R 2 3 Z = = R + + = R + e.) Show how to implement the initial state (power-on/reset state) by connecting the PRE (PRESET) and CLR inputs of the FF s appropriately. Assume the signal RESET is available to you. You do not need to implement the next-state or output-function logic. RESET PRE CLR / RESET PRE CLR /

f.) Using your design above draw the waveform for the sequence of states that the machine will go through and what the output will be for the given input sequence of X. Remember you are using positive edge-triggered devices. RESET R Z

3. Find the simplest SOP form of the following logic equation. F [( A C) B ( A C) C] ABC F = ((AC )+B)((AC )+C) + ABC emorgan s = AC + BC + ABC T8 = AC + BC T9 Single-Variable Theorems (T) X + = X (T ) X = X (Identities) (T2) X + = (T2 ) X = (Null elements) (T3) X + X = X (T3 ) X X = X (Idempotency) (T4) (X ) = X (Involution) (T5) X + X = (T5 ) X X = (Complement) Two- and Three-Variable Theorems (T6) X +Y = Y + X (T6 ) X Y = Y X (Commutativity) (T7) (X+Y)+Z = X+(Y+Z) (T7 ) (X Y) Z = X (Y Z) (Associativity) (T8) X (Y+Z) = X Y + X Z (T8 ) X+(Y Z) = (X+Y) (X+Z) (istributivity) (T9) X + X Y = X (T9 ) X (X + Y) = X (Covering) (T) X Y + X Y = X (T ) (X+Y) (X+Y ) = X (Combining) (T) X Y+X Z+Y Z = X Y+X Z (T ) (X+Y) (X +Z) (Y+Z) = (X+Y) (X +Z) (Consensus) emorgan s Theorem (X Y) = X + Y (T6 ) (X +Y) = X Y (emorgan s)

4. esign a circuit takes a 2-bit, unsigned number A=(AA) and a -bit, unsigned number B=(B) as input and produces the output C = A B represented in the 2 s complement system. (25 a.) Complete the block diagram of this circuit by showing and labeling the inputs and outputs. Think how many output bits are required. (2 B A A C C C2 b.) Write out a truth table for this circuit. (8 A A B C2 C C c.) Find the minimal SOP expression for each bit of output by using the 3 K-Maps furnished below. Make sure to add the variable labels for the axes of each K-Map and add your gray code. Clearly indicate the minimal expressions you find for each output. (2 B AA B AA B AA C2 = A A B C = A A B + AA + AB C2 = AB + A B

5.) Complete the waveform for the given circuit -FF -FF F Y X X Y Starts at F