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

Similar documents
Dr. S. Shirani COE2DI4 Midterm Test #2 Nov. 9, 2010

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

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

COE 328 Final Exam 2008

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

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Digital Electronics Final Examination. Part A

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

Sequential Logic Circuits

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

Counters. We ll look at different kinds of counters and discuss how to build them

ECE 341. Lecture # 3

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

Sample Test Paper - I

Chapter 4. Sequential Logic Circuits


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

Written exam with solutions IE Digital Design Friday 21/

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

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

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

Digital Logic Design - Chapter 4

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

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

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Philadelphia University Student Name: Student Number:

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

DE58/DC58 LOGIC DESIGN DEC 2014

CHW 261: Logic Design

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

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

CPE100: Digital Logic Design I

Chapter 5 Synchronous Sequential Logic

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

EECS 270 Midterm Exam 2 Fall 2009

Chapter 7 Logic Circuits

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

Pin Details of Digital Logic Gates:

Philadelphia University Student Name: Student Number:

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

Digital Fundamentals

Models for representing sequential circuits

ELCT201: DIGITAL LOGIC DESIGN

EXAMINATION in Hardware Description and Verification

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Lecture 7: Logic design. Combinational logic circuits

I. Motivation & Examples

Synchronous Sequential Logic

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Digital Fundamentals

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

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

Lecture A: Logic Design and Gates

MM74C90 MM74C93 4-Bit Decade Counter 4-Bit Binary Counter

Fundamentals of Digital Design

Exam for Physics 4051, October 31, 2008

Errata for Fundamentals of Logic Design, 5th ed, hardcover (1st printing)

ELCT201: DIGITAL LOGIC DESIGN

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

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

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

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

DIGITAL LOGIC CIRCUITS

14:332:231 DIGITAL LOGIC DESIGN. Organizational Matters (1)

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package. *MR for LS160A and LS161A *SR for LS162A and LS163A

CHAPTER 7. Exercises 17/ / /2 2 0

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

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

Synchronous 4 Bit Counters; Binary, Direct Reset

Review for Test 1 : Ch1 5

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Chapter 7. Sequential Circuits Registers, Counters, RAM

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.

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

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Digital Circuits ECS 371

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Experiment 9 Sequential Circuits

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

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

EECS 270 Midterm 2 Exam Answer Key Winter 2017

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

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

Programmable Logic Devices

UNIVERSITY OF WISCONSIN MADISON

Combinational Logic Design Combinational Functions and Circuits

Lecture 10: Synchronous Sequential Circuits Design

Preparation of Examination Questions and Exercises: Solutions

Synchronous Sequential Circuit Design. Digital Computer Design

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Problem Set 6 Solutions

74F193 Up/Down Binary Counter with Separate Up/Down Clocks

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

Transcription:

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 1 Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #2 Nov 22, 2006 Instructions: This examination paper includes 12 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

