Written exam with solutions IE Digital Design Friday 21/

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

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

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

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

Fundamentals of Digital Design

Philadelphia University Student Name: Student Number:

CPE100: Digital Logic Design I

Sample Test Paper - I

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

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

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

EE 209 Spiral 1 Exam Solutions Name:

University of Toronto Faculty of Applied Science and Engineering Final Examination

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits


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

Lecture 7: Logic design. Combinational logic circuits

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

Fundamentals of Boolean Algebra

CHAPTER 7. Exercises 17/ / /2 2 0

ECE 2300 Digital Logic & Computer Organization

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

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

Lecture 2 Review on Digital Logic (Part 1)

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

DE58/DC58 LOGIC DESIGN DEC 2014

Digital Logic Appendix A

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

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

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

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

ECE 341. Lecture # 3

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

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

EE 209 Logic Cumulative Exam Name:

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

Philadelphia University Faculty of Engineering

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

Cs302 Quiz for MID TERM Exam Solved

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

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

DIGITAL 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

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

CPE100: Digital Logic Design I

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

Philadelphia University Student Name: Student Number:

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

UNIVERSITI TENAGA NASIONAL. College of Information Technology

CHAPTER1: Digital Logic Circuits Combination Circuits

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

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Practice Final Exam Solutions

Design of Sequential Circuits

Vidyalankar. S.E. Sem. III [EXTC] Digital System Design. Q.1 Solve following : [20] Q.1(a) Explain the following decimals in gray code form

Computer Science Final Examination Friday December 14 th 2001

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

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

Fundamentals of Computer Systems

211: Computer Architecture Summer 2016

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

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

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

ELEN Electronique numérique

Fundamentals of Computer Systems

EECS 270 Midterm 2 Exam Answer Key Winter 2017

Time Allowed 3:00 hrs. April, pages

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

Review for Final Exam

Combinational Logic. By : Ali Mustafa

Digital Logic Design - Chapter 4

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

Chapter 7 Logic Circuits

Synchronous Sequential Logic

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

Review for Test 1 : Ch1 5

Preparation of Examination Questions and Exercises: Solutions

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

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

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

Synchronous Sequential Circuit Design. Digital Computer Design

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

Digital Electronics Final Examination. Part A

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

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

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

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

Synchronous Sequential Circuit

CHW 261: Logic Design

Design at the Register Transfer Level

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

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

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

CSC9R6 Computer Design. Practical Digital Logic

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

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

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

Different encodings generate different circuits

Transcription:

Written exam with solutions IE204-5 Digital Design Friday 2/0 206 09.00-3.00 General Information Examiner: Ingo Sander. Teacher: Kista, William Sandvist tel 08-7904487, Elena Dubrova phone 08-790 4 4 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 30 points: Part A (Analysis) containes ten short uestions. Right answer will give you one point. Incorrect answer will give you zero points. The total number of points in Part A is 0 points. To pass the Part A reuires at least 6p, if you get fewer points, we will not look at the rest of your exam. Part A2 (Methods) contains two methodology-related problems with a total of 0 points. To pass the exam reuires at least points from A A2, if you get fewer points, we will not look at the rest of your exam. Part B (Design problems) contains two design problems with total of 0 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 should be separated and submitted together with the solutions for A2 and B. A passing grade (E ) reuires at least points on the exam. If you get exactly 0p from A(6p)A2(4p), (FX), completion to (E) will be offered. Grades are given as follows: 0 6 9 22 25 F E D C B A The result is expected to be announced before Friday / 206.

Part A: Analysis Only final answers are reuired in Part A. Write these answers on the submission sheet for Part A, which can be found at the end of the exam text.. p/0p A function f(x, y, z) is described by the expression: f ( x, y, z) = ( z x z x) ( yx yx) Write down a minimized two-level sum-of-products (SoP) form for this function.. { }? f ( x, y, z ) = SoP = min. Proposed solution. f ( x, y, z) = ( z x z x) ( yx yx) = ( z x z x) y( x x) = = zx y zx y zx y zx y = y 2. p/0p A four-bit unsigned integer x = (x 3 x 2 x x 0 ) is connected to a 6-bit adder in the way that it is multiplied with a constant K, so that the result is s = K x (see the diagram below to figure out the value of K). If the input x = () 2 is applied to the diagram below, then what will the number s =? Answer with s as a binary number. 2. Proposed solution. s = x4 x = 5 x 5 5 = 75 000 2 2

