Why do we need to debounce the clock input on counter or state machine design? What happens if we don t?

Similar documents
Open book/open notes, 90-minutes. Calculators permitted. Do not write on the back side of any pages.

Good Evening! Welcome!

Good Evening! Welcome!

Good Evening! Welcome!

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

EE292: Fundamentals of ECE

Asynchronous (Ripple) Counters

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

ECE 263 Digital Systems, Fall 2015

Chapter. Synchronous Sequential Circuits

Final Examination (Open Katz, Calculators OK, 3 hours)

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

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

Logic Design II (17.342) Spring Lecture Outline

Other Flip-Flops. Lecture 27 1

Sequential Logic Design CS 64: Computer Organization and Design Logic Lecture #14

Experiment 8 Introduction to Latches and Flip-Flops and registers

Unit 11. Latches and Flip-Flops

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.

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

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

Computer Organization & Architecture Lecture #5

Chapter 3 Unit Combinational

Lecture 8: Sequential Logic

THE KENYA POLYTECHNIC

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

DIGITAL CIRCUIT COMBINATORIAL LOGIC

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

Counter dan Register

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

Page 1) 7 points Page 2) 16 points Page 3) 22 points Page 4) 21 points Page 5) 22 points Page 6) 12 points. TOTAL out of 100

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

Multiplexor (aka MUX) An example, yet VERY useful circuit!

FE REVIEW LOGIC. The AND gate. The OR gate A B AB A B A B 0 1 1

Combinational vs Sequential

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

CHAPTER1: Digital Logic Circuits

University of Victoria. Department of Electrical and Computer Engineering. CENG 290 Digital Design I Lab Manual

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Physics 323. Experiment # 10 - Digital Circuits

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

RS flip-flop using NOR gate

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

D Latch (Transparent Latch)

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

CSE 275 Digital Design Lab Lab 8 Serial Adder/Subtractor Penn State Erie, The Behrend College Fall Semester 2007 Number of Lab Periods: 2

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Fall 2000 Chapter 5 Part 1

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

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

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

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

Counters

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

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

Chapter 5 Sequential Circuits

Computer Systems Architecture

12/31/2010. Overview. 12-Latches and Flip Flops Text: Unit 11. Sequential Circuits. Sequential Circuits. Feedback. Feedback

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

SEMESTER ONE EXAMINATIONS 2002

Registers and Counters

Today 3/8/11 Lecture 8 Sequential Logic, Clocks, and Displays

Universal Asynchronous Receiver- Transmitter (UART)

Sequential Logic and Clocked Circuits

MC9211 Computer Organization

Chapter 2. Digital Circuits

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

CHAPTER 6 COUNTERS & REGISTERS

Synchronous sequential circuits

Registers and Counters

Quiz #4 Thursday, April 25, 2002, 5:30-6:45 PM

Synchronous Sequential Logic

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

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

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

Midterm Exam 15 points total. March 28, 2011

EET2411 DIGITAL ELECTRONICS

Logic Design. Flip Flops, Registers and Counters

COMP12111: Fundamentals of Computer Engineering

Sequential Logic Circuits

Logic Design II (17.342) Spring Lecture Outline

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

UNIVERSITI TEKNOLOGI MALAYSIA

WINTER 14 EXAMINATION

CHAPTER 11 LATCHES AND FLIP-FLOPS

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

CHAPTER 4: Logic Circuits

Chapter 11 Latches and Flip-Flops

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

CHAPTER 4: Logic Circuits

WEEK 10. Sequential Circuits: Analysis and Design. Page 1

CS/ECE 250: Computer Architecture. Basics of Logic Design: ALU, Storage, Tristate. Benjamin Lee

Experiment # 4 Counters and Logic Analyzer

Digital Logic Design I

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

CprE 281: Digital Logic

Transcription:

EEL 37 Digital Logic and Computer Systems Test 2 Fall Semester 25. Switch debouncing. (2 pts.) Why do we need to debounce the clock input on counter or state machine design? What happens if we don t? ( pts.) 2. Flip Flop Creation Using the JK Flip-Flop shown below and any logic gate (NANDs, ANDs, ORs, INVERTERs, etc.), create a T Flip-Flop with a SYNCHRONOUS clear. Assume all inputs & outputs to be high true (i.e., active high). Given: J Q K /Q + logic Design this: T Q CLR /Q J K Q + Q /Q Show work and draw your circuit here: CLR T Q + X Q /Q 2

EEL 37 Digital Logic and Computer Systems Test 2 Fall Semester 25 ( pts.) 3. Given the following ASM chart, complete the following timing diagram: A S B S X Y C S2 State S X Y A B C Notes:. Fill in the State and A,B,C signals above. 2. Show propagation delays and assume them to be this width. -> <- (5 pts.). Given the following logic equation and signal definitions, implement the equation using OPEN COLLECTOR NAND gates only (along with any necessary resistors) D = /( A+B ) + C A.L, B.H, C.H, D.L Draw your circuit here: OC 3

EEL 37 Digital Logic and Computer Systems Test 2 Fall Semester 25 (2 pts.) 5. Use the ALU shown on the next page for this problem. Complete the following timing diagram (as far as you can). Put the answer in binary for the MUXA Bus, MUXB Bus, REGA Bus, REGB Bus, and OUTPUT Bus below. INPUT Bus MSA MSA MSB MSB MSC2 MSC MSC MUXA Bus REGA Bus MUXB Bus REGB Bus OUTPUT Bus Indicate exactly where each value changes and show propagation delays.

EEL 37 Digital Logic and Computer Systems Test 2 Fall Semester 25 ALU Figure: Given below is the design of the ALU used in Lab 6. INPUT Bus REGA Bus REGB Bus OUTPUT Bus MSA MSA MUXA Bus MUX A s REG A MUXB Bus MUX B s REG B MSB MSB REGA Bus REGB Bus Combinatorial Logic MSC2: 3 MUX C s OUTPUT Bus MSA/MSB MSA/MSB INPUT Bus REGA Output Bus REGB Output Bus OUTPUT Bus CONTROL BYTE format X, MSA:, MSB:, MSC2: (Note the first bit X is a don t care ) MSC2: (Most Significant Bit is on the left) = > REGA Bus to OUTPUT Bus = > REGB Bus to OUTPUT Bus = > bit wise AND REGA/REGB Bus to OUTPUT Bus = > bit wise OR REGA/REGB Bus to OUTPUT Bus = > complement of REGA Bus to OUTPUT Bus = > REGA Bus Plus REGB Bus Plus Cin to OUTPUT Bus & Cout (There is an external Cin and an external Cout for the ALU) = > shift REGA Bus left one bit to OUTPUT Bus ( is shifted into OUTPUT Bus[].) = > shift REGA Bus right one bit to OUTPUT Bus ( is shifted into OUTPUT Bus[3].) 5

EEL 37 Digital Logic and Computer Systems Test 2 Fall Semester 25 (2 pts.) 6. Given the following block diagram for a controller that controls the ALU on the previous page, complete the following ASM chart that will perform the following functions. IR IR Controller MSA MSA MSB MSC2 MSC MSC When IR,IR = : Load REGA with data (from the INPUT Bus). Then, complement the data in REGA and store it into REGB. When IR,IR = (NOR operation) /(REGA OR REGB) => REGA, preserve REGB. When IR,IR = (Load and Sum operation) Load REGA with data (from the INPUT Bus). Load REGB with data (from the INPUT Bus). REGA plus REGB => REGA When IR,IR = (Complement both registers) /REGA => REGA /REGB => REGB After each function has been performed, go back to StateA. For maximum credit, use conditional outputs when possible and the minimum number of states. When not specified: Hold REGA, Hold REGB, MSC = StateA IR,IR 6

EEL 37 Digital Logic and Computer Systems Test 2 Fall Semester 25 7. Counter Design. For the State Diagram given below, answer the questions that follow. (3 pts.) Hold = False Hold = True S Hold = True Hold = False Hold = True If Hold = True, remain in the same state. If Hold = False, count as shown left. S: Q,Q = S: Q,Q = S2: Q,Q = S3: Q,Q = S2 S3 Hold = False Note: Hold is a synchronous signal. Hold = False Hold = True S You are given a T flip-flop and JK flip-flop to implement the design. The T flip-flop will be used for the Most Significant counter bit while the JK output will be used for the Least Significant counter bit. Characteristic tables are given for each device below: T Q + Q /Q J K Q + Q /Q Fill out the following Next State Table: Hold Q (T flip-flop) Q (JK flip-flop) Q + Q + T J K 7

EEL 37 Digital Logic and Computer Systems Test 2 Fall Semester 25 7. (continued) Derive the MSOP logic equation required for the T flip-flop input: T = Derive the MSOP logic equation required for the J input of the JK flip-flop: J = 8

EEL 37 Digital Logic and Computer Systems Test 2 Fall Semester 25 8. ROM Based ASM Implementations. ( pts.) You are given a K x 8 ROM based state machine as shown below with the following ROM contents: +5V K x 8 ROM A:3 D7: Not connected ROM Contents in Hex: Address Data IN.L Q.H Q.H A2 A A OE D3 D2 D clk D clk Q Q Q.H Q.H 3F8 5 3F9 3FA 52 3FB A 3FC B 3FD E 3FE 25 3FF 3 GND D D X.L Y.H Fill out the following Logic Next State Table for the above design: IN Q Q Q+ Q+ X Y 9

EEL 37 Digital Logic and Computer Systems Test 2 Fall Semester 25 9. Suppose the ROM contents of a ROM Based State Machine design produce the following logic table: ( pts.) IN Q Q Q+ Q+ X Y Draw the corresponding ASM Diagram for it: