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

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

Written exam with solutions IE Digital Design Friday 21/

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

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

Philadelphia University Student Name: Student Number:

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #2 Nov 22, 2006

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

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:

Sample Test Paper - I

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

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Fundamentals of Digital Design

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

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

CHAPTER 7. Exercises 17/ / /2 2 0

EE 209 Spiral 1 Exam Solutions Name:

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

ECE 2300 Digital Logic & Computer Organization

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

Chapter 7 Logic Circuits

Lecture 2 Review on Digital Logic (Part 1)

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

EE 209 Logic Cumulative Exam Name:

CPE100: Digital Logic Design I

University of Toronto Faculty of Applied Science and Engineering Final Examination

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

CPE100: Digital Logic Design I

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

Time Allowed 3:00 hrs. April, pages

MODULAR CIRCUITS CHAPTER 7

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

DE58/DC58 LOGIC DESIGN DEC 2014

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

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

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

Combinational Logic Design Combinational Functions and Circuits

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

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

ECE 341. Lecture # 3

ELEN Electronique numérique

Asynchronous sequence circuits

Synchronous Sequential Circuit Design. Digital Computer Design

211: Computer Architecture Summer 2016

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

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

Lecture A: Logic Design and Gates

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

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

Review for Test 1 : Ch1 5

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

DIGITAL LOGIC CIRCUITS

Unit 2 Session - 6 Combinational Logic Circuits

UNIVERSITI TENAGA NASIONAL. College of Information Technology

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

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

Systems I: Computer Organization and Architecture

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Principles of Computer Architecture. Appendix B: Reduction of Digital Logic. Chapter Contents

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

Fundamentals of Boolean Algebra

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques

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

Combinational Logic. Course Instructor Mohammed Abdul kader

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

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

CHAPTER1: Digital Logic Circuits Combination Circuits

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

Cs302 Quiz for MID TERM Exam Solved

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

Combinational Logic. By : Ali Mustafa

Design of Sequential Circuits

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

DIGITAL LOGIC CIRCUITS

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

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

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

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

COMBINATIONAL LOGIC FUNCTIONS

Simplifying Logic Circuits with Karnaugh Maps

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

Synchronous Sequential Logic

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

Class Website:

Digital Logic Appendix A

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

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

FSM model for sequential circuits

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

Spiral 1 / Unit 5. Karnaugh Maps

Karnaugh Map & Boolean Expression Simplification

Design at the Register Transfer Level

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

INSTITUTEOFAERONAUTICALENGINEERING (Autonomous) Dundigal, Hyderabad

University of Minnesota Department of Electrical and Computer Engineering

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

Transcription:

Written exam for IE4/5 Digital Design with solutions Thursday 9/ 5 9.-. General Information Examiner: Ingo Sander. Teacher: William Sandqvist phone 8-794487 Exam text does not have to be returned when you hand in your writing. Aids: No aids are allowed! The exam consists of three parts with a total of 4 tasks, and a total of points: Part A (Analysis) containes ten short questions. Right answer will give you one point. Incorrect answer will give you zero points. The total number of points in Part A is points. To pass the Part A requires at least 6p, if fewer points we will not look at the rest of your exam. Part A (Methods) contains two method problems on a total of points. To pass the exam requires at least points from A + A, if fewer points we will not look at the rest of your exam. Part B (Design problems) contains two design problems of a total of points. Part B is corrected only if there are at least p from the exam A- Part. NOTE! At the end of the exam text there is a submission sheet for Part A, which shall be separated to be submitted together with the solutions for A and B. For a passing grade (E ) requires at least points on the exam. If exactly p from A(6p)+A(4p), (FX), completion to (E) will be offered. Grades are given as follows: 6 9 5 F E D C B A The result is expected to be announced before Thursday 9/ 5.

