ECE 274 Digital Logic. Digital Design. Sequential Logic Design Controller Design: Laser Timer Example

Similar documents
Chapter 3: Sequential Logic Design -- Controllers

ECE 274 Digital Logic. Digital Design. Datapath Components Registers. Datapath Components Register with Parallel Load

Chapter 1: Introduction

Chapter 5. Synchronous Sequential Logic. Outlines

Lecture 3: Circuits & Layout

CPE 200L LABORATORY 2: DIGITAL LOGIC CIRCUITS BREADBOARD IMPLEMENTATION UNIVERSITY OF NEVADA, LAS VEGAS GOALS:

LOGICAL FOUNDATION OF MUSIC

Mapping Arbitrary Logic Functions into Synchronous Embedded Memories For Area Reduction on FPGAs

LAERSKOOL RANDHART ENGLISH GRADE 5 DEMARCATION FOR EXAM PAPER 2

CPSC 121: Models of Computation Lab #2: Building Circuits

DRAFT. Vocal Music AOS 2 WB 3. Purcell: Music for a While. Section A: Musical contexts. How is this mood achieved through the following?

Sequencer devices. Philips Semiconductors Programmable Logic Devices

Outline. Circuits & Layout. CMOS VLSI Design

Applications to Transistors

Homework 1. Homework 1: Measure T CK-Q delay

The NOR latch is similar to the NAND latch

ECE 301 Digital Electronics

CMST 220 PUBLIC SPEAKING

Application Support. Product Information. Omron STI. Support Engineers are available at our USA headquarters from

Safety Relay Unit G9SB

Chapter 2. Digital Circuits

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

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

GRABLINKTM. FullTM. - DualBaseTM. - BaseTM. GRABLINK Full TM. GRABLINK DualBase TM. GRABLINK Base TM

Answers to Exercise 3.3 (p. 76)

What do these sentences describe? Write P for plants, A for animals or B for both next to each sentence below. They ve got roots.

Schaltwerke und Automaten

Your Summer Holiday Resource Pack: English

Experiment # 12. Traffic Light Controller

PRACTICE FINAL EXAM T T. Music Theory II (MUT 1112) w. Name: Instructor:

Flip-Flops and Sequential Circuit Design

The Official IDENTITY SYSTEM. A Manual Concerning Graphic Standards and Proper Implementation. As developed and established by the

Clock Domain Crossing. Presented by Abramov B. 1

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

Software Engineering 2DA4. Slides 9: Asynchronous Sequential Circuits

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

Standards Overview (updated 7/31/17) English III Louisiana Student Standards by Collection Assessed on. Teach in Collection(s)

SeSSION 9. This session is adapted from the work of Dr.Gary O Reilly, UCD. Session 9 Thinking Straight Page 1

Safety Relay Unit G9SB

Logic. Andrew Mark Allen March 4, 2012

INPUT CAPTURE WITH ST62 16-BIT AUTO-RELOAD TIMER

Pitch I. I. Lesson 1 : Staff

UNIT 11 LATCHES AND FLIP-FLOPS

Soft Error Derating Computation in Sequential Circuits

Engineer To Engineer Note

Digital System Design

Last time, we saw how latches can be used as memory in a circuit

Sequential Circuits: Latches & Flip-Flops

Other Flip-Flops. Lecture 27 1

Introduction to Sequential Circuits

DIGITAL ELECTRONICS: LOGIC AND CLOCKS

Outline. Annual Sales. A Brief History. Transistor Types. Invention of the Transistor. Lecture 1: Circuits & Layout. Introduction to CMOS VLSI Design

Sequential Circuit Design: Principle

Asynchronous (Ripple) Counters

Sequential Logic and Clocked Circuits

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

Phosphor: Explaining Transitions in the User Interface Using Afterglow Effects

92.507/1. EYR 203, 207: novaflex universal controller. Sauter Systems

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

ECE 331 Digital System Design

ECE 301 Digital Electronics

Lecture 8: Sequential Logic

Combinational vs Sequential

Before Reading. Introduce Everyday Words. Use the following steps to introduce students to Nature Walk.

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Digital Design Datapath Components: Parallel Load Register

WE SERIES DIRECTIONAL CONTROL VALVES

