UNIVERSITI TEKNOLOGI MALAYSIA

Similar documents
Experiment 8 Introduction to Latches and Flip-Flops and registers

CHAPTER 6 COUNTERS & REGISTERS

Registers and Counters

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

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

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

Scanned by CamScanner

Counter dan Register

Asynchronous (Ripple) Counters

EKT 121/4 ELEKTRONIK DIGIT 1

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

MODULE 3. Combinational & Sequential logic

Chapter 2. Digital Circuits

Module -5 Sequential Logic Design

Chapter 7 Counters and Registers

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

Registers and Counters

ECE 263 Digital Systems, Fall 2015

Logic Design. Flip Flops, Registers and Counters

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

Lecture 12. Amirali Baniasadi

LATCHES & FLIP-FLOP. Chapter 7

Other Flip-Flops. Lecture 27 1

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

ASYNCHRONOUS COUNTER CIRCUITS

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 Fundamentals: A Systems Approach

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

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

EET2411 DIGITAL ELECTRONICS

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

Counters

RS flip-flop using NOR gate

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

Chapter 4. Logic Design

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

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

Vignana Bharathi Institute of Technology UNIT 4 DLD

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

Logic Design Viva Question Bank Compiled By Channveer Patil

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

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

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Chapter 3 Unit Combinational

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

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

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

2. Counter Stages or Bits output bits least significant bit (LSB) most significant bit (MSB) 3. Frequency Division 4. Asynchronous Counters

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

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

Digital Logic Design ENEE x. Lecture 19

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW

RS flip-flop using NOR gate

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

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

Chapter. Synchronous Sequential Circuits

Flip-Flops and Sequential Circuit Design

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

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

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

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

Registers and Counters

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

CHAPTER 4: Logic Circuits

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

WINTER 15 EXAMINATION Model Answer

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

VU Mobile Powered by S NO Group

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

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

Principles of Computer Architecture. Appendix A: Digital Logic

MC9211 Computer Organization

CHAPTER 4: Logic Circuits

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

Lecture 8: Sequential Logic

Unit 11. Latches and Flip-Flops

Chapter 5 Sequential Circuits

Introduction to Sequential Circuits

TRAINING KITS ON DIGITAL ELECTRONIC EXPERIMENTS. Verify Truth table for TTL IC s AND, NOT, & NAND GATES

Universal Asynchronous Receiver- Transmitter (UART)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER

Decade Counters Mod-5 counter: Decade Counter:

Chapter Contents. Appendix A: Digital Logic. Some Definitions

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

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

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

DIGITAL ELECTRONICS MCQs

Digital Logic Design I

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


Digital Circuits ECS 371

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

Serial In/Serial Left/Serial Out Operation

CHAPTER1: Digital Logic Circuits

Course Administration

Registers and Counters

ELCT201: DIGITAL LOGIC DESIGN

Chapter 6 Registers and Counters

Transcription:

SULIT Faculty of Computing UNIVERSITI TEKNOLOGI MALAYSIA FINAL EXAMINATION SEMESTER I, 2016 / 2017 SUBJECT CODE : SUBJECT NAME : SECTION : TIME : DATE/DAY : VENUES : INSTRUCTIONS : Answer all questions from Part A and B in this question booklet. For Part B, read the questions carefully and show ALL your works in details. This examination will contribute 35% towards the total marks of 100 points. Warning! Students who are caught cheating during the examination will be reported to disciplinary board for action to suspend the student for one or two semesters. (Please Write Your Lecturer Name And Section In Your Answer Booklet) Name I/C No. Year / Course Section Lecturer Name This question paper consists of ( ) printed pages excluding this page.

PART A: 15 OBJECTIVE QUESTIONS [Total mark 15 points] Answer all the questions. Read each statement carefully. Please answer in Attachment A (page 10). 1. One of the parallel adder types that is based on how it handles a carry value is a carry adder. A) generation B) look back C) override D) ripple 2. A decoder uses gate if we want the output to be HIGH. A) AND B) OR C) NAND D) XNOR 3. Choose the FALSE statement about DEMUX. 4. A) It is also known as a data selector. B) A DEMUX is basically the reverse of the multiplexing function. C) It takes digital information from one line and distributes it to a given number of output lines. D) A decoder can also be used as a DEMUX. Figure 1 Select the CORRECT characteristic of the Figure 1 above. A) It is a negative edge-triggered flip-flop. B) It is a negative edge-triggered latch. C) It is a positive edge-triggered flip-flop. D) It is a positive edge-triggered latch. 1

