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

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

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

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

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

Digital Electronics Final Examination. Part A

EECS150 - Digital Design Lecture 23 - FSMs & Counters

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

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

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

ECE 341. Lecture # 3

DE58/DC58 LOGIC DESIGN DEC 2014

Philadelphia University Student Name: Student Number:

FSM model for sequential circuits

CHW 261: Logic Design

Digital Circuits ECS 371

Chapter 7. Sequential Circuits Registers, Counters, RAM

Synchronous Sequential Circuit Design. Digital Computer Design

Sequential Synchronous Circuit Analysis

ELCT201: DIGITAL LOGIC DESIGN

EE 209 Spiral 1 Exam Solutions Name:

Digital Logic Design - Chapter 4

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

Philadelphia University Student Name: Student Number:

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

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

Sample Test Paper - I

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

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

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

EE 209 Logic Cumulative Exam Name:

Chapter 5 Synchronous Sequential Logic

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

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

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

Lecture 8: Sequential Networks and Finite State Machines

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

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

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

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

Shift Register Counters

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

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

EECS150 - Digital Design Lecture 16 Counters. Announcements

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

Finite State Machine (FSM)

ALU, Latches and Flip-Flops

CPE100: Digital Logic Design I

Exam for Physics 4051, October 31, 2008

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

Lecture 10: Synchronous Sequential Circuits Design

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec09 Counters Outline.

Clocked Sequential Circuits UNIT 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS. Analysis of Clocked Sequential Circuits. Signal Tracing and Timing Charts

Digital Logic Design - Chapter 5

Different encodings generate different circuits

Parity Checker Example. EECS150 - Digital Design Lecture 9 - Finite State Machines 1. Formal Design Process. Formal Design Process

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

or 0101 Machine

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

Synchronous Sequential Logic

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec 09 Counters Outline.

ENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter. Lab 3. Lab 3 Gate Timing. Lab 3 Steps in designing a State Machine. Timing diagram of a DFF

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

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.

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

Lecture 17: Designing Sequential Systems Using Flip Flops

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008


Models for representing sequential circuits

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

Sequential Circuits Sequential circuits combinational circuits state gate delay

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

Lecture (08) Synchronous Sequential Logic

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

DIGITAL LOGIC CIRCUITS

Logic Design II (17.342) Spring Lecture Outline

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

CPE100: Digital Logic Design I

Synchronous Sequential Logic Part I. BME208 Logic Circuits Yalçın İŞLER

6 Synchronous State Machine Design

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

Stop Watch (System Controller Approach)

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

Analysis of clocked sequential networks

Problem Set 9 Solutions

Digital Circuits and Systems

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

Digital Fundamentals

EGR224 F 18 Assignment #4

COE 328 Final Exam 2008

Written exam with solutions IE Digital Design Friday 21/

EEE2135 Digital Logic Design

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

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007

ENEL Digital Circuit Design. Final Examination

Analysis and Design of Sequential Circuits: Examples

Transcription:

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department Page 1 of 13 COE 202: Digital Logic Design (3-0-3) Term 112 (Spring 2012) Final Exam Monday May 28, 2012 7:00 p.m. 9:30 p.m. Time: 150 minutes, Total Pages: 13 Name: ID: Section: Notes: Do not open the exam book until instructed Calculators are not allowed (basic, advanced, cell phones, etc.) Answer all questions All steps must be shown Any assumptions made must be clearly stated Question Maximum Points Your Points 1 21 2 8 3 10 4 15 5 29 6 17 Total 100

Page 2 of 13 Question 1. (21 Points) Answer the following questions by either filling the required spaces or underlining the correct answers: i. Given a synchronous sequential circuit with 20 states, the minimum number of flip-flops required to implement the circuit is flip flops and the number of unused states is states. ii. Given a synchronous sequential circuit with 3 inputs, 3 flip-flops and 2 outputs, to implement the output and next state equations using a ROM requires a ROM with locations storing bits each. iii. The following circuits implements a 2-bit (synchronous, asynchronous) down counter. (1 point) iv. Given a 3-bit synchronous counter with outputs Q2, Q1 and Q0, assuming that the counter clock has a frequency of 16 MHZ, then the frequency of Q0 is and the frequency of Q2 is. v. For the circuit given below, assuming that its clock has a frequency of 14 MHZ, then the frequency of Y is. (2 points)

Page 3 of 13 vi. For the 3-bit register given below, given that Q2=0, Q1=1, Q0=1, and X=0, the content of the register after one clock cycle will be Q2=, Q1=, Q0=. vii. Given that F1=A B +AC, F1 =A B+AC and F2=A B+BC +AB, F2 =A B +ABC, to implement F1 and F2 using a PLA, the minimum number of AND gates needed is. (2 points) viii. The following circuit implements a (rising, falling) -edge triggered (D flip flop, T flip flop). ix. Given the circuit below having a JK flip flop and assuming that the current state Q=0 and X=1, the next state will be. (1 point)

