Dr. Shahram Shirani COE2DI4 Midterm Test #2 Nov 19, 2008

Similar documents
1. Convert the decimal number to binary, octal, and hexadecimal.

Final Exam review: chapter 4 and 5. Supplement 3 and 4

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Asynchronous (Ripple) Counters

ASYNCHRONOUS COUNTER CIRCUITS

Lecture 8: Sequential Logic

Counter dan Register

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

LATCHES & FLIP-FLOP. Chapter 7

RS flip-flop using NOR gate

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

1 Hour Sample Test Papers: Sample Test Paper 1. Roll No.

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

Lecture 12. Amirali Baniasadi

Universal Asynchronous Receiver- Transmitter (UART)

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

Digital Fundamentals: A Systems Approach

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Registers and Counters

Registers and Counters

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

Experiment 8 Introduction to Latches and Flip-Flops and registers

Quiz #4 Thursday, April 25, 2002, 5:30-6:45 PM

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Chapter 4. Logic Design

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

CHAPTER 6 COUNTERS & REGISTERS

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

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Module -5 Sequential Logic Design

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Computer Organization & Architecture Lecture #5

Chapter 6 Registers and Counters

Logic Design. Flip Flops, Registers and Counters

Midterm Examination II

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

RS flip-flop using NOR gate

CprE 281: Digital Logic

Midterm Exam 15 points total. March 28, 2011

CHAPTER 4: Logic Circuits

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Combinational vs Sequential

Rangkaian Sekuensial. Flip-flop

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Name: Date: Suggested Reading Chapter 7, Digital Systems, Principals and Applications; Tocci

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

EET2411 DIGITAL ELECTRONICS

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Asynchronous Counter

Contents Circuits... 1

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Decade Counters Mod-5 counter: Decade Counter:

CHAPTER 4: Logic Circuits

Chapter 5 Sequential Circuits

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

SEMESTER ONE EXAMINATIONS 2002

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

Digital Logic Design ENEE x. Lecture 19

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

AC103/AT103 ANALOG & DIGITAL ELECTRONICS JUN 2015

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Flip-Flops and Sequential Circuit Design

CprE 281: Digital Logic

Lecture 11: Synchronous Sequential Logic

Counters

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Vignana Bharathi Institute of Technology UNIT 4 DLD

Multiplexor (aka MUX) An example, yet VERY useful circuit!

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Digital Circuits I and II Nov. 17, 1999

MODULE 3. Combinational & Sequential logic

Logic Design Viva Question Bank Compiled By Channveer Patil

Register Transfer Level in Verilog: Part II

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

Scanned by CamScanner

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

MC9211 Computer Organization

Question Bank. Unit 1. Digital Principles, Digital Logic

Chapter 2. Digital Circuits

Introduction to Sequential Circuits

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

EKT 121/4 ELEKTRONIK DIGIT 1

CHAPTER1: Digital Logic Circuits

Unit 11. Latches and Flip-Flops

EECS 270 Midterm Exam Spring 2011

Transcription:

Page 1 Dr. Shahram Shirani COE2DI4 Midterm Test #2 Nov 19, 2008 Instructions: This examination paper includes 13 pages and 20 multiple-choice questions starting on page 3. You are responsible for ensuring that your copy of the paper is complete. Bring any discrepancy to the attention of your invigilator. The answers for all the questions must be indicated by filling the corresponding circle on the optical scanning (OMR) examination sheet. This OMR examination sheet is the only page to be handed in. The instructions for completing the OMR examination sheet are provided on page 2. Read and follow these instructions with care! There is one mark for each question. Answer all questions. There is no penalty for guessing. This is a closed book exam. No reference material of any kind is permitted. No calculators of any kind are permitted. Time allowed is 50 minutes. Note: A' and A are used interchangeably. Continued on page 2

Page 2 OMR examination instructions Continued on page 3

Page 3 Multiple choice questions (numbered 1 to 20) indicate your answer by filling the corresponding circle on the OMR answer sheet 1. Consider function G(A,B,C)=AB+BC. Let F(A,B,C) be the dual of G(A,B,C). Then F(A,B,C) can be implemented using A as the select (control) input to a 2-to-1 multiplexer. The correct implementation of F(A,B,C) is shown in: 1. Figure 1(a) 2. Figure 1(b) 3. Figure 1(c) 4. Figure 1(d) Figure 1 - Implementations for function F(A,B,C) for question 1. 2. Function F(A,B,C)= Σ m(1,3,4,5) can be implemented using B and C as the select (control) inputs to a 4-to-1 multiplexer. The correct implementation is shown in: 1. Figure 2(a) 2. Figure 2(b) 3. Figure 2(c) 4. Figure 2(d) Continued on page 4

