Sequential logic implementation

Similar documents
Safeguarding Applications and Wiring Diagrams Cat 1 Stop with Guardlocking Interlock and Proximity Sensors TLSZR-GD2, 872C, GLP, PowerFlex 45

VHDL (and verilog) allow complex hardware to be described in either single-segment style to two-segment style

EE 330 Integrated Circuit. Sequential Airbag Controller

Using SystemVerilog Assertions in Gate-Level Verification Environments

Sequential Circuit Background. Young Won Lim 11/6/15

LM3621 Single Cell Lithium-Ion Battery Charger Controller

Ramp Profile Hardware Implementation. User Guide

AUTOMATION AND CONTROL TRADE 19 TAR SANDS

6.823 Computer System Architecture Prerequisite Self-Assessment Test Assigned Feb. 6, 2019 Due Feb 11, 2019

DS2714. Quad Loose Cell NiMH Charger

B-PC20 Power Close Module

SRC. An Outdoor Reset Control for Sub-Atmosphere Steam Systems OUTDOOR TEMPERATURE

SYMBOLS & STANDARDS CHEMIN-IIM (XVI E) 1) INSTRUMENT ABBREVIATIONS PRESSURE TEMPERATURE FLOW LEVEL P : PRESSURE

Smart Traffic Lights

DS1321 Flexible Nonvolatile Controller with Lithium Battery Monitor

SYNCHRONOUS DRAM. 128Mb: x32 SDRAM. MT48LC4M32B2-1 Meg x 32 x 4 banks

Here is a map from the LBNL gate to Bldg. 55:

User Manual. 1. Introduction

ECHO Enhanced Controller Hook Count Application *** Infrared Photo Sensors *** GCA 110 ECHO Controller. Version 3.5

Circular BIST - Organization

e-smart 2009 Low cost fault injection method for security characterization

StreeterAmet JR 163 and JR 164. Traficounter Manual G

Phase Leg IGBT with an Integrated Driver Module

128Mb Synchronous DRAM. Features High Performance: Description. REV 1.0 May, 2001 NT5SV32M4CT NT5SV16M8CT NT5SV8M16CT

International A26 (2017)

SAFETY PRECAUTIONS BEFORE YOU BEGIN TECHNICAL SUPPORT ABOUT THIS MANUAL OPTIMIZED IDLE USER MANUAL

Laboratory 10 Assignment. Introduction

Tomasulo-Style Register Renaming

Ag Features. Multi-Stage Charging. Solar Panel or DC Input. Maximum Power Point Tracking (MPPT) Very Low Power Consumption

PowerMaster MODEL MBG. Installation Manual U L R UL 325 AND UL 991 LISTED MEDIUM DUTY BARRIER GATE OPERATOR TABLE OF CONTENTS

TOWA SEIDEN INDUSTRIAL CO., LTD.

Plan Check Policies and Guidelines

The purpose of this lab is to explore the timing and termination of a phase for the cross street approach of an isolated intersection.

Logic Description. For: 115 kv Line Panel Standard Design One Breaker Normal Length Line Panel with New Panels at All Ends

INSTRUCTION MANUAL MODEL # YEAR WARRANTY KUSSMAUL ELECTRONICS CO., INC.

MANUAL ELECTRIC FIRE PUMP CONTROLLERS METRON SERIES MV600

MISSOURI HIGHWAYS AND TRANSPORTATION PLANS FOR PROPOSED STATE HIGHWAY DESIGN DESIGNATION INDEX OF SHEETS LENGTH OF PROJECT SHEET NUMBER

THE SOLAR POWERED ANTI-THEFT BAG

2016 Traffic Signal System Performance Metrics Update Kumar Neppalli, Traffic Engineering, Public Works John Richardson, Planning and Sustainability

AS-4000 OPERATING INSTRUCTIONS (PS-5000)

Level 7 Post Graduate Diploma in Engineering Mechatronics

Programmable Comparator Options for the isppac-powr1220at8

INSTRUCTION MANUAL H WELDER INTERLOCK

