Midterm Examination II

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

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

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

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

Lecture 11: Synchronous Sequential Logic

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

Chapter 5 Sequential Circuits

CprE 281: Digital Logic

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

AIM: To study and verify the truth table of logic gates

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

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

REPEAT EXAMINATIONS 2002

COMP2611: Computer Organization. Introduction to Digital Logic

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.

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

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

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

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

COE328 Course Outline. Fall 2007

Chapter 3. Boolean Algebra and Digital Logic

The reduction in the number of flip-flops in a sequential circuit is referred to as the state-reduction problem.

Unit 11. Latches and Flip-Flops

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

ELCT201: DIGITAL LOGIC DESIGN

EXPERIMENT 13 ITERATIVE CIRCUITS

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

CS 151 Final. Instructions: Student ID. (Last Name) (First Name) Signature

Logic Design II (17.342) Spring Lecture Outline

Principles of Computer Architecture. Appendix A: Digital Logic

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Asynchronous (Ripple) Counters

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

EE292: Fundamentals of ECE

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

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

Course Administration

UNIVERSITY OF MASSACHUSSETS LOWELL Department of Electrical & Computer Engineering Course Syllabus for Logic Design Fall 2013

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Using minterms, m-notation / decimal notation Sum = Cout = Using maxterms, M-notation Sum = Cout =

Chapter 5 Synchronous Sequential Logic

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

Computer Architecture and Organization

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

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

Chapter Contents. Appendix A: Digital Logic. Some Definitions

CprE 281: Digital Logic

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

UNIVERSITI TEKNOLOGI MALAYSIA

Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

Lecture 8: Sequential Logic

Chapter 11 State Machine Design

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

Digital Fundamentals: A Systems Approach

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

Chapter. Synchronous Sequential Circuits

Subject : EE6301 DIGITAL LOGIC CIRCUITS

CHAPTER 4: Logic Circuits

EECS 270 Midterm Exam Spring 2011

CHAPTER 4: Logic Circuits

Sequential Logic Circuits

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

CprE 281: Digital Logic

Synchronous Sequential Logic

Question Bank. Unit 1. Digital Principles, Digital Logic

LESSON PLAN. Sub Code: EE2255 Sub Name: DIGITAL LOGIC CIRCUITS Unit: I Branch: EEE Semester: IV

Microprocessor Design

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

Previous Lecture Sequential Circuits. Slide Summary of contents covered in this lecture. (Refer Slide Time: 01:55)

EE 210. LOGIC DESIGN LAB.

INC 253 Digital and electronics laboratory I

MODULE 3. Combinational & Sequential logic

ECE 331 Digital System Design

EECS 270 Midterm 1 Exam Closed book portion Winter 2017

ECE 301 Digital Electronics

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

EECS150 - Digital Design Lecture 15 Finite State Machines. Announcements

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Synchronous Sequential Logic

To design a sequential logic circuit using D-Flip-flop. To implement the designed circuit.

Chapter 5: Synchronous Sequential Logic

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

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

EECS 270 Final Exam Spring 2012

Experiment # 12. Traffic Light Controller

ME 515 Mechatronics. Introduction to Digital Electronics

Logic Design. Flip Flops, Registers and Counters

Analogue Versus Digital [5 M]

ECE 301 Digital Electronics

Universidad Carlos III de Madrid Digital Electronics Exercises

Register Transfer Level in Verilog: Part II

Unit-5 Sequential Circuits - 1

Transcription:

Midterm Examination II EE 203 - Digital Systems DESIGN (Fall 2015) MEF University Instructions Assigned: 6:30pm on December 17, 2015. Due: 8:00pm on December 17, 2015. Instructor: Şuayb Ş. Arslan. Name: Student ID: 1. For every design you make or the solution you present, please show every step you take. I am looking for clear development of your approach for the solution so that you will be able to get partial credit. 2. This is a closed textbook exam. You may not work on the exam with anyone else, ask anyone questions, or consult the digital version of the textbook or other sites on the Web for answers. 3. Single-sided one page cheat sheet is allowed. 4. You can use scratch paper and attach them to this hard-copy if you need more space. 5. Please make sure your hand writing is legible. Although you will not be penalised due to a potential disorganization in your submission, but it would be best if you can keep your solutions and paper organization at a certain quality. 6. Do not forget to staple or attach the pages of the hard copy you hand in. I wish you the best of luck! Question # 1 2 3 4 Bonus Total Carry Sequential Sequential Multiplexers Look-Ahead Comparators Circuit Circuit and Subject Adder and Decoders Analysis Design Design Points 25 20 20 35 10 100(+5+5) 1