Part A: Analysis Only answers are needed in Part A. Write the answers on the submission sheet for Part A, which can be found at the end of the exam text.. p/p A function f(x, y, z) is described by the expression: f ( x, y, z) x y z x y z ( y z) Write down the function maxterms, eg. the function as a product of sums. f ( x, y, z) PoS?. Proposed solution f ( x, y, z) x y z x y z ( y z) ( x y z) xyz yz x y z x z y( z) ( x y z) only one maxterm is needed. p/p A four bit unsigned integer x (xxxx) is to be multiplicated by the constant 7. This is done by connecting the number x to a seven bit adder that is configured to do the operation y = 7x = (8x x) Draw how the adder is to be configured. Except the four bits in x there are also bits with the values and if needed. You will find a copy of the figure on the submission sheet. yz( x ). Proposed solution y 7 x (8 x x). p/p Two binary 6 bit two complement numbers are added. What will the result be expressed as a signed decimal number?. Proposed solution + = - 5 + = - + 5 = -7

4. p/p Given is a Karnaugh map for a function of four variables y = f(x, x, x, x). Write the function as a minimized ymin sum of products, SoP form. - in the map means don t care. 4. Proposed solution y x x x x xxx 5. p/p The figure bellow shows a circuit with two NAND gates and one NOR-gate. Simplify the function Y = f(a, B) as much as possible. 5. Proposed solution Y A A B B A A B B A A B B 6. p/p A logic function of three variables c b a is realized with multiplexors. Write the function on minimized PoS form (as a product of sums). f ( c, b, a) { PoS} min? 6. Proposed solution f ( c, b, a) { SoP} bc abc bc bc abc bc abc ( a a) bc abc abc abc f ( c, b, a) { PoS} min ( b c)( b c)( a c) or ( b c)( b c)( a b)

7. p/p Give an expression for the logical function realized by the CMOS circuit in the figure? Y = f(a,b,c) =? 7. Proposed solution PDN : Y acbc Y Y acbc CMOS Multiplexor 8. p/p Complete the timing diagram for the D-latch and D-flipflop by drawing signal Q for booth cases. Draw the figure so that it is clear what is causing the changes in the Q! 8. Proposed solution 4

9. p/p The figure shows a synchronous decade counter (QDQCQBQA 9). Mark (= draw in the figure on the answer sheet) the critical path that determines how fast the counter can count. Calculate the minimum time T [ns] between the clock pulses that still provides safe operation. Gates: tpdor = 4, tpdand = 5 [ns] 9. proposed solution Flip-flops: tsu =, th =, tpdq = [ns] T t pdq t psand t psand 5 5 4 9 ns t psor t su. p/p Below is the VHDL code for a : multiplexer. The multiplexer Karnaugh map is shown at right. Complete code so that it becomes a Hazard free MUX. The line of code is also available on the answer sheet. -- import std_logic from the IEEE library library IEEE; use IEEE.std_logic_64.all; -- this is the entity entity MUX is port ( a : in std_logic; b : in std_logic; c : in std_logic; Y : out std_logic); end entity MUX; -- this is the architecture architecture gates of MUX is begin Y <= (b AND c) OR (a AND NOT c) end architecture gates;. Proposed solution Y <= (b AND c) OR (a AND NOT c) OR (a AND b); 5

Part A: Methods Note! Part A will only be corrected if you have passed part A ( 6p). 5p One older instrument has a seven segment display with seven light bulbs, but it lacks an outlet for connection to a computer. One could therefore need a combinatorial circuit that connects to the bulbs and then converts 7-segment code to the usual BCD code (normal binary coded digits to 9) that is used by a variety of other equipments. a) (p) Set up the truth table for the ten BCD numbers. Black segment is in figure. ( x ) xxx BCD f ( abcdefg) b) (p) Inspect the truth table. You can discover that even if up to two of the segments are excluded as inputs, the relationship remains distinct between image segments and BCD digits. Find one/two segments that you can do without? Derive the new truth-table without this/these segments. c) (p) Draw the karnaugh maps for the four BCD-code bits and derive the minimized expressions for x x x x in SoP-form. Segment combinations that never occurs should be exploited as don t care. (With the excluded segments in the truth table, the number of variables will be manageable). d) (p) Choose yourself one of the expressions x x x x and realize it using only input NAND gates. (No inverted variables are available). Proposed solution abcdefg 6 48 9 5 4 9 5 95 6 7 7 8 9 x xxx Segment a is necessary distinguish between and 7. Segment e is needed to distinguish between 8 from 9 and 5 from 6. Segments c and d could be excluded without the encoding becoming ambiguous. See the figure. This can be used to simplify the problem down to 5 variables. 8 9 5 9 4 7 abefg 4 5 6 7 8 9 x xxx 6

