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

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

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

CHW 261: Logic Design

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

DE58/DC58 LOGIC DESIGN DEC 2014

EE 209 Logic Cumulative Exam Name:

6 Synchronous State Machine Design

EEE2135 Digital Logic Design

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

Fundamentals of Digital Design

Synchronous Sequential Circuit Design. Digital Computer Design

Lecture 10: Synchronous Sequential Circuits Design

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

EECS150 - Digital Design Lecture 23 - FSMs & Counters

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

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

ELCT201: DIGITAL LOGIC DESIGN

EE 209 Spiral 1 Exam Solutions Name:

Chapter 14 Sequential logic, Latches and Flip-Flops

ECE 341. Lecture # 3

Philadelphia University Student Name: Student Number:

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

FSM model for sequential circuits

Exam for Physics 4051, October 31, 2008

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

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

Digital Logic Design - Chapter 5

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

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

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Unit 7 Sequential Circuits (Flip Flop, Registers)

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

Sequential logic and design

CSE 140 Midterm 2 Tajana Simunic Rosing. Spring 2008

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

EECS 270 Midterm 2 Exam Answer Key Winter 2017

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

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

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

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

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

Written exam with solutions IE Digital Design Friday 21/

Digital Circuits ECS 371

Philadelphia University Student Name: Student Number:

3 Logic Function Realization with MSI Circuits

Analysis of clocked sequential networks

EECS 270 Midterm Exam 2 Fall 2009

Logic and Computer Design Fundamentals. Chapter 8 Sequencing and Control

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

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

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

Digital Fundamentals

CPE100: Digital Logic Design I

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

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

Chapter 5 Synchronous Sequential Logic

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

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

Review for Final Exam

Different encodings generate different circuits

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

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

Digital Design. Sequential Logic

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

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

Finite State Machine (FSM)

Synchronous Sequential Circuit Design

Finite State Machine. By : Ali Mustafa

Sample Test Paper - I

Lecture 8: Sequential Networks and Finite State Machines

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

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

CS221: Digital Design. Dr. A. Sahu. Indian Institute of Technology Guwahati

Stop Watch (System Controller Approach)

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

Models for representing sequential circuits

Digital Electronics Final Examination. Part A

Digital Fundamentals

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

CPE100: Digital Logic Design I

ELE2120 Digital Circuits and Systems. Tutorial Note 9

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

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

COE 328 Final Exam 2008

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

(Boolean Algebra, combinational circuits) (Binary Codes and -arithmetics)

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

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

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

Synchronous Sequential Logic Part I

Synchronous Sequential Logic

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

DIGITAL LOGIC CIRCUITS

PGT104 Digital Electronics. PGT104 Digital Electronics

Sequential Circuit Design

Transcription:

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department Page of COE 22: Digital Logic Design (3--3) Term (Fall 22) Final Exam Sunday January 5, 22 7:3 a.m. : a.m. Time: 5 minutes, Total Pages: Name: D: 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 2 2 6 3 5 4 2 5 27 Total 9

Question. Page 2 of (2 points) Consider the sequential circuit below. States are AB = to. ( n the circuit, a bubble represents an inverter) a. s the circuit type is Mealy or Moore? ( point) b. Derive logic expressions for the D A and D B inputs of flip flops and the external output Z. (3 points) c. Provide a state table showing {present state and external inputs} and {next state and external output}. (8 points)

d. Derive a complete state diagram with the states arranged as shown below: (4 points) Page 3 of e. The circuit can be implemented using a PROM and a register. n this case, the minimum size of the register is bits, while the minimum size PROM has locations (words); each being bits wide. (2 points) f. Starting at state, determine the minimum number of clock cycles needed to visit all remaining states only once and return to same starting state. List the sequence of states visited in the form.. (2 points)

z v X C B ::) Clock Ct.,. Me~lj b..'b A -: ><y -t B ]) =X.(A -t ') Z-=-XA B. =. XA+ xl "--' C. A :) t< Y \,,, t,, t t,, \ :D", ])S, L,, ' \,,, C Gi (),