5. Which of the following statements is FALSE about the characteristics of sequential and combinational logic circuits? A) Combinational logic circuit does not contain memory element compared to sequential logic circuit. B) In order to be fully functional, both combinational and sequential logic circuits require input clock triggered. C) Sequential logic circuit considers the previous state output before the current output circuit is produced. D) Sequential logic circuit can be constructed using basic logic gates and memory devices. 6. Which of the following statements is FALSE about a latch and a flip-flop? A) Latch and flip-flop can store binary bit 0 or 1. B) A latch requires a clock input before output latch can be changed. C) A flip-flop output will change according to the input flip-flop at the clock edge triggered. D) A latch output will change according to the input level of the latch. 7. Which of the following statements is FALSE about an S-R latch? A) It has a SET state. B) It has a RESET state. C) It has a HOLD state. D) It has a TOGGLE state. 8. How many different states does a 3-bit asynchronous counter has? A) 3 C) 8 B) 6 D) 9 9. What is the state value (in decimal) of Q2, Q1 and Q0 in the following circuit in order to produce a HIGH output at X? A) 5 C) 7 B) 6 D) 8 2

10. What is the maximum state of a typical MOD 10 (decade) binary counter? A) 0000 C) 1111 B) 1010 D) 1001 11. Referring to Figure 2, what is the signal frequencies of X and Y? A) X = 0.25 MHz, Y = 0.125 MHz. B) X = 4 MHz, Y = 2 MHz. C) X = 0.125 MHz, Y = 0.25 MHz. D) X = 2 MHz, Y = 4 MHz. Figure 2 12. Which of the following statements is TRUE about synchronous counter? A) Synchronous counter can count up and count down simultaneously (with the same clock cycle). B) If synchronous counter is implemented with N flip-flops in its sequential circuit, the number of valid states of the counter is always 2 N. C) Synchronous counter can be implemented using D flip-flops, as long as the clock source of the flip flops is taken from the common clock source. D) Synchronous counter can be implemented using any type of flip-flop, as long as the clock source of flip flops is taken from the output of the preceding flip-flops. 13. The following are Shift Registers, EXCEPT: A) SISO Serial In, Serial Out C) SILO Serial In, Last Out B) SIPO Serial In, Parallel Out D) PIPO Parallel In, Parallel Out 14. The following statements are true about Shift Register (SR) EXCEPT: A) SR stores binary data C) SR consists of several latches B) SR performs data rotate D) SR is used for data transfer 15. A MOD 10 Ring counter requires. A) ten flip-flops C) four flip-flops B) five flip-flops D) eight flip-flops 3

PART B: 4 SUBJECTIVE QUESTIONS [Total mark 85 points] Question 1 [15 Marks] Answer the following questions about some functions of combinational logic. (a) A logic symbol of a parallel adder for summing TWO binary numbers is illustrated in Figure 3. If A = 0011 2 and B = 0110 2 with the carry in, C 0 = 0, complete Table 1 by reproducing it in your answer booklet. Assume pin label 1 represents LSB. [4M] Figure 3 Table 1 Pin Label (i) Input Carry Out Sum A i B i C i S i 1 1 0 0 1 2 1 1 1 0 3 0 1 1 0 4 0 0 0 1 (b) Draw the logic circuit for a binary decoder to detect the binary code 10010 which produces an active-low output. Assume the inputs are represented as A 4 A 3 A 2 A 1 A 0. [3M] Answer: 4

(c) Given an active HIGH 7-segment display in Figure 4 displaying a digital number from a decoder that based on the BCD value, fill in Table 2. Reproduce Table 2 in your answer booklet. [4M] Figure 4 Table 2 BCD Input Segment Output Display A B C D a b c d e f g 0 1 0 0 0 1 1 0 0 1 0 4 0 1 1 1 1 1 1 0 0 0 0 7 1 0 0 1 1 1 1 1 0 1 1 9 (d) Figure 5 (in page 11) shows the waveforms of data-input D i and data-select S i applied to a multiplexer. Complete Figure 5 by drawing the waveform output of X in relation to the inputs. Label each segment of output X with the correct data input selection. [4M] Question 2 [15 Marks] (a) Figure 6 shows a basic circuit of a latch. Answer the following based on the circuit. Figure 6 5

(i) Complete the following truth table with initial values of Q and Q are bit 1 and 0. [4M] Input Output A B Q Q State 0 0 NC NC No change 0 1 0 1 Latch RESET 1 0 1 0 Latch SET 1 1 0 0 Invalid (ii) What type of latch is represented by the circuit in Figure 6? [1M] SR Latch, Active High SR Latch (b) Referring to Figure 7 in page 12, complete the output Q for a Gated S - R each state that occurs for each transition in the timing diagram. [3M] latch. Label (c) Referring to Figure 8, answer the following questions. Assume Q is initially low. Q Q Figure 8 (i) Draw output in the timing diagram at page 12. (ii) List the input priority of the flip-flop from the highest to the lowest. PRE, CLR CLK JK [3M] [2M] (d) Draw the implementation of negative edge T flip-flop by using JK flip-flop. [2M] 6