OMR examination instructions COE/EE2DI4 Midterm Test #2 Fall 2006 Page 2 Continued on page 3

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 3 Multiple choice questions (numbered 1 to 20) indicate your answer by filling the corresponding circle on the OMR answer sheet Figure 1 - CMOS circuit for question 1. Figure 2 - CMOS circuit for question 2. 1. The logic function F(A,B,C) implemented by the complementary metal-oxide semiconductor (CMOS) circuit shown in Figure 1: 1. AB' + B'C 2. AB' + BC 3. AB + B'C 4. AB + BC 2. The logic function F(A,B,C) implemented by the CMOS circuit shown in Figure 2 is: 1. AC' + B'C' 2. A'C' + B'C' 3. A' + B'C' 4. A + B'C' Continued on page 4

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 4 3. The function implemented using three 2-input look-up tables (LUTs) as shown in Figure 3 is: 1. F(A,B,C) = Σ m (0,1,2,4,7) 2. F(A,B,C) = Σ m (0,1,4,7) 3. F(A,B,C) = Σ m (0,4,7) 4. F(A,B,C) = Σ m (0,7) Figure 3 Circuit for question 3. 4. The programmable array logic (PAL) implementation of function F shown in Figure 4 is: 1. F(A,B,C) = Σ m (0,1,2,7) 2. F(A,B,C) = Σ m (0,1,6,7) 3. F(A,B,C) = Σ m (1,4,6,7) 4. F(A,B,C) = Σ m (3,4,6,7) 5. The PAL implementation of function G shown in Figure 4 is: 1. G(A,B,C) = Σ m (0,1,2,7) 2. G(A,B,C) = Σ m (0,1,6,7) 3. G(A,B,C) = Σ m (1,4,6,7) 4. G(A,B,C) = Σ m (3,4,6,7) Figure 4 Circuit for questions 4 and 5. An X indicates that the wires are connected, i.e., the vertical signal is an input to the corresponding horizontal NOR or NAND gates respectively. Continued on page 5

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 5 6. Consider a read-only memory (ROM) that performs binary to 2-digit binary-coded decimal (BCD) conversion as follows. The binary number is applied on the 7 input address lines, A 6 A 5 A 4 A 3 A 2 A 1 A 0, and the equivalent 2-digit BCD number is read on the 8 output data lines, D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0, after the memory access time (note, the most significant BCD digit will appear on the four most significant bits on the output). Consequently, when applying the input address A 6 A 5 A 4 A 3 A 2 A 1 A 0 =1010001, after the memory access time the output data will become: 1. D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 =1000 0001 2. D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 =1001 1001 3. D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 =1010 1110 4. D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 =0101 0001 7. LIBRARY IEEE; USE IEEE.std_logic_1164.ALL; ENTITY question7 IS PORT( s0, s1, enb : IN STD_LOGIC; y0, y1, y2, y3 : OUT STD_LOGIC); END question7; ARCHITECTURE behavior OF question7 IS BEGIN y0 <= not(not s0 and not s1 and enb); y1 <= not(s0 and not s1 and enb); y2 <= not(not s0 and s1 and enb); y3 <= not(s0 and s1 and enb); END behavior; In the above VHDL description, if the inputs are s0=1,s1=0,enb=1, then the outputs are: 1. y0=1, y1=1, y2=1, y3=0 2. y0=1, y1=1, y2=0, y3=1 3. y0=1, y1=0, y2=1, y3=1 4. y0=0, y1=1, y2=1, y3=1 5. y0=1, y1=1, y2=1, y3=1 Continued on page 6

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 6 Figure 5 - 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. The propagation delays on the two inverters placed on the d in and clock inputs are considered also to be zero. 8. Given the clock and d in waveforms in Figure 5(b) the waveform for Q A from Figure 5(a) is: 1. wave 1 from Figure 5(b) 2. wave 2 from Figure 5(b) 3. wave 3 from Figure 5(b) 4. wave 4 from Figure 5(b) 5. wave 5 from Figure 5(b) 9. Given the clock and d in waveforms in Figure 5(b) the waveform for Q B from Figure 5(a) is: 1. wave 4 from Figure 5(b) 2. wave 5 from Figure 5(b) 3. wave 6 from Figure 5(b) 4. wave 7 from Figure 5(b) 5. wave 8 from Figure 5(b) 10. Given the clock and d in waveforms in Figure 5(b) the waveform for Q C from Figure 5(a) is: 1. wave 4 from Figure 5(b) 2. wave 5 from Figure 5(b) 3. wave 6 from Figure 5(b) 4. wave 7 from Figure 5(b) 5. wave 8 from Figure 5(b) Continued on page 7

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 7 11. In Figure 6, if the current state is Q 3 Q 2 Q 1 Q 0 =1001, then after the next negative edge of the clock signal the new state will be: 1. 0110 2. 0111 3. 1110 4. 0101 5. 0100 Figure 6 - Circuit for question 11 (note, the flip-flops are negative 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 negative edge of the clock signal have been completed. 12. In Figure 7, if the current state is Q 3 Q 2 Q 1 Q 0 =1001, then the next state will be: 1. 0001 2. 0011 3. 0110 4. 0100 Figure 7 - Circuit for question 12. Continued on page 8

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 8 13. In Figure 8, if the current state is Q 2 Q 1 Q 0 =101, then the next state will be: 1. 000 2. 001 3. 010 4. 011 Figure 8 - Circuit for question 13. 14. The periodic sequence Q 2 Q 1 Q 0 generated by the circuit shown in Figure 9 is: 1. 000, 101, 110, 010, 100, 011, 001 2. 000, 101, 010, 100, 011, 001 3. 000, 101, 100, 011, 001 4. 000, 101, 011, 001 Figure 9 - Circuit for question 14 (it is assumed that after power up the state is 000). Note, the flip-flop in the middle is a D flip-flop. Continued on page 9

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 9 Figure 10 - Circuit for question 15. 15. The circuit from Figure 10 is used to generate a periodic sequence (it is assumed that after power up the state is 0000). If the frequency of the clock signal is 64 MHz, then signal z, which is also a periodic signal, has its frequency equal to: 1. 32 MHz 2. 16 MHz 3. 8 MHz 4. 4 MHz 16. The periodic sequence Q 2 Q 1 Q 0 generated by the circuit shown in Figure 11 is: 1. 000,001,111,110 2. 000,011,111,110 3. 000,111,110,001 4. 000,111,100,011 5. 000,110,100,011 Figure 11 A 3-bit synchronous down counter with parallel load capability for question 16. It is assumed that after power up the state is 000 and Q 2 and D 2 are the most significant bits. 17. Which of the circuits shown in Figure 12 (see next page) are equivalent? 1. Figure 12(a) and Figure 12(c) 2. Figure 12(a) and Figure 12(d) 3. Figure 12(b) and Figure 12(c) 4. Figure 12(b) and Figure 12(d) Continued on page 10

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 10 Figure 12 - Circuits for question 17. Figure 13 - State table and circuit for questions 18 and 19 (Q A is the most significant bit). Tip: Use K-maps for logic minimization. Continued on page 11

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 11 Figure 14 - Circuit implementations for questions 18 and 19. 18. Consider the state transition table of a two-bit up/down Gray-code counter, where the counting direction is controlled using an external input w, as shown in Figure 13(a) (see previous page). If in our technology library we have only D flip-flops then a generic implementation is shown Figure 13(b). Based on the state transition table and circuit topology shown in Figure 13, the logic function which drives the input D A of the leftmost 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) 19. Consider the state transition table of a two-bit up/down Gray-code counter, where the counting direction is controlled using an external input w, as shown in Figure 13(a) (see previous page). If in our technology library we have only D flip-flops then a generic implementation is shown Figure 13(b). Based on the state transition table and circuit topology shown in Figure 13, the logic function which drives the input D B 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

COE/EE2DI4 Midterm Test #2 Fall 2006 Page 12 Figure 15 - Circuit for question 20. 20. Consider the sequential circuit shown in Figure 15. Consider the following state assignment: S0 stands for Q 1 Q 0 =00, S1 stands for Q 1 Q 0 =01, S2 stands for Q 1 Q 0 =10 and S3 stands for Q 1 Q 0 =11. 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 20. - THE END - Continued on page 13