Problem 1 (Carry Look-Ahead Logic - 25 points) Let us remember the full adder implementation using two half adders. When you attempt to implement an n-bit adder, the logic diagram of the i-th stage of the adder should look like something as shown below. There are two new variables we have defined in class which were P i = A i B i and G i = A i B i. With these new variables, it is clear from the logic diagram that the sum and the carry-out shall be given by S i = P i C i and C i+1 = G i +P i C i. Figure 1: Full adder with P and G shown. 1. While designing a 2-bit carry look ahead logic, let us assume that we make an error i.e., a missing circle around the plus sign and write down P i = A i +B i instead of P i = A i B i (I used bold case to differentiate Ps). This error shall lead to different sum and carry-out values in the full adder implementation which are named as S i and C i+1. Please determine the extra logic (the gate names and how many you use) you need to express S i in terms of S i and C i+1 in terms of C i+1. 2. Express the carry-out values C 1 and C 2 in terms of P 0,P 1,G 0 and G 1. 3. Using the above logic (with the error), let us assume we generate the carry information using a carry look ahead generator (which has inputs P 1,G 1,P 0,G 0,C 0 and outputs C 2,C 1,C 0 - think of this as a block box, you do not need to draw the logic diagram) and we would like to design a 2-bit carry look ahead adder. Apart from the lookahead generator, how many extra gates (AND, OR, NOT and XOR gates) are needed to implement the correct adder? Justify your answer. 2

Problem 2 (Binary comparators - 20 points) Consider a 1-bit comparator that has two inputs X and Y and three outputs where the first output is asserted if X = Y, second output is asserted if X > Y and finally the last output is asserted if Y > X. 1. Design the 1-bit comparator using a decoder. 2. Synthesize a combinational circuit that can compare two 2-bit numbers A and B using hierarchical design methodology. Show your logic design in the picture provided below. 3. Can you use your 2-bit comparator to design a 3-bit comparator? Please show how. 4. (Bonus+5) Design the circuit of 2. using multiplexers. If you need to use extra gates, use XOR gates only. Figure 2: Hierarchical design of 2-bit comparator. 3

Problem 3 (Sequential Circuit Analysis - 20 points) Consider the sequential circuit shown below. Figure 3: A sequential circuit diagram. 1. Label the outputs of flipflops D1 and D2 with A and B, respectively. Derive the state and output equations. 2. Draw state table and state diagram of the circuit. Label your states appropriately. 3. Is this circuit a Mealy or Moore machine? Justify your answer. 4. Can I use this circuit as a counter? If yes, how would you name it? What s the meaning of the output values y? 4

Problem 4 (Sequential Circuit Design - 35 points) Digital storage or communication devices transmit or store bits according to predefined format. This format information usually includes a fixed sequence of bits to be used for synchronization (sync). This so called sync pattern is useful to determine the data frame and hence correct bit locations can be identified to start extracting the raw data. The raw data is usually transformed to a bit sequence such that it does not include the sync pattern anywhere in the bitstream. This way, the predefined sync patterns can be used to identify where the raw data is located. In this question, we shall design a 4-bit sync pattern 1001 detector in a given input bit stream using JK flip-flops. The picture below shows an output of the circuit for the given input bit stream (note that input and output bits may not be in sync due to delay, but we assume the input-output relationship to be time invariant). Figure 4: A sequence detector is a useful circuit for modern digital systems. 1. Draw the appropriate state diagram based on the above specification. Please reduce states if possible. 2. Choose an appropriate binary state labeling (it may not be necessarily optimal). 3. Drive the state table that includes current states, next states, circuit input x, circuit output y as well as JK flip-flop inputs Js and Ks. (Hint: Use excitation tables) 4. Use Karnough maps to minimize the Boolean expressions for y, Js and Ks. 5. Implement the final logic diagram of the circuit using only NAND gates. 6. (Bonus+5) Note that if the input bit steam was 010010011101..., the sequence detector shall produce the bit stream 000010010000... which is not viable because it would mean there is no data between two sync patterns. Such inconsistency can be used to detect errors as well. Can you propose an error detection logic (not correction) to circumvent this problem? You do not need to implement it. 5