Topics for Lecture #9. Button input processor

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

ECE 341. Lecture # 3

Digital Design. Sequential Logic

Clocked Synchronous State-machine Analysis

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

Lecture 10: Synchronous Sequential Circuits Design

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

EECS150 - Digital Design Lecture 23 - FSMs & Counters

EE 209 Spiral 1 Exam Solutions Name:

Sequential Circuits Sequential circuits combinational circuits state gate delay

FYSE420 DIGITAL ELECTRONICS

Digital Circuits and Systems

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

Time Allowed 3:00 hrs. April, pages

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

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

Counters. Clocked sequential circuit whose state diagram contains a single cycle. Modulus number of states in the cycle. Counters with nonpower

SYNCHRONOUS SEQUENTIAL CIRCUITS

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Design at the Register Transfer Level

Digital Logic Design. Midterm #2

Chapter 7. Synchronous Sequential Networks. Excitation for

Sequential logic and design

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

Lecture 17: Designing Sequential Systems Using Flip Flops

ELCT201: DIGITAL LOGIC DESIGN

CHW 261: Logic Design

Chapter 5 Synchronous Sequential Logic

Philadelphia University Faculty of Engineering

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

Stop Watch (System Controller Approach)

6 Synchronous State Machine Design

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

Generalized FSM model: Moore and Mealy

EECS150 - Digital Design Lecture 16 Counters. Announcements

EE 209 Logic Cumulative Exam Name:

CSCI 2150 Intro to State Machines

12. Finite State Machine Design

CPE100: Digital Logic Design I

Digital Design 2010 DE2 1

CPE100: Digital Logic Design I

Exam for Physics 4051, October 31, 2008

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

Chapter 7. Sequential Circuits Registers, Counters, RAM

I. Motivation & Examples

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

Digital Circuits ECS 371

Digital Fundamentals

Digital Fundamentals

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

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

Digital Electronics Final Examination. Part A

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Module 10: Sequential Circuit Design

Digital Logic Design - Chapter 5

Written exam with solutions IE Digital Design Friday 21/

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

Design of Sequential Circuits

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

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

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

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

ELCT201: DIGITAL LOGIC DESIGN

EECS 270 Midterm 2 Exam Answer Key Winter 2017

Digital Logic Design - Chapter 4

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

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

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

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

Synchronous Sequential Circuit Design. Dr. Ehab A. H. AL-Hialy Page 1

Lecture 8: Sequential Networks and Finite State Machines

Last lecture Counter design Finite state machine started vending machine example. Today Continue on the vending machine example Moore/Mealy machines

Sequential Circuit Design

Lecture (08) Synchronous Sequential Logic

EGR224 F 18 Assignment #4

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

Show that the dual of the exclusive-or is equal to its compliment. 7

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Finite State Machine. By : Ali Mustafa

Digital Electronics Sequential Logic

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Chapter 5. Digital systems. 5.1 Boolean algebra Negation, conjunction and disjunction

A B D 1 Y D 2 D 3. Truth table for 4 to 1 MUX: A B Y 0 0 D D D D 3

Memory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1

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

Lecture 13: Sequential Circuits, FSM

Learning Objectives:

Synchronous Sequential Logic

Lecture 14 Finite state machines

Sequential Circuits. CS/EE 3700 : Fundamentals of Digital System Design

Topic 8: Sequential Circuits

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

Fundamentals of Digital Design

Gates and Flip-Flops

EECS150 - Digital Design Lecture 25 Shifters and Counters. Recap

ENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter. Lab 3. Lab 3 Gate Timing. Lab 3 Steps in designing a State Machine. Timing diagram of a DFF

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Synchronous 4 Bit Counters; Binary, Direct Reset

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Transcription:

opics for Lecture # Reminder: midterm examination # next uesday starting at :0am. Examples of small state machines simultaneous button push detector (continued) button push processor pulse stretcher General procedure for state machine design Counters: definitions, examples, applications October, 00 EE : igital esign Laboratory Lecture utton input processor Requirement: output a pulse of duration one clock period in response to each input pulse. Example of desired behavior. IN OU he dashed pulse corresponds to an ambiguity in the specifications: how should this state machine respond to consecutive short input pulses? In some applications consecutive pulses will not or should not occur, so this possibility can be ignored. October, 00 EE : igital esign Laboratory Lecture