Question 3 [40 Marks] Figure 9: Asynchronous binary counter (a) Based on Figure 9, draw the State Diagram for the counter by using binary representation. [4M] Z000 111 Z000 Z000 001 Z000 110 Z000 010 Z000 101 Z000 100 Z000 011 7

(b) Redesign Figure 9, by considering new requirements as follows: 3-bit count up ripple counter with Modulus-5; using J-K Flip-Flop and with negative edge triggered clock. [6M] (c) Rolek Corp is designing its new 2-bit binary counter. The state diagram of the counter is given in Figure 10: m=0 01 m=1 m=1 m=1 m=0 00 11 m=0 m=1 m=0 10 Figure 10: State Diagram for 2-bit Rolek binary synchronous counter Using T flip-flops, design the sequential logic circuit of the latest Rolek binary counter as 8

specified above, by answering all questions below. (i) Complete the following Next State and Transition Table. [8M] Input Present State Next State FF 1 FF 0 m Q 1 Q 0 Q 1 Q 0 T 1 T 0 (ii) Get the optimized SOP Boolean expressions using K-Map. [4M] 9

(iii) Draw the complete final circuit design. [3M] x (d) For the sequential circuit shown in Figure 11, answer the following questions: Figure 11: Sequential Circuit 10

(i) Derive the next-state equations for each flip-flop and output Y. [3M] ( ) (ii) Produce the next state table. [8M] Input, Present State Next State Output, Cnt Q1 Q0 Q1 + = D1 Q0 + = D0 Y 0 0 0 0 1 1 0 0 1 0 0 1 0 1 0 1 1 0 0 1 1 1 0 1 1 0 0 1 1 1 1 0 1 1 0 1 1 1 0 0 1 0 1 1 1 0 0 1 (iii) Draw the state diagram. [4M] 11

Question 4 [15 Marks] (a) Initially at t 0, a 5-bit SIPO shift register is cleared. Then, at t 1 the data word 19 10 is serially entered. LSB is shifted in first. (i) Draw the circuit for a 5-bit SIPO using D flip-flop. [3M] (ii) What are the content of the SIPO shift register at t 3? Show your works in a table form. Data 1 0 0 1 1 FF0 FF1 FF2 FF3 FF4 Intial 0 0 0 0 0 1 1 0 0 0 0 2 1 1 0 0 0 3 0 1 1 0 0 [3M] (iii) At what clock cycle can all the input data be read at the output and state the output [2M] After 5 clock cycle data can be read at the output. Output: Data 1 0 0 1 1 12

(b) Answer the following questions based on a Johnson counter. (i) Draw the logic diagram for a MOD 8 Johnson counter. [3M] D D D D CLK Q0' FF3 FF2 FF1 FF0 (ii) Write the counting sequence in a table form. Initially the content of all flip-flops are binary 0. [4M] Q3 Q2 Q1 Q0 Q0' Clock, t FF3 FF2 FF1 FF0 Q0' Initial 0 0 0 0 1 1 1 0 0 0 1 2 1 1 0 0 1 3 1 1 1 0 1 4 1 1 1 1 0 5 0 1 1 1 0 6 0 0 1 1 0 7 0 0 0 1 0 8 0 0 0 0 1 All the best!!! Show ALL your works. 13

ATTACHMENT A Name Matric No. Lecturer Dr. Foad Dr. Ismail Dr. Raja Zahilah Mr. Muhalim Ms Rashidah Ms. Marina PART A (OBJECTIVE) Mark your answer clearly. Example: =A= =B= =C= =D= Objectives /15 Question 1 /15 Question 2 /15 Question 3 /40 Question 4 /15 Total /100 1. =A= =B= =C= =D= 9. =A= =B= =C= =D= 2. =A= =B= =C= =D= 10. =A= =B= =C= =D= 3. =A= =B= =C= =D= 11. =A= =B= =C= =D= 4. =A= =B= =C= =D= 12. =A= =B= =C= =D= 5. =A= =B= =C= =D= 13. =A= =B= =C= =D= 6. =A= =B= =C= =D= 14. =A= =B= =C= =D= 7. =A= =B= =C= =D= 15. =A= =B= =C= =D= 8. =A= =B= =C= =D= 14

ATTACHMENT B Answer for Question 1 (d) D 0 D 1 D 2 D 3 S 0 S 1 X (Data In (D i )) Figure 5 Answer: X 15

Answer for Question 2 (b) S R EN Q State Disable (Hold) Set Reset Set Disable (hold) Reset Figure 7 16

Answer Question 2 (c)(i) 17