3-36. General 1-2-Opto-electronics 3-Interlock. Switches. Operator. Interface. Logic Power. Safety Switches Guard Locking Switches 440G-MT

Technical Memorandum. Purpose of Report and Study Objectives. Summary of Results

2048MB DDR2 SDRAM SO-DIMM

APPENDIX TO INSTRUCTIONS MANUAL LEON

Names and Functions of Driver Parts

AIC1781. Battery Charge Controller DESCRIPTION FEATURES APPLICATIONS

HPA603 (>7-cell Li-ion/LiFePO4 battery charger) evaluation

SELECTRIC, INC. Selectric (PA) Autotransformer Type Motor Control Panel Installation And Operation Manual

PUMP PLUS 1000 PLC MODEL #: PP AUTOMATIC SINGLE OUTPUT BATTERY CHARGER INSTRUCTION MANUAL

Automatic concealed bollards 275 H600 and 275 H800 Control station

CODE MODEL TYPE PRESS GW 605 T80

PLC BASED AUTOMATIC RAILWAY GATE CONTROLLER AND OBSTACLE DETECTOR

AN-1166 Lithium Polymer Battery Charger using GreenPAK State Machine

Nickel Cadmium and Nickel Hydride Battery Charging Applications Using the HT48R062

Real-time Bus Tracking using CrowdSourcing

MANUAL ELECTRIC FIRE PUMP CONTROLLERS METRON SERIES M450

Plan Check Policies and Guidelines

Quick Setup Guide for IntelliAg Model YP Air Pro

Quick Setup Guide for IntelliAg Model YP40 20 Air Pro

SYNCHRONOUS DRAM. 256Mb: x4, x8, x16 SDRAM 3.3V

Backup Generation Application

CONTENTS TABLE OF CONTENTS... 1 INTRODUCTION... 2 SEC 1 - SPECIFICATIONS... 3 SEC 2 - DESCRIPTION... 5 SEC 3 - OPERATING INSTRUCTIONS...

Specifications. Safety Ratings. Standards. Safety Classification. Certifications. Safety Contacts. Locking Type. Power Supply. Operating Radius, Min

SWA-24X2C PID Temperature Controller with Timer (SWA-2442C/2452C)

USERS GUIDE LO-21U LOCKOUT RELAY

CHARGE SOURCE/LOAD GROUND

FUNCTION: Allows existing Logic Control Version 2.0 or 2.0 Rev. B board in field to be replaced with new Logic Control Version 2.0 Rev. B.

Registers Shift Registers Accumulators Register Files Register Transfer Language. Chapter 8 Registers. SKEE2263 Digital Systems

ALARM KIT ESSENTIAL INFORMATION. Version 2.0 WHAT CAN YOU PROTECT WITH THIS

Evaluation of Renton Ramp Meters on I-405

Hybrid ERTMS/ETCS Level 3

GENSET CONTROL MODULE LEVEL 0 A120A. User selectable time delays for engine start and engine stop (cool down).

Safe, comfortable and eco-friendly, Smart Connected Society

INDUSTRIAL CHARGER AUTOMATIC BATTERY CHARGER SERIES 150 KUSSMAUL ELECTRONICS CO., INC. MODEL # XX YEAR WARRANTY INSTRUCTION MANUAL

CprE 281: Digital Logic

DS1643/DS1643P Nonvolatile Timekeeping RAM

Setup Tabs. Basic Setup: Advanced Setup:

General Description. Pin Names. Charge command/select. Discharge command. DVEN - V enable/disable. Timer mode select 1. Timer mode select 2

SECTION LIFT ARM PARKING GATES

EAOM-10.2 AUTOMATIC TRANSFER SWITCH & START UNIT FOR DIESEL GENERATORS

GENERAL MOTORS SERVICE PARTS OPERATION 6200 Grand Pointe Drive, Grand Blanc, MI 48439

USERS GUIDE BODYGUARD III SMR PRESENCE SENSOR

Note: Read this manual carefully before installing the operator and place this installation manual in an accessible place near the operator.

Pipelining A B C D. Readings: Example: Doing the laundry. Ann, Brian, Cathy, & Dave. each have one load of clothes to wash, dry, and fold