Day care centres (ages 3 to 5) Kindergarten (ages 4 to 5) taken part in a fire drill in her building and started to beep.

Unit 10: I don t feel very well

Chapter 5 Sequential Circuits

ECE 545 Digital System Design with VHDL Lecture 2. Digital Logic Refresher Part B Sequential Logic Building Blocks

Digital Fundamentals: A Systems Approach

Chapter 5 Synchronous Sequential Logic

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part B Sequential Logic Building Blocks

FLIP-FLOPS AND RELATED DEVICES

months ending June 30th 2001 Innovators in image processing

Universal Asynchronous Receiver- Transmitter (UART)

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

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

THE UNIVERSITY OF TRINIDAD & TOBAGO


L5 Sequential Circuit Design

RS flip-flop using NOR gate

Notations Used in This Guide

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

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

Efficient Building Blocks for Reversible Sequential

California State University, Bakersfield Computer & Electrical Engineering & Computer Science ECE 3220: Digital Design with VHDL Laboratory 7

ELCT201: DIGITAL LOGIC DESIGN

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15

A.R. ENGINEERING COLLEGE, VILLUPURAM ECE DEPARTMENT

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

CMSC 313 Preview Slides

Notations Used in This Guide

Introduction to Microprocessor & Digital Logic

Combinational / Sequential Logic

Lecture 11: Synchronous Sequential Logic

Experiment 8 Introduction to Latches and Flip-Flops and registers

Big Adventures. Why might you like to have an adventure? What kind of adventures might you enjoy?

Transcription:

ECE 274 Digitl Logic Sequentil Logic Design Sequentil Logic Design Process Digitl Design 3.4 3.5 Digitl Design Chpter 3: Sequentil Logic Design -- Controllers Slides to ccompny the tetook Digitl Design, First Edition, y Frnk Vhid, John Wiley nd Sons Pulishers, 27. http://www.ddvhid.com Copyright 27 Frnk Vhid Instructors of courses requiring Vhid's Digitl Design tetook (pulished y John Wiley nd Sons) hve permission to modify nd use these slides for customry course-relted ctivities, suject to keeping this copyright notice in plce nd unmodified. These slides my e posted s unnimted pdf versions on pulicly-ccessile course wesites.. PowerPoint source (or pdf with nimtions) my not e posted to pulicly-ccessile wesites, ut my e posted for students on internl protected sites or distriuted directly to students y other electronic mens. Instructors my mke printouts of the slides ville to students for resonle photocopying chrge, without incurring roylties. Any other use requires eplicit permission. Instructors my otin PowerPoint source or otin specil use permissions from Wiley see http://www.ddvhid.com for informtion. Sequentil Logic Design Controller Design Five step controller design process Sequentil Logic Design Controller Design: Lser Timer Emple Step : Cpture the Alredy done Step 2: Crete rchitecture 2-it stte register (for 4 sttes) Input, output Net stte signls n, n Step 3: Encode the sttes Any encoding with ech stte unique will work Inputs: ; Outputs: = O ff = = = On On2 On3 inputs Comintionl s s Stte register n n outputs outputs 3 4

Sequentil Logic Design Controller Design: Lser Timer Emple (cont) Sequentil Logic Design Controller Design: Lser Timer Emple (cont) Step 4: Crete stte tle Inputs: ; Outputs: = O ff Step 5: Implement comintionl = = = On On2 On3 = s + s (note from the tle tht = if s = or s = ) n = s s + s s + ss + ss n = s s + ss n = s s + ss + ss n = s s + ss 5 6 Sequentil Logic Design Controller Design: Lser Timer Emple (cont) Sequentil Logic Design Understnding the Controller s Behvior Step 5: Implement comintionl (cont) Comintionl Logic inputs s s Stte register outp n n = O ff = = = On On2 On3 s s n n = O ff = = = On On2 On3 s s n n = O ff = = = On On2 On3 s s n n = s + s n = s s + ss n = s s + ss I nputs: st t e= st t e= st t e= 7 8 2

Sequentil Logic Design Simplifying Nottions s Assume unssigned output implicitly ssigned Sequentil circuits Assume unconnected clock inputs connected to sme eternl clock Sequentil Logic Design Controller Emple: Secure Cr Key Step Wit r= Inputs: ; Outputs: r K K2 K3 K4 r= r= r= r= Step 2 Comintionl (from erlier emple) r n2 n n s2 s s Stte register I nputs: ; O utputs: r r= Step 3 r= r= r= r= We ll omit Step 5 Step 4 9 Sequentil Logic Design Emple: Code Detector If we chnged the stte encoding for the secure cr key design to the following, would this ffect the finl output?. Yes 2. No Sequentil Logic Design In Clss Eercise: Button Press Synchronizer i Button press synchronizer controller o Step 3 I nputs: ; O utputs: r r= r= r= r= r= Wnt simple sequentil circuit tht converts utton press to single cycle durtion, regrdless of length of time tht utton ctully pressed We ssumed such n idel utton press signl in erlier emple, like the utton in the lser timer controller 2 3

Sequentil Logic Design Trnsitions Sequentil Logic Design Common Pitflls Regrding Trnsition Properties Is the following vlid?. Yes 2. No Only one condition should e true For ll trnsitions leving stte Else, which one? One condition must e true For ll trnsitions leving stte Else, where go? Cn verify using Boolen lger Only one condition true: AND of ech condition pir (for trnsitions leving stte) should equl proves pir cn never simultneously e true One condition true: OR of ll conditions of trnsitions leving stte) should equl proves t lest one condition must e true 3 4 Sequentil Logic Design Evidence tht Pitfll is Common Recll code detector We fied prolem with the trnsition conditions Do the trnsitions oey the two required trnsition properties? Consider trnsitions of stte Strt, nd the only one true property u= s u= r Wit Strt Red u= r * * (r ++g) r * (r ++g) = (* )r = ( *)*(r ++g) = (*)*r*(r ++g) = *r = *(r ++g) = *r*(r ++g) = = = rr +r+rg = + r+rg = r + rg = r(+g) Fils! Mens tht two of Strt s trnsitions could e true s g r Blue Green Red2 u= u= u= Intuitively: press red nd lue uttons t sme time: conditions r, nd (r ++g) will oth e true. Which one should e tken? Q: How to solve? A: r should e r g (likewise for, g, r) Note: As evidence the pitfll is common, we dmit the mistke ws not intentionl. A reviewer of the ook cught it. 5 Sequentil Logic Design Flip-Flop Set nd Reset Inputs Some flip-flops hve dditionl inputs Synchronous reset: clers Q to on net clock edge Asynchronous reset: cler Q to immeditely (not dependent on clock edge) Emple timing digrm shown 6 4

Sequentil Logic Design Initil Stte of Controller Sequentil Logic Design Non-Idel Flip-Flop Behvior All our s hd initil stte But our sequentil circuit designs did not Cn ccomplish using flip-flops with reset/set inputs Shown circuit initilizes flip-flops to Circuits typiclly hve power on reset circuitry to utomticlly reset circuit on power up Inputs: ; Outputs: = Off = On = On2 Comintionl s s Stte register n n = On3 Cn t chnge flip-flop input too close to clock edge Setup time: time tht D must e stle efore edge Else, stle vlue not present t internl ltch Hold time: time tht D must e held stle fter edge Else, new vlue doesn t hve time to loop round nd stilize in internl ltch Setup time violtion D Q D Q reset Q R Q S Leds to oscilltion! 7 8 Sequentil Logic Design Metstility Sequentil Logic Design Metstility Violting setup/hold time cn led to d sitution known s metstle stte Metstle stte: Any flip-flop stte other thn stle or Eventully settles to one or other, ut we don t know which For internl circuits, we cn mke sure oserve setup time But wht if input comes from eternl (synchronous) source, e.g., utton press? Prtil solution Insert synchronizer flip-flop for synchronous input Specil flip-flop with smll setup/hold time Doesn t completely prevent metstility One flip-flop doesn t completely solve prolem How out dding more synchronizer flip-flops? Helps, ut just decreses proility of metstility So how solve completely? Cn t! My e unsettling to new designers. But we just cn t gurntee design tht won t ever e metstle. We cn just minimize the men time etween filure (MTBF) -- numer often given long with circuit Proility of flip-flop eing metstle is i l o w low low incredily l o w synchronizers 9 2 5