Page 4 Figure 2 - Implementations for function F(A,B,C) for question 2. Figure 3 - Block diagrams and truth tables for decoders without an enable signal for questions 3 and 4 3. The circuit shown in Figure 4 is: 1. F(A,B,C,D) = Σ m(0,1,2,3) 2. F(A,B,C,D) = Σ m(0,3,12,15) 3. F(A,B,C,D) = Σ m(0,4,8,12) 4. F(A,B,C,D) = Σ m(0,5,10,15) Figure 4 Circuit for question 3. Use the truth table of the decoder with un-inverted outputs shown in Figure 3(a). Continued on page 5

Page 5 4. The circuit shown in Figure 5 is: 1. F(A,B,C,D) = M(0,2,13,15) 2. F(A,B,C,D) = M(0,4,11,15) 3. F(A,B,C,D) = M (0,5,10,15) 4. F(A,B,C,D) = M (0,7,8,15) Figure 5 Circuit for question 4. Use the truth table of the decoder with inverted outputs shown in Figure 3(b). 5. The circuit from Figure 6 is equivalent to the circuit from: 1. Figure 7(a) 2. Figure 7(b) 3. Figure 7(c) 4. Figure 7(d) Figure 6 - Circuit for question 5. Continued on page 6

COE2DI4 Midterm Test #2 Fall 2008 Page 6 Figure 7 - Circuits for question 5. 6. A Moore machine has one input and one output. The output should be 1 if the total number of 0s received at the input is odd and the total number of 1s received is an even number greater than 0. This machine can be implemented in how many states? 1. 3 2. 4 3. 5 4. 6 5. 8 7. A flip-flop has a 3-ns delay from the time the clock edge occurs to the time the output is complemented. What is the maximum frequency that a 10-bit binary ripple counter that uses this flipflop can operate with reliability? 1. 10 MHz 2. 20 MHz 3. 25 MHz 4. 30 MHz 5. 33 MHz Continued on page 7

COE2DI4 Midterm Test #2 Fall 2008 Page 7 Figure 8 - Sequential (or storage) elements and signal waveforms for questions 8, 9 and 10. Note, the initial value of all the storage elements is zero and they are assumed to be ideal, i.e., the propagation delays and setup/hold times are considered to be zero. 8. Given the clock and d in waveforms in Figure 8(b) the waveform for Q A from Figure 8(a) is: 1. wave 1 from Figure 8(b) 2. wave 2 from Figure 8(b) 3. wave 3 from Figure 8(b) 4. wave 4 from Figure 8(b) 5. wave 5 from Figure 8(b) 9. Given the clock and d in waveforms in Figure 8(b) the waveform for Q B from Figure 8(a) is: 1. wave 4 from Figure 8(b) 2. wave 5 from Figure 8(b) 3. wave 6 from Figure 8(b) 4. wave 7 from Figure 8(b) 5. wave 8 from Figure 8(b) 10. Given the clock and d in waveforms in Figure 8(b) the waveform for Q C from Figure 8(a) is: 1. wave 4 from Figure 8(b) 2. wave 5 from Figure 8(b) 3. wave 6 from Figure 8(b) 4. wave 7 from Figure 8(b) 5. wave 8 from Figure 8(b) Continued on page 8

COE2DI4 Midterm Test #2 Fall 2008 Page 8 11. In Figure 9, if the current state is Q 3 Q 2 Q 1 Q 0 =1101, then after the next positive edge of the clock signal the new state will be: 1. 0000 2. 1111 3. 0111 4. 0011 5. 0001 Figure 9 - Circuit for question 11 (note, the flip-flops are positive edge triggered). Note for question 11: Because NOT all the flip-flops clock inputs share the same clock signal, it is considered that the new state value will be observed only when all the flip-flops outputs have become stable, i.e., after all the events triggered by the positive edge of the clock signal have been completed. 12. The periodic sequence Q 2 Q 1 Q 0 generated by the circuit shown in Figure 10 is: 1. 000, 111, 011, 010, 101 2. 000, 111, 011, 101 3. 000, 111, 101 4. 000, 111 Figure 10 - Circuit for question 12 (it is assumed that after power up the state is 000). Continued on page 9