GENSET CONTROL MODULE A121H / A241H. User selectable time delays for engine start and engine stop (cool down).

Quick Setup Guide for IntelliAg Model 3PYP 12 Row Single Row Air Pro

Silvertel. Ag Features. Multi-Stage Charging. Battery Reversal Protection. Reduced Power Consumption. Wide DC or AC Input Voltage Range

DESCRIPTION AND OPERATION ICE DETECTION SYSTEM

RAM-Type Interface for Embedded User Flash Memory

IS42S32200L IS45S32200L

2. Under what condition is it unlawful to permit another person to drive your vehicle?

PUMP PLUS 2000 PLC MODEL #: PP AUTOMATIC DUAL OUTPUT BATTERY CHARGER INSTRUCTION MANUAL

MODEL 908. Read Instructions Carefully! Fuel Gauge CURTIS INSTRUMENTS, INC.

Cross Hare Installation Guide

Specifications. Safety Ratings. Standards. Safety Classification. Certifications. Power Supply

ASIC Design (7v81) Spring 2000

The Vehicle Inspection Regulations, 2013

Transcription:

Sequential logic implementation Implementation random logic gates and FFs programmable logic devices (PAL with FFs) Design procedure state diagrams state transition table state assignment next state functions Autumn 23 CSE37 - VIII - Sequential Logic Technology Median filter FSM emove single s between two s (output = NS3) eset I PS PS2 PS3 NS NS2 NS3 X X X X X X Autumn 23 CSE37 - VIII - Sequential Logic Technology 2

Median filter FSM (cont d) ealized using the standard procedure and individual FFs and gates I PS PS2 PS3 NS NS2 NS3 X X X X X X NS = eset (I) NS2 = eset ( PS + PS2 I ) NS3 = eset PS2 O = PS3 Autumn 23 CSE37 - VIII - Sequential Logic Technology 3 Median filter FSM (cont d) But it looks like a shift register if you look at it right eset eset Autumn 23 CSE37 - VIII - Sequential Logic Technology 4

Median filter FSM (cont d) An alternate implementation with S/ FFs eset In D S Q D S Q D S Q Out = eset S = PS2 I NS = I NS2 = PS NS3 = PS2 O = PS3 CLK The set input (S) does the median filter function by making the next state whenever the input is and PS2 is ( input to state xx) Autumn 23 CSE37 - VIII - Sequential Logic Technology 5 Implementation using PALs Programmable logic building block for sequential logic macro-cell: FF + logic D-FF two-level logic capability like PAL (e.g., 8 product terms) D Q Q Autumn 23 CSE37 - VIII - Sequential Logic Technology 6

Vending machine example (Moore PLD mapping) D D OPEN = reset'(q'n + QN' + QN + QD) = reset'(q + D + QN) = QQ CLK Q N Seq Q D Seq Open eset Com Autumn 23 CSE37 - VIII - Sequential Logic Technology 7 Vending machine (synch. Mealy PLD mapping) OPEN = reset'(qqn' + QN + QD + Q'ND + QN'D) CLK Q N Seq Q D Seq OPEN Open eset Seq Autumn 23 CSE37 - VIII - Sequential Logic Technology 8

22V PAL Combinational logic elements (SoP) Sequential logic elements (D-FFs) Up to outputs Up to FFs Up to 22 inputs Autumn 23 CSE37 - VIII - Sequential Logic Technology 9 22V PAL Macro Cell Sequential logic element + output/input selection Autumn 23 CSE37 - VIII - Sequential Logic Technology

Light Game FSM Tug of War game 7 s, 2 push buttons (L, ) ESET (6) L (5) L (4) L (3) L (2) L () () Autumn 23 CSE37 - VIII - Sequential Logic Technology Light Game FSM Verilog module Light_Game (S, LPB, PB, CLK, ESET); input LPB ; input PB ; input CLK ; input ESET; output [6:] S ; reg [6:] position; reg left; reg right; sequential logic always @(posedge CLK) begin left <= LPB; right <= PB; if (ESET) position = 7'b; else if ((position == 7'b) (position == 7'b)); else if (L) position = position << ; else if () position = position >> ; end endmodule combinational logic wire L, ; assign L = ~left && LPB; assign = ~right && PB; assign S = position; Autumn 23 CSE37 - VIII - Sequential Logic Technology 2

Example: traffic light controller A busy highway is intersected by a little used farmroad Detectors C sense the presence of cars waiting on the farmroad with no car on farmroad, light remain green in highway direction if vehicle on farmroad, highway lights go from Green to Yellow to ed, allowing the farmroad lights to become green these stay green only as long as a farmroad car is detected but never longer than a set interval when these are met, farm lights transition from Green to Yellow to ed, allowing highway to return to green even if farmroad vehicles are waiting, highway gets at least a set interval as green Assume you have an interval timer that generates: a short time pulse (TS) and a long time pulse (TL), in response to a set (ST) signal. TS is to be used for timing yellow lights and TL for green lights Autumn 23 CSE37 - VIII - Sequential Logic Technology 3 Example: traffic light controller (cont ) Highway/farm road intersection farm road car sensors highway Autumn 23 CSE37 - VIII - Sequential Logic Technology 4

Example: traffic light controller (cont ) Tabulation of inputs and outputs inputs description outputs description reset place FSM in initial state HG, HY, H assert green/yellow/red highway lights C detect vehicle on the farm road FG, FY, F assert green/yellow/red highway lights TS short time interval expired ST start timing a short or long interval TL long time interval expired Tabulation of unique states some light configurations imply others state HG HY FG FY description highway green (farm road red) highway yellow (farm road red) farm road green (highway red) farm road yellow (highway red) Autumn 23 CSE37 - VIII - Sequential Logic Technology 5 Example: traffic light controller (cont ) State diagram (TL C)' eset HG TL C / ST TS / ST TS' HY FY TS' TS / ST FG TL+C' / ST (TL+C')' Autumn 23 CSE37 - VIII - Sequential Logic Technology 6

Example: traffic light controller (cont ) Generate state table with symbolic states Consider state assignments output encoding similar problem to state assignment (Green =, Yellow =, ed = ) Inputs Present State Next State Outputs C TL TS ST H F HG HG Green ed HG HG Green ed HG HY Green ed HY HY Yellow ed HY FG Yellow ed FG FG ed Green FG FY ed Green FG FY ed Green FY FY ed Yellow FY HG ed Yellow SA: HG = HY = FG = FY = SA2: HG = HY = FG = FY = SA3: HG = HY = FG = FY = (one-hot) Autumn 23 CSE37 - VIII - Sequential Logic Technology 7 Logic for different state assignments SA NS = C TL' PS PS + TS PS' PS + TS PS PS' + C' PS PS + TL PS PS NS = C TL PS' PS' + C TL' PS PS + PS' PS ST = C TL PS' PS' + TS PS' PS + TS PS PS' + C' PS PS + TL PS PS H = PS H = PS' PS F = PS' F = PS PS SA2 NS = C TL PS' + TS' PS + C' PS' PS NS = TS PS PS' + PS' PS + TS' PS PS SA3 ST = C TL PS' + C' PS' PS + TS PS H = PS F = PS' NS3 = C' PS2 + TL PS2 + TS' PS3 NS = C TL PS + TS' PS H = PS PS' F = PS PS NS2 = TS PS + C TL' PS2 NS = C' PS + TL' PS + TS PS3 ST = C TL PS + TS PS + C' PS2 + TL PS2 + TS PS3 H = PS3 + PS2 H = PS F = PS + PS F = PS3 Autumn 23 CSE37 - VIII - Sequential Logic Technology 8

Sequential logic implementation summary Models for representing sequential circuits finite state machines and their state diagrams Mealy, Moore, and synchronous Mealy machines Finite state machine design procedure deriving state diagram deriving state transition table assigning codes to states determining next state and output functions implementing combinational logic Implementation technologies random logic + FFs PAL with FFs (programmable logic devices PLDs) Autumn 23 CSE37 - VIII - Sequential Logic Technology 9