Question 2. Page 4 of 13 (8 Points) It is required to design a sequence detector that detects overlapped occurrences of the sequence 10110. The circuit receives a serial input X and produces a serial output Z. The output Z will be 1 when the circuit detects the sequence 10110. Assume the existence of a reset input to reset the machine to a reset state. Draw the state diagram of the circuit assuming a Moore model. You are not required to derive the equations and the circuit. The following is an example of some input and output streams: Example: Input X 0 0 1 0 1 1 0 1 1 0 1 0 1 1 0 0 Output Z 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1

Question 3. Page 5 of 13 (10 Points) It is required to design a sequential circuit that has two inputs X and Y and one output Z. The output equals 1 when it receives two consecutive bits where x=y, followed by one bit where x y, followed by two consecutive bits where x=y. After receiving the required sequence, the circuit starts detecting these occurrences over again without overlap. The circuit has an additional reset input R which resets the circuit into the initial state. Draw the state diagram of the circuit assuming a Mealy model. You are not required to derive the equations and the circuit. The following is an example of some input and output streams: Example: x=y x y x=y X 0 1 0 1 1 0 0 1 1 0 0 1 1 Input Y 0 1 0 0 1 0 1 1 1 1 0 1 0 Output Z 0 0 0 0 0 1 0 0 0 0 0 1 0

Question 4. Page 6 of 13 (15 Points) Consider the following sequential circuit: X Y 3 2 1 0 4-to-16 Decoder 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 D A D B Q A Q B Clock Z a. Derive simplified Boolean expressions for the D A and D B inputs of the flip flops and the external output Z. (6 points) b. Is the circuit type Mealy or Moore? Justify your answer. (1 point)

Page 7 of 13 c. Provide a state table showing {present state and external inputs} and {next state and external output}. (8 points)

Page 8 of 13 Question 5. (29 Points) Consider the following state table: + Q A Q B X Q A + Q B Z 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 1 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 0 0 1 1 1 0 1 0 0 1 1 1 0 1 0 1. Draw the state diagram corresponding to the given state table. (4 points) 2. If falling edge-triggered D-FF(s) and simple gates (i.e., AND, OR, NOT gates) are to be used to implement the given state table, provide the following: a. The simplified Boolean expressions of all FF inputs. (4 points) b. The simplified Boolean expression of the output. (2 points)

Page 9 of 13 c. The logic diagram of the circuit. Label your circuit properly. (2 points) 3. If the same previous state table is implemented using a single ROM and a single register, provide the following: a. The size of the required ROM, and its total capacity in bits. b. The complete ROM table. (2 points) c. The block diagram of this implementation (You must CLEARLY LABEL each signal and each component inputs and outputs).

Page 10 of 13 4. Consider the same previous state table which is repeated here for your convenience. Assume that the initial state of the circuit implementation of the given state table is (Q A Q B = 01), draw the waveforms of Q A, Q B, and Z in response to the shown applied input X. Assume that the circuit uses falling edge-triggered D-FF(s). (9 points) + Q A Q B X Q A + Q B Z 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 1 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 0 0 1 1 1 0 1 0 0 1 1 1 0 1 0 Clock X Initial State Q A Q B = 01 Q A Q B Z

Question 6. Page 11 of 13 (17 Points) A mod-16 binary counter consists of 4 D-Flip Flops with inputs (D 0, D 1, D 2, D 3 ) and corresponding outputs (Q 0, Q 1, Q 2, Q 3 ). The input equations of the counter are given by:,,, and The counter also has a carry-out signal C out = (I) Show, through drawing a logic diagram, how can the above design be modified to include: a. A count enable input CE such that if CE = 0 counting is disabled (i.e. count does not change with incoming clock pulses) while if CE = 1 counting is enabled. (2 points) b. Show how can the design in (a) be modified to include a synchronous clear input CLR, which clears the counter on the next active clock edge when CLR=1. (2 points) c. Show how can the design in (b) be modified to include a load input LD with additional 4 Data-In inputs I 3, I 2, I 1 and I 0 such that the counter operation is in accordance with the shown function table. (2 points) Counter Function Table LD CE CLR Clk Function 0 0 0 X Counting Disabled (No change in current count) 0 1 0 Counting enabled 0 X 1 Current count 0000 1 X X Current count I 3 I 2 I 1 I 0 (II) Using the mod-16 counter in (c), show how to turn this counter into a mod-10 counter with the same input control signals (CE, CLR, and LD) and a proper carry-out signal C out. You may show your logic modifications using the symbol shown below. (III) Using the mod-16 counter in (c), show how to turn this counter into a mod-6 counter with the same input control signals (CE, CLR, and LD) and a proper carry-out signal C out. You may show your logic modifications using the symbol shown above. (IV) Given a 1 Hz clock, show how the counters designed in (II) and (III) can be used to build a stop watch that counts seconds (0 to 59). The counter should have a C out signal that may be used for a minutes counter. The outputs of the mod-10 and mod 6 counters will drive two 7- segment displays to be able to read the number of passed seconds in decimal (00 to 59). (5 points)

Page 12 of 13

Page 13 of 13