Solution (a) We can draw Karnaugh maps for NS1, NS0 and OUT:

Similar documents
IMPERIAL COLLEGE OF SCIENCE, TECHNOLOGY AND MEDICINE UNIVERSITY OF LONDON DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATIONS 2005

Digital Electronics II Mike Brookes Please pick up: Notes from the front desk

Digital Electronics Final Examination. Part A

Philadelphia University Student Name: Student Number:

Fundamentals of Digital Design

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

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

Sample Test Paper - I

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

Philadelphia University Student Name: Student Number:

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

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

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

CPE100: Digital Logic Design I

Problem Set 9 Solutions

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

Synchronous Sequential Circuit Design. Digital Computer Design

PG - TRB UNIT-X- DIGITAL ELECTRONICS. POLYTECHNIC-TRB MATERIALS

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

EEE2135 Digital Logic Design

Review for Final Exam

Adders, subtractors comparators, multipliers and other ALU elements

Lecture 10: Synchronous Sequential Circuits Design

DE58/DC58 LOGIC DESIGN DEC 2014

Sequential Circuits Sequential circuits combinational circuits state gate delay

ECE 341. Lecture # 3

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

CprE 281: Digital Logic

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

Design of Sequential Circuits

MM74C912 6-Digit BCD Display Controller/Driver

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

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

Adders, subtractors comparators, multipliers and other ALU elements

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Digital Fundamentals

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

Chapter 5. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 5 <1>

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

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

ELCT201: DIGITAL LOGIC DESIGN

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

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

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

Practice Final Exam Solutions

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

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

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

Digital Design. Sequential Logic

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

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

CHW 261: Logic Design

Combinational Logic. By : Ali Mustafa

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Introduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison

CPE100: Digital Logic Design I

Logic Design II (17.342) Spring Lecture Outline

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

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

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

Memory, Latches, & Registers

CSE 140 Spring 2017: Final Solutions (Total 50 Points)

Chapter 8. Low-Power VLSI Design Methodology

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

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

SUMMER 18 EXAMINATION Subject Name: Principles of Digital Techniques Model Answer Subject Code:

Review Problem 1. should be on. door state, false if light should be on when a door is open. v Describe when the dome/interior light of the car

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

NTE74HC299 Integrated Circuit TTL High Speed CMOS, 8 Bit Universal Shift Register with 3 State Output

EECS150 - Digital Design Lecture 25 Shifters and Counters. Recap

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

Numbers and Arithmetic

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

DIGITAL LOGIC CIRCUITS

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

Sequential Logic Worksheet

IT T35 Digital system desigm y - ii /s - iii

University of Toronto Faculty of Applied Science and Engineering Final Examination

Ph.D. Qualifying Exam. Electrical Engineering Part I

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Integrated Circuits & Systems

Synchronous Sequential Logic

Digital Circuits ECS 371

Hakim Weatherspoon CS 3410 Computer Science Cornell University

ECE 407 Computer Aided Design for Electronic Systems. Simulation. Instructor: Maria K. Michael. Overview

Metastability. Introduction. Metastability. in Altera Devices

Exam for Physics 4051, October 31, 2008

PC100 Memory Driver Competitive Comparisons


Digital Electronics Circuits 2017

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

Binary addition by hand. Adding two bits

MM74C912 6-Digit BCD Display Controller Driver MM74C917 6-Digit Hex Display Controller Driver

Arithmetic Building Blocks

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

Systems I: Computer Organization and Architecture

EECS150 - Digital Design Lecture 16 Counters. Announcements

Numbers and Arithmetic

Transcription:

DIGITAL ELECTRONICS II Revision Examples 7 Exam Format Q compulsory + any out of Q, Q, Q4. Q has 5 parts worth 8% each, Q,,4 are worth %. Revision Lectures Three revision lectures will be given on the topics listed below. The example problems are all taken from past papers and are intended to cover the full range of the course. It should not be assumed that this year s questions will be on these precise topics. Note that some papers prior to contain questions on CMOS gate circuitry this topic is no longer in the syllabus. Fri 7 Apr :. State Machines (EEE 994 Q). Adder Circuit Propagation Delays (ISE 996 Q) Wed May 9:. Timing (ISE 996 Q4) 4. Sine wave generation (EEE 999 Q4) Fri May : 5. Memory interfacing (EEE 996 Q) 6. State Machine analysis (EEE 999 Q). Figure shows the state diagram of a synchronous state machine having a single input, IN, and a single output, OUT. The state is represented by a two-bit number S: whose value is indicated within each state circle along with the value of OUT. Transitions from a state to itself have not been shown. We can draw Karnaugh maps for NS, NS and OUT: IN IN IN NS NS OUT S,S X X X X X X (b) From this we get: NS = IN NS= S IN = S+ IN OUT = S State branches to either state (IN=) or state (IN=) so there is no chance of getting trapped. (b) Figure If the next state is represented by a two bit number NS:, derive Boolean expressions for NS, NS and OUT in terms of S, S and IN. You should ensure that the state machine will ultimately follow the correct sequence regardless of its initial state. Using a -bit D-type register and as few logic gates as possible draw a circuit diagram for the state machine. The register operates on the rising edge of the signal. Complete the timing diagram shown in Figure by showing the state during each clock cycle and the waveform of OUT. The circuit is initially in state. [7] [] [5] Figure Digital Circuits II Revision Examples Page Digital Circuits II Revision Examples Page

. Figure shows the symbol and worst case propagation delays (in units of gate delay) for an m-bit full adder. Pi, Qi and Sj denote any of the P, Q or S bits respectively. The circuit of Figure 4 uses two full adders together with two multiplexers. The C inputs of the two full adders are connected to logic and logic levels respectively. In the question below, the phrases simple adder block and complex adder block refers to the circuits of Figure and Figure 4 respectively. a) Determine the worst case delays from each of C and Pi to each of Cm and Sj for the complex adder block. Each multiplexer has a propagation delay of gate delays from its select input (labelled G) and gate delays from the other inputs. b) Show that the complex adder block is functionally equivalent to the simple adder block. Explain the relative advantages of the two implementations. c) A 6-bit adder is constructed by cascading four 4-bit full adder blocks. A simple adder block is used for the least significant 4 bits and three complex adder blocks are used for the most significant bits. Determine the longest propagation delay path for the 6-bit adder. d) Determine the number of bits to which each of the complex adder blocks in part can be increased without increasing the length of the longest propagation delay path. Give the total size of the resultant adder. [7] [4] [] a) C Sj C Cm Pi SAj, SBj Sj (m+) + () = m+5 Pi CA, CB Cm (m) + () = m+ b) The two simple adder blocks are identical except that the C input is for the upper one and for the lower one. The multiplexers then select the outputs from the appropriate block according to the actual value of C. The complex adder block uses over twice as much circuitry as the simple adder block. Its main advantage is the reduction (for m>) in the carry path delay. The delays from Pi to Si within the block have actually been increased. c) The diagram shows the worst-case delay between various inputs and outputs. In all cases m = 4. C Σm P m : Qm : Sm : C C m P m : Qm : Pm : Qm : C Pm : Qm : C Σm Σm Figure SAm : Sm : C m Sm : SBm : C m Worst-case delays CA m CB m Figure 4 C Sj m+ C Cm m Pi Sj m+ Pi Cm G MUX G MUX m Sm : C m The longest path is P C C7 C S5 = 4+++ = [Note that using a complex block for the 4 least significant bits would lengthen this path by since P C would increase to 6] d) We have the following delays: P4 C7 C S5 = P8 C S5 = 9 P S5 = 9 We can increase the size of each block to bring these numbers up to : make the second block 5 bits and the third and fourth blocks 8 bits. This gives a 5-bit adder with a total delay of gate delays. Digital Circuits II Revision Examples Page Digital Circuits II Revision Examples Page 4

. Figure 5 shows a circuit comprising two microprocessors and two line-drivers. The microprocessors communicate via a cable that is cm long through which both the clock and data signals travel. The propagation speed of the cable is 5 cm/ns. The propagation delay of the line-drivers may vary between and 5 ns. As indicated in Figure 5, the Z output of each microprocessor changes shortly after the falling edge of its clock input while data at the D input is clocked in on the rising edge. The timing specifications for these signals are: t zp = 7 ns Propagation delay of Z output t zh = ns Hold time of Z output t ds = ns Setup time of D input t dh = ns Hold time of D input a) The signal is a symmetrical squarewave of constant frequency. Determine f max, the clock frequency up to which the circuit will allow microprocessor B to transmit data reliably to microprocessor A. b) A supply of registers is available having a propagation delay of ns. The registers are available in two types which respond to rising and falling edges respectively at their clock inputs. The data inputs of the registers have a setup time of 5 ns and a hold time of 5 ns relative to the active clock edge. Determine the highest value of f max that can be achieved by inserting registers at either or both of points X and Y in the figure. You should indicate the clock polarity of each register that you use and its position in the circuit. State the additional delay in clock cycles that your circuit modification has inserted between the Z output of microprocessor B and the D input of microprocessor A. [Note: You should not assume that all the information given in this question is required in order to answer it] [] [] We choose the driver delay to be t d = or t D = 5 according to whether it is on the right or left of an inequality respectively. The cable delay is t c = ns. Define the clock period to be T. a) t + t + t + t + t < ½ T t 5 + + 7 + 5 + < ½T T > D c zp D c ds Hence the max frequency is /ns =.5 MHz b) A register inserted at point X must respond to a falling clock edge because the data will otherwise change during the hold period t dh. A register inserted at point Y can respond to either edge, but a falling edge will allow more time to encompass t zp + cable delay. We therefore put a falling-edge-clocked register at both points X and Y. This inserts an extra clock cycles delay. For the registers we have t s = t h = 5 and t p =. This gives the following constraints: i) µp-b to Register-Y: t < T t T > 75 zp ii) Register-Y to Register-X: td + tc + tp + td + tc < T ts T > 85 iii) Register-X to µp-a: t < ½T t T > 6 Hence the max frequency is /85ns =.8 MHz p s ds Point X cm μp-a D Z μp-b D Z C C Point Y Z D t zp t zh t ds t dh Figure 5 Digital Circuits II Revision Examples Page 5 Digital Circuits II Revision Examples Page 6

4. Figure 6 shows a circuit for generating a sampled sinewave. The input to the -bit binary counter is an 8 MHz squarewave. G, G, G and G4 denote the conductances of the four resistors connected to the output node V OUT. Draw a timing diagram showing the waveforms of X, X, X, P and Q for cycles of. (b) If the logic gate output voltage levels are V and 5 V, use Kirchoff s current law to show that V 5PG + 5QG4 = OUT G + G + G + G4 where P and Q take the values or according to their logic level. The conductances G, G, G and G4 are to be chosen so that both the following two conditions hold: (i) = sin ( ( x + ) / 8) (ii) V OUT π where x is the value of the -bit number X:. G+G+G+G4 = ms. Using the result of part (b), write down the equations that must be satisfied by G,, G4 if condition (i) is to hold for each value of x in the range to 7. Solve these equations, together with that of condition (ii), to determine the values of G,, G4. G 5 V G V CTR X P G + X X = Figure 6 = Q G4 V OUT [4] [] [] (b) X X X P Q This follows directly from Kirchoff s law. We require the following outputs: X: 4 5 6 7 P: Q: Vout: a b b a a b b a where a = sin ( π / 8) =. 8 and b = sin ( π / 8) =. 94 We have the following redundant set of simultaneous equations G + G + G + G =. =.a =.a =.b =.b 4 4 4 We can ignore the last equation and solve the remainder to give: G =.7 ms, G = 8.9 ms, G = 5. ms and G4 =. ms. Digital Circuits II Revision Examples Page 7 Digital Circuits II Revision Examples Page 8

5. The circuit of Figure 7 forms part of a logic analyser in which the eight lines DATA7: are sampled repetitively and their values stored in a memory. The circuit comprises a static RAM memory, a counter, an 8-bit register and two flipflops. The propagation delays of the counter, register and flipflops may vary between 5 and ns and may have different values for rising and falling output transitions. The flipflops have setup and hold times of 5 ns and ns respectively relative to the clock rising edge. The timing requirements for a memory write cycle are shown in the figure. a) Draw a timing diagram showing the waveforms of, CNT, WRITE, A: and D7:. The signal is a symmetrical squarewave of constant frequency. b) For each of the timing constraints shown in the figure, determine the corresponding restriction on the period of. c) Hence determine the maximum frequency for reliable circuit operation. DATA7: C D D D CTR CNT C C + D7: WRITE A: RAM 8k 8 D7: WE A: [7] [] [] a) The waveforms of the various signals are drawn below with exaggerated propagation delays: Count!WRITE A, D b) We need to check each of the timing requirements in the diagram. In the expressions below, we use T for the clock period and t for the propagation delay of a counter/register/flipflop. All the t values are then replaced by or 5 according to whether they are on the left or right respectively of an < sign. Addr setup: t+8 < T+t T > + 8 5 = Write pulse: t + 5 < T + t T > ( + 5 5)/ = Addr hold: t+ < T+t T > + = Data setup: t+5 < T+t T > ( + 5 5)/ = Data hold: t+8 < T+t T > + 8 = 8 c) The address setup is therefore the limiting factor and the maximum clock frequency is 4.4 MHz. >8 >5 > A: WRITE D7: Figure 7 >5 >8 Digital Circuits II Revision Examples Page 9 Digital Circuits II Revision Examples Page

6. Figure shows the circuit of a synchronous state machine having a -bit input P: and two outputs, X and Y. The logic block implements the following Boolean equations: X = P + P + ( S S) ( S S) Y = P P Construct the state table for the circuit. D = P S D = P S (b) Draw a state diagram for the circuit in which the state is represented by the decimal value of the -bit number S:. You should simplify your diagram by using appropriate default values for the output signals. [8] From the Boolean equations we get the following state table: D,D/X,Y P,P S,S / / / / / / / / / / / / / / / / Complete the timing diagram of Figure by showing the waveforms of the two output signals and the sequence of states followed by the circuit. The circuit is initially in state as shown in the diagram. (b) From the state table, we can construct the state diagram. Transitions are labelled with the value of P:. P: C Logic X Y /, /, D S: Figure D: /, /, I/O Signals: P:/X,Y Defaults: X=, Y= P P S: X Y Figure P P S: X Y [8] Digital Circuits II Revision Examples Page Digital Circuits II Revision Examples Page