2 d. / / /. e. The circuit can be implemented using a PROM having \~ locations (words); each being:3 bits wide and a 2.. -bit register of D-type flip flops. f. 4- G\:..'J~: 'f~'.'~o'---7~ S. t'~{t-

Page 4 of a. Question 2. (6 Points) (a) (6 points) Using D flip-flop(s) and MUX(s), draw the logic diagram for an n-bit register with mode selection inputs S S and a serial input S in. The register should operate according to the following table: S S Function to Perform Clear the register Hold the current contents of the register (i.e. no change) Shift left Load s complement of register contents

Page 5 of (b) ( points) f the initial contents of the 4-bit shift register shown below is ABCD =, fill in the entries in the table below for the given sequence of serial input. ndicate the register contents following each clock pulse. n the last column, express the register contents in hex (Stage D is the LSB). Clock Pulse # Serial nput, just before the arrival of the next clock pulse A B C D Register Contents in Hex nitial State 9 2 3 4 5

Page 6 of Question 3. (5 Points) a) Show the implementation of modulo-8 up/down counter using a minimum size register, MS components and/or any other components of your choice. When the UP/DWN input=, then the counter counts UP and when it is, the counter counts downward. (5 marks) Q Q Q UP/DWN D D Q Q Q Q When counting Up or down, the st bit is always toggling (i.e. Q+=~Q) For other bits, when counting UP, each bit toggles when all lower bits are s. e.g. Q+=~Q iff QQ= When counting Down, each bit toggle when all lower bits are s. e.g. Q+=~Q iff Q Q = UP/DWN Q Q Q2 Q Q Q UP/DWN D Q 3-bit Reg Q2 Another solution 3-bit Add/Sub S S S2 Add/Sub 2 3-bit Register Q Q Q2 UP/DWN

Page 7 of b) Using a 4-bit synchronous binary counter with synchronous clear (shown below) plus any additional components of your choice, design a modulo-n counter (that starts counting from ) where n is a 4-bit input specified by the user as shown below. ( marks) CLR Q Q Q 2 Q 3 The 4-bit synchronous binary counter to be used The user input n n Q n Q n 2 Q 2 n 3 Q 3? The required 4-bit selectable modulo-n counter CLR Q Q Q 2 Q 3 4-bit Binary Adder n n n 2 n 3 4-bit Magnitude Comparator EQ A modulo-n counter will count to n- then re-start from.

Page 8 of Question 4. t is required to design a circuit that detects the occurrence of the following (non-overlapping) sequence of bits in an input bit stream (X):, ( followed by a zero, followed by a, followed by a, followed by a ). When such a sequence is detected an output, Y, is set high for one clock cycle. The figure below shows an example bit stream X and the circuit's output: X:... Y:... Time a) Obtain the state diagram of this circuit as Moore Model machine ( marks) b) Specify the minimum number of FFs needed to implement this circuit and the number of unused states. (2 marks) a) S S S2 S3 S4 S5 b) min # of FFs = Log 2 (# of states) = Log 2 (6) = 3 FFs nsince we are using 3 FFs, we have 8 states # of unused states is 2

Page 9 of Question 5. (23 Points) () Shown to the right is the state transition table PS NS (y y ) + Z Z of a 4-state synchronous sequential circuit with a (y y ) t x = x = x = x = single input x and 2 outputs Z, and Z. The circuit also has a RESET input to initialize the circuit in state. f the circuit is to be implemented using D-FFs, derive a. The simplified Boolean expression of all FF inputs. (4 points) b. The simplified Boolean expressions of the outputs Z, and Z. (4 points) c. Classify each of the two outputs (Z and Z ) as either Moore type or Mealy type and justify. (2 points) d. Draw the logic diagram of the circuit. (2 points)

() f the shown state transition table is implemented using a single ROM and a single register: Page of PS * NS ** ( ) Z Z (y y ) t x = x = x = x = * PS = Present State ** NS = Next State i. Define the size of the required ROM, and its total capacity in bits. (3 points) ii. What is the size of the register in bits? ( Point) iii. Give the complete ROM Table. (2 Points) iv. Draw the block diagram of this implementation (You must CLEARLY LABEL each signal and each component inputs and outputs) (3 Points)

() Page of For the same PS * NS ** ( ) Z Z (y synchronous sequential y ) t x = x = x = x = circuit above assuming the initial state to be (y y = ), draw the * PS = Present State waveforms of y, y, Z ** NS = Next State & Z in response to the shown applied input on x. ASSUME that the circuit uses negative edge-triggered D-FFs. (6 Points)