COE2DI4 Midterm Test #2 Fall 2008 Page 9 13. Using a synchronous 3-bit up counter with parallel load capability (Q 2 and D 2 are the most significant bits) the circuit shown in Figure 11 generates the following periodic sequence: 1. 0, 2, 3, 4, 6, 7 2. 0, 2, 3, 4, 6 3. 0, 2, 3, 4 4. 0, 2, 4 5. 0, 4 Figure 11 Circuit for question 13 (it is assumed that after power up the state is 000). 14. Figure 12 shows a frequency division circuit implemented using a synchronous 4-bit up-counter with parallel load capability capability (Q 3 and D 3 are the most significant bits). If the frequency of the clock signal is 60 MHz, then signal z, which is a periodic signal, has its frequency equal to: 1. 20 MHz 2. 15 MHz 3. 12 MHz 4. 10 MHz 5. 6 MHz Tip for question 14: To compute the frequency of signal z, you must derive the periodic sequence generated by the circuit from Figure 12. 15. The single precision IEEE binary floating point representation of a number is 01000000011000000000000000000000. What is the decimal value of this number? 1. 1.5 2. 3.5 3. 1.11 4. 2.22 5 none of the above Figure 12 Circuit for question 14 (it is assumed that after power up the state is 1010). Continued on page 10

COE2DI4 Midterm Test #2 Fall 2008 Page 10 Figure 13 - State table and circuit for questions 16, 17 and 18. Note, Q A is the most significant bit. Tip: fill in the truth tables and use K-maps for logic minimization. Continued on page 11

COE2DI4 Midterm Test #2 Fall 2008 Page 11 Figure 14 - Circuit implementations for questions 16, 17 and 18. 16. Consider the state transition table of a sequential circuit shown in Figure 13(a) (see previous page). If in our technology library we have only one JK flip-flop, one T flip-flop and one D flip-flop, then a generic implementation is shown Figure 13(b) (see previous page). Based on the state transition table and circuit topology shown in Figure 13, the logic function, which drives the input J A of the leftmost flipflop from Figure 13(b) is shown in: 1. Figure 14(a) 2. Figure 14(b) 3. Figure 14(c) 4. Figure 14(d) 5. Figure 14(e) 17. Consider the state transition table of a sequential circuit shown in Figure 13(a) (see previous page). If in our technology library we have only one JK flip-flop, one T flip-flop and one D flip-flop, then a generic implementation is shown Figure 13(b) (see previous page). Based on the state transition table and circuit topology shown in Figure 13, the logic function, which drives the input T B of the center flipflop from Figure 13(b) is shown in: 1. Figure 14(a) 2. Figure 14(b) 3. Figure 14(c) 4. Figure 14(d) 5. Figure 14(e) 18. Consider the state transition table of a sequential circuit shown in Figure 13(a) (see previous page). If in our technology library we have only one JK flip-flop, one T flip-flop and one D flip-flop, then a generic implementation is shown Figure 13(b) (see previous page). Based on the state transition table and circuit topology shown in Figure 13, the logic function, which drives the input D C of the rightmost flip-flop from Figure 13(b) is shown in: 1. Figure 14(a) 2. Figure 14(b) 3. Figure 14(c) 4. Figure 14(d) 5. Figure 14(e) Continued on page 12

COE2DI4 Midterm Test #2 Fall 2008 Page 12 Figure 15 - Circuit for question 19. 19. Consider the sequential circuit shown in Figure 15. Consider the following state assignment: A stands for Q=0, B stands for Q=1. The state transition diagram for the circuit from Figure 15 is shown in: 1. Figure 16(a) 2. Figure 16(b) 3. Figure 16(c) 4. Figure 16(d) Figure 16 - State transition diagrams for question 19. Continued on page 13

COE2DI4 Midterm Test #2 Fall 2008 Page 13 Figure 17 - Circuit for question 20. 20. Consider the sequential circuit shown in Figure 17. Consider the following state assignment: A stands for Q=0, B stands for Q=1. The state transition diagram for the circuit from Figure 16 is shown in: 1. Figure 18(a) 2. Figure 18(b) 3. Figure 18(c) 4. Figure 18(d) Figure 18 - State transition diagrams for question 20. - THE END - Continued on page 14