3. p/0p A four bit adder adds two 4 bit signed numbers represented as 2 s complements. If x = 00 and y = 0, then what will be the four bit sum s computed by the adder? Answer with a signed decimal number. ±s 0 3. Proposed solution. x = 00 y = 0 = 00 overflow! The absolute value is the corresponding positive number 00 = 000 s 0 = -4 4. p/0p Consider a Karnaugh map for a function of four variables y = f(a, b. c, d) given below. Write the function in a minimized y min product-of-sums (PoS) form. - in the map means don t care. 4. Proposed solution. y = b( c d)( b d)( a b d) 5. p/0p The figure bellow shows a circuit with four NOR gates. Simplify the function Q = f( A, B ) as much as possible and write down the resulting expression for it. 5. Proposed solution. Q = A A B B = A B = { dm} = A B NAND 3

6. p/0p What logic function does this multiplexor circuit represent? f ( b, a) =? 6. Proposed solution. f ( b, a) = b a b a XNOR 7. p/0p Give an expression for the logic function realized by the CMOS circuit in the figure. Answer with a sum of products (SoP) form. f(a, B, C) =? 7. Proposed solution. 8. p/0p A synchronous counter with T flip-flops in the figure starts in the state Q Q 0 = 00. Give its seuence of states for the following four clock pulses. 4

8. Proposed solution. Q 0 toggles each clock pulse, Q toggles when Q 0 =. Q Q : 00 0 0 00 so, it acts as an ordinary binary counter. 0 9. p/0p For the shift register with D flip-flops in this figure setup time is t su = 4 ns, delay time for the flip-flop outputs is t pdq = 3 ns and the hold time is t h = 2 ns. How long needs to be the time between the clock pulses, T CP >?, for the counter function to be correct? 9. Proposed solution. The clock period is determined by data path from Q 0 to Q. T CP > t pdq0 t sud = 34 = 7 ns. Hold time is the time the data input must be stable after the clock edge. This is no problem because Q 0 can change first after t pdq = 3 ns while the demand on stable signal after clock edge is t h > 2 ns. 0. p/0p ConsiderThe following the VHDL code for a 2-input multiplexer given below. One line of the code in the circuit architecture is missing. Write the missing code line on the submission sheet. Variabels are: d_in0, d_in, d_out, s. Useful keywords are: and, or, not. entity MUX2_ is port( d_in0, d_in, s : in std_logic; d_out : out std_logic); end entity MUX2_;; architecture behave of MUX2_ is begin d_out <= Ooooops! What should be here? end architecture behave; 0. Proposed solution. architecture behave of MUX2_ is begin d_out <= (not s and d_in0) or (s and d_in); end architecture behave; 5

Part A2: Methods Note! Part A2 will only be corrected if you have passed part A ( 6p). 4p Japanese train signals are more complex than ours, but it is needed because Japan has some of the world's fastest train. The signals allow speed in six steps from stand still up to full speed. Stop (R) Restricted Speed (Y over Y) Caution (Y) Reduced Speed (Y over G) Less reduced Speed (Y over G flashing) Clear (G) Design a signal decoder, a combinatorial logic network, which uses a three-bit mode signal M (m 2 m m 0 ) to generate output signals controlling four colored lights ( y r y 0 g). Mode 0, m 2 m m 0 000, will mean that the signal off. Mode 6, m 2 m m 0 00 0 (in binary), select signals for incrementally increasing allowable speed according to the standard shown in the figure above. Flashing signal means that y and g should blink in an alternating manner, controlled by the pulse x from a pulse generator. a) (p) Set up the relationship between the output signals y r y 0 g and the input signals x m 2 m m 0 as a table (as a truth table ). b) (2p) Set up Karnaugh maps for the four lamp signals and produce the minimized expressions y r y 0 g in the SoP form. Make use of don t cares. c) (p) Draw the schematic diagram for one of the four signal decoder outputs (select the most complex network) using the optional gates of your choice.. Proposed solution. a) K-map setup: 0 3 2 4 5 7 6 2 3 5 4 8 9 0 b) y = xm m m m m m m 2 0 2 0 2 m0 2 mm0 0 2m = m2 m0 xm2 r = m y = m g 6

2. 6p A modulo-6 synchronous counter is implementing the seuence 2 3 : 000, 00, 0, 0, 0, 00. a) (p) Derive the State table. The two states and 00 which are not included in the seuence can be treated as don t cares, but they should lead to the modulo-6 seuence (in other words their next state should be one of the 6 states in the seuence above). b) (p) Derive minimized expressions for next state = =?? c) (3p) The Synchronous Counter is constructed with three D flip-flops as in the figure. Implement the functions: with a 4: multiplexer. 2 with AND-OR gates 3 with only NAND gates By assigning the inputs in the figure on the right, d) (p) to which state in the modulo-6 seuence will and 00 go to in your implementation?? 2 3 = 7

2. Proposed solution. = 2 23 = 2 2 2 3 3 = 2 3 ( ) = (00) = 2 ( ) = 0 2 (00) = 3 ( ) = 3 (00) = ( ) (0) (00) (0) 0 8

Part B. Design Problems Note! Part B will only be corrected if you have passed part AA2 ( p). 3. 6p Synchronous seuential circuit. Seuence detector. ( To solve this independent task may well prove to be a good use of time for solving the rest of the task! ) a) (2p) Minimize the states in the state diagram on the right (a,b,c,d,e,f,g,h). Then draw the minimal state diagram. b) (4p) A seuence detector is expected to detect each occurrence of a sub-seuence... 0... within a seuence of bits received by the input w. The seuence detector output signal z should be in a clock pulse interval immediately after the sub-seuence 0 has occurred (see the figure). Implement the seuence detector circuit as a Moore machine with positive edge-triggered D flip-flops with reset inputs. Derive the circuit state table and draw its state diagram. Use binary code to encode the states and derive the encoded state table. Assumed that no can be received directly after Reset. Derive the minimized expressions for next state and for the output. 2 0 = f ( 20, w) 2 = f ( 20, w) = f ( 20, w) 0 = f ( 20, w) z = f (, w) 2 0 3. Proposed solution. a) (abcdefg)(h) w=0: a (abcdefg) b (abcdefg) c (abcdefg) d (abcdefg) e (abcdefg) f (abcdefg) g (abcdefg) w=: a (abcdefg) b (abcdefg) c (abcdefg) d (abcdefg) e (abcdefg) f (h) g (h) (abcde)(fg)(h) w=0: a (abcde) b (abcde) c (abcde) d (fg) e (fg) w=: a (abcde) b (abcde) c (abcde) d (abcde) e (abcde) (abc)(de)(fg)(h) w=0: a (abc) b (abc) c (abc) w=: a (abc) b (de) c (abc) (ac)(b)(de)(fg)(h) 9

b) w 2= 0 = w w 0 2 0 0 = 0w 2w 0 4. 4p Single pulse generator. Design an asynchronous seuential circuit which has an input w and an input c. A seuence of pulses are arriving at the input w. Each time the input w is, a complete pulse of the seuence c should appear at the output y, as soon as possible. A pulse w is always longer than a pulse c (see figure on the right). 0

a) Set up a proper flow table for the circuit. Draw its state diagram. b) Do a suitable state assignment with an excitation-table which gives a circuit which is free of critical race. You should also derive hazard free expressions for the next state and an expression for the output, and draw the circuit diagrams with the gates of your choice. 4. Proposed solution. Pulse could be started at c =, after w = and c = 0. a:00 b:0 c: d:0 Gray code gives the states hamming distance w pulse is long, so if w = 0 state b and c are don t care (with hazard cover) output: y = 2 2 and could share one gate c Hope all went well!

2

Submission sheet for Part A Sheet ( remove and hand in together with your answers for part A2 and part B ) Last name: Given name: Personal code: Sheet: Write down your answers for the uestions from Part A ( to 0 ) Question Answer { }? f ( x, y, z ) = SoP = min 2 s = K x x = 2 s =? [binary] 3 x = 00 y = 0 s = xy ± s 0 [ two complement number as signed decimal value] 4 f ( a, b, c, d ) = { PoS } = min? 5 Q = f(a,b) =? 6 f ( b, a) =? 7 f(a, B, C) =? 8 Q Q 0 : 00 9 T CP >? [ns] 0 architecture behave of MUX2_ is begin d_out <= end architecture behave; This table is completed by the examiner!! Part A (0) Part A2 (0) Part B (0) Total (30) Points 2 3 4 Sum Grade 3