x abfg x b a f g af x a f be x f g ae Example. Bit x :. 5p The figure shows a "self-correcting ring counter" counting the "one hot" sequence qqqq,,,. a) (p) Analyze the sequential circuits in the figure and draw the full state diagram and the full state table. If the counter would start in any other state than any of the four desired "one hot" states, how many clock pulses are required, in the worst case, before the counter has "corrected" this and ends up in the correct sequence? 7

b) (p) You can also get the same "one-hot" sequence from a Moore machine with four states, see the state diagram to the right. Derive this sequential circuit with D-flip-flops and optional gates. Use the state encoding from the state diagram. Draw the schematic of the circuit.. Proposed solution q q q q q q q q Q Q q q q q Q Q q q q q q Inspection of table gives: Q Q Q Q Decoding: A Q Q C Q Q q q q qqqd d q q q After at most three clock pulses the one hot sequency will be reached! B Q Q D Q Q 8

Part B. Design Problems Note! Part B will only be corrected if you have passed part A+A ( p).. 4p Sequence Detector. Different inputs three in a row. You will design a synchronous sequential circuit, in the form of a positive edge-triggered Moore machine with D flip-flops. The input signals a and b are synchronized with the clock pulses C. The output signal z will be when a and b are different in at least three consecutive clock pulse intervals. For other sequences z must be equal to. a) (p) Derive the circuit state table and draw the state diagram. b) (p) Use the Gray code to encode the states and derive the encoded state table. Derive the minimized expressions for next state and for the output. c) (p) Draw the next state decoder circuit, there is only access to AND, OR, and XOR gates.. Proposed solution z q q 4. 6p Inside pulse detector. An asynchronous sequential circuit "Compares" pulses received on two inputs a and b. The pulse at the b input is always a little shorter than the pulse of a, and there will be at most one b-pulse during the interval a. b-pulses will arrive randomly relative to the a-pulse. (There are no exact simultaneous events). 9

Sequence circuit must indicate the case when b is started (becomes one) after a has started (become one), and b has finished (become ) before a finish (become ). The output z will then be = from b's trailing edge to a's trailing edge. z must be for all other cases. See the figure time diagram illustrating this case. a) First, set up a proper flow table for the sequence circuit. You don t need from the beginning to care about minimizing the number of states. All positions in the table that can not occur should be treated as don t care. b) Simplify the state diagram by combining compatible state. (Hint. Various solutions are possible, there is among them a solution with four states). c) Do a suitable state assignement with an exitation table which gives a circuit that is free of critical race. (Hint. Various solutions are possible, there is a solution with two state variables exploiting unstable transition states and uncritical race). You should also derive hazard free expressions for the next state and an expression for output, and draw the circuits with the use of optional gates.. Proposed solution derive state chart step by step - can not occur, double change in input * has not occurred in any of the possible sequences, then will not occur

Remove intersecting lines by inserting transition states to avoid hamming distance. z y y y b Hazard cover Good Luck!

Submission sheet for Part A Sheet (remove and hand in together with your answers for part A and part B ) Last name: Given name: Personal code: Sheet: Write down your answers for the questions from Part A ( to ) Question Answer f ( x, y, z) PoS? y = 7x = (8x x) Signed decimal?? = f 5 Y f ( A, B)? 4 x, x, x, x ) SoP? ( min 6 f ( c, b, a) { PoS} min? 7 Y = f(a,b,c) =? 8 9 T [ns] = Y <= (b AND c) OR (a AND NOT c) This table is completed by the examiner!! Part A () Part A () Part B () Total () Poäng 4 Sum Grade