utton input processor () State machines and transition/output tables. October, 00 EE : igital esign Laboratory Lecture Pulse stretcher Requirement: each input pulse produces a -clock output pulse. Example of desired behavior: IN OU hese specifications are also ambiguous: is the output retriggerable? Can output pulses be longer than clocks? October, 00 EE : igital esign Laboratory Lecture

Pulse stretcher () State machines and transition/output tables. he circuit can be simplified by decomposing into two state machines. IN MCL ONE GO OU CN October, 00 EE : igital esign Laboratory Lecture State machine design 0. Specify desired behavior of machine unambiguously (often hardest step).. Construct state/output table (or draw a state diagram, often preferable).. Minimize the number of states (optional).. State assignment: choose state variables and assign values to named states.. Form transition/output table from state/output table using state values.. Choose flip-flop type. nswer: flip-flops. Construct excitation table (not needed for flip-flops). erive excitation equations from excitation table. 8. erive output equations from transition/output table.. raw logic diagram of next-state logic (or provide equations to C tools). October, 00 EE : igital esign Laboratory Lecture

Counter uses Real time clock: cycle through a sequence of states in a known order. State encodings: binary, C = binary coded decimal, Gray. Frequency divider: output a period signal at a fraction of input frequency. Event counter: increment state each time a signal or oolean function is true (on rising edge of clock). Interval timer: count number of clock pulses between start and stop signals larm clock: activate an alarm signal at a specified time in the future. elay: activate a timeout signal after a specified number of clock cycles. October, 00 EE : igital esign Laboratory Lecture Ripple vs. synchronous counter 0 CNEN EN 0 EN EN EN Ripple counter: each bit toggles when lower order bit changes from to 0. Synchronous: a bit changes at rising clock edge when all lower bits are. October, 00 EE : igital esign Laboratory Lecture 8

x binary synchronous counter x Logic symbol: 0 C C Next-state logic and output logic for the x: [,C,C,] := if then [0,0,0,0] else if then [,C,,] else if * then [,C,C,] + [0,0,0,] else [,C,C,]; = * * C * * ; October, 00 EE : igital esign Laboratory Lecture x state table able 8- State table for a x -bit binary counter. Inputs Current State Next State _L _L C C 0 x x x x x x x 0 0 0 0 0 x x x x x x C 0 x x x x x C x 0 x x x x C 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 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 October, 00 EE : igital esign Laboratory Lecture 0

x logic diagram () _L () _L () () () CK () () CK C () () C CK () () CK () () (0) October, 00 EE : igital esign Laboratory Lecture Connections: x: free-running counter + V x RPU 0 C C U iming diagram for divide-by- counter R C C COUN 0 8 0 0 October, 00 EE : igital esign Laboratory Lecture

Modulo- counters x State sequence:,,...,,... + V R RPU 0 C C U x0 CN CN_L U 0 x State sequence: 0,,...,0,... + V R RPU CN0_L 0 C C U x00 U 0 October, 00 EE : igital esign Laboratory Lecture Excess- decimal counter x State sequence:,,...,,,... + V R RPU 0 C C U SXX_L x00 U 0 With one -input NN gate, any period between and can be obtained. In fact, any low and high values can be specified. rawback of x: counts up only. Use x for bidirectional counting. October, 00 EE : igital esign Laboratory Lecture

Cascaded binary counters x x RESE_L LO_L CNEN 0 0 C C 0 0 C C 8 U Important: do not use as a clock. may (will) glitch. should be used to enable the next counter, i.e., to tell the next counter when to increment on the next active clock edge. U October, 00 EE : igital esign Laboratory Lecture elay submachine using x x GO 0 0 C C ONE ONE is asserted four clocks after GO is asserted. GO CN ONE October, 00 EE : igital esign Laboratory Lecture