Practice Homework Problems for Module 3

Similar documents
Practice Homework Solution for Module 3

P U Q Q*

P U Q Q*

Note that none of the above MAY be a VALID ANSWER.

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

Unit 11. Latches and Flip-Flops

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

Advanced Digital Logic Design EECS 303

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Digital Fundamentals: A Systems Approach

Asynchronous (Ripple) Counters

Introduction to Sequential Circuits

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

Logic Design II (17.342) Spring Lecture Outline

Digital Fundamentals

INTRODUCTION TO SEQUENTIAL 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.

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

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

Digital Fundamentals: A Systems Approach

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

Course Administration

Lecture 8: Sequential Logic

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

Chapter 5: Synchronous Sequential Logic

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

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

EECS150 - Digital Design Lecture 15 Finite State Machines. Announcements

D Latch (Transparent Latch)

EE 109 Homework 6 State Machine Design Name: Score:

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

PGT104 Digital Electronics. PGT104 Digital Electronics

Sequential Design Basics

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

Flip-Flops and Sequential Circuit Design

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

Chapter 11 Latches and Flip-Flops

Counters

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Universal Asynchronous Receiver- Transmitter (UART)

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).

Combinational vs Sequential

Chapter 2. Digital Circuits

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

ECE 341. Lecture # 2

Other Flip-Flops. Lecture 27 1

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

ECE 263 Digital Systems, Fall 2015

EECS 270 Midterm 2 Exam Closed book portion Fall 2014

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

EECS 270 Final Exam Spring 2012

Feedback Sequential Circuits

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

EE 121 June 4, 2002 Digital Design Laboratory Handout #34 CLK

The NOR latch is similar to the NAND latch

RS flip-flop using NOR gate

Digital Logic Design ENEE x. Lecture 19

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

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

Digital Fundamentals 11/2/2017. Summary. Summary. Floyd. Chapter 7. Latches

Counter dan Register

Introduction to Microprocessor & Digital Logic

Digital Logic Design I

ASYNCHRONOUS COUNTER CIRCUITS

Sequential Logic Circuits

Chapter 5 Synchronous Sequential Logic

UNIVERSITI TEKNOLOGI MALAYSIA

FPGA Implementation of Sequential Logic

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

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

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

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

Registers and Counters

TMEL53, DIGITALTEKNIK. INTRODUCTION TO SYNCHRONOUS CIRCUITS, FLIP-FLOPS and COUNTERS

Logic Design. Flip Flops, Registers and Counters

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

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

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

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

Administrative issues. Sequential logic

L5 Sequential Circuit Design

Chapter 5 Flip-Flops and Related Devices

Chapter. Synchronous Sequential Circuits

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall,

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Asynchronous Counter

EKT 121/4 ELEKTRONIK DIGIT 1

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

Serial In/Serial Left/Serial Out Operation

Logic Design II (17.342) Spring Lecture Outline

Switching Circuits & Logic Design

Transcription:

Practice Homework Problems for Module 3. Given the following state transition diagram, complete the timing chart below. d 0 0 0 0d dd 0 d X Y A B 0 d0 00 0 A B X Y

2. Given the following state transition diagram, determine the next state equations it represents in minimum sum-of-products form. d 0 0 0 0d dd 0 X Y A B 0 d0 00 0 d X Y A B X* Y* 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X* and Y* are shorthand for the next state of X and Y X X X X B B A A B B A A B B Y Y Y Y Y Y X* = Y* = 2

3. Given the timing diagram, below, for a state machine that has one input (EN) and two state variables (Q and Q0), derive a state transition diagram: CLK Q Q0 EN 00 0 EN Q Q0 0 3

4. Given the following state transition diagram, determine: A XY 00 0 0 0 0 (a) The next state equation for X if the state machine is designed for minimum cost (b) The next state equation for X if the state machine is designed for minimum risk (c) The next state equation for Y if the state machine is designed for minimum cost (d) The next state equation for Y if the state machine is designed for minimum risk 5. A new type of flip-flop, the RG ( Raul Good ), is described by the following PS-NS table. Derive its next state equation and excitation table. R G Q Q* 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Excitation table: Q Q* R G 0 0 0 0 Q* = 4

6. Given the following timing chart for an edge-triggered D flip-flop, determine the following based on the excitation signals (D and CLK) depicted: D 5 ns CLK Q Q_L (a) The nominal setup time provided for the D flip-flop (b) The nominal hold time provided for the D flip-flop (c) The nominal clock pulse width provided for the D flip-flop (d) The t PHL(C Q) of the D flip-flop (e) The t PLH(C Q) of the D flip-flop 5

7. Complete the timing chart, below, for a D latch, and answer the questions that follow. Assume each gate has 5 ns of delay (t PLH and t PHL ), and that each division on the chart is 5 ns. (See the Clicker Quiz for a detailed analysis of the latch portion of the circuit.) D DN D 2 DN C 2 2 3 3 2 3 X XN 2 3 Q QN C X XN Q QN (a) Determine the minimum time input C should be asserted (while the D input remains stable) to ensure reliable operation of the latch. (b) Determine the nominal setup time provided for the D latch. (c) Determine the nominal hold time provided for the D latch. (d) Determine the t PLH(C Q) of the D latch. (e) Determine the t PHL(D Q) of the D latch. 6

8. Implement a dorm-room alarm that accommodates eight sensor inputs, labeled S0 through S7, plus an ARM/DISARM pushbutton than can be used to toggle the state of the alarm system (a GREEN LED should be illuminated if the system is armed, and a YELLOW LED should be illuminated if the system is disarmed). If any sensors are asserted while the alarm is armed, the number of the highest sensor input asserted should be displayed on a 7-segment LED and a RED LED (that indicates the alarm has been tripped) should start blinking (at a Hz rate, based on a clock signal provided by the function generator). The RED LED should stop blinking when the alarm is disarmed, and the 7-segment display should be blank (the 7-segment display should also be blank if the alarm is armed and none of the sensor inputs are asserted). Draw a Moore model for the arm/disarm state machine, and a separate Moore model for the alarm tripped state machine. Create an ABEL source file for your design, with all inputs and outputs clearly defined. Create the following: a. Moore model of arm/disarm state machine b. Moore model of alarm tripped state machine c. ABEL source file listing Digital Dorm Alarm S7 S6 S5 S4 S3 S2 S S0 0 Armed Disarmed Alarm Tripped Hz Clock Highest Number Active Sensor Arm/Disarm PB The DDA (Digital Dorm Alarm) in action. The GREEN LED indicates the alarm is in the armed state, the blinking RED LED indicates the alarm has been tripped, and the 7-segment display indicates the highest number sensor that is active. The Arm/Disarm pushbutton toggles the alarm between the armed and disarmed states. The 7-segment display is blank if the alarm is disarmed or, if armed, none of the sensor inputs are asserted. 9. Given the following state transition diagram, determine: (a) Assuming the state machine depicted is initialized to state 00, determine the output sequence generated by the input sequence 000000 (b) Determine the embedded binary sequence recognized by this state machine 7

0. Inspired by the (ancient) Beach Boys hit single, Fun Fun Fun, you wish to implement a T-Bird Tail Light Turn Signal Controller (TBTLTSC) hoping, at long last, you ve found something that your friends can actually relate to (maybe not the Beach Boys, though ). Here, each tail light will consist of three LEDs, which will be illuminated in a building dot mode to indicate the turn direction (either left or right, selected by a DIP switch). An emergency flash mode (in which all the tail lights alternate between the on and off states) will be controlled by a second DIP switch. The overall taillight enable will be controlled by a third DIP switch; if disabled (EN=0), all LEDs should be off. Create the following: a. Mealy model of state machine b. ABEL source file listing T-Bird Tail Light Turn Signal Controller L2 L L0 Left Signal Left Right Flash Norm On 0ff R0 R R2 DIR EMERG ENABL Right Signal Hz Clock The TBTLTSC taking a left turn, for which the output sequence should be: (a) L0, (b) L0 and L, (c) L0, L, and L2, (d) all off. This sequence should continuously repeat as long as the enable signal is asserted (ENABL=). If the emergency flash mode is selected, the six lights should alternate between the all on and all off states (DIR is ignored). When disabled (ENABL=0), all LEDs should be off.. Design a 3-bit, self-correcting RING counter with glitch-free decoded outputs. Draw a state transition diagram to prove your design is self-correcting. NOTE: The initial state should be 00, and the counter should SHIFT LEFT. Create the following: a. Moore model of state machine, clearly showing the self-correcting mechanism b. ABEL source file listing 8