DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO ECE-238L: Computer Logic Design Fall Notes - Chapter 6.

Similar documents
THE EFFECTS OF COUPLED INDUCTORS IN PARALLEL INTERLEAVED BUCK CONVERTERS

SPH4U Transmission of Waves in One and Two Dimensions LoRusso

Series 600 Accessories

SPEED OF SOUND MEASUREMENTS IN GAS-MIXTURES AT VARYING COMPOSITION USING AN ULTRASONIC GAS FLOW METER WITH SILICON BASED TRANSDUCERS

This report presents an assessment of existing and future parking & traffic requirements, for the site based on the current development proposal.

8.5. Solving Equations II. Goal Solve equations by balancing.

Basic Gas Spring Theory

Footwork is the foundation for a skilled basketball player, involving moves

GFC NIST MASS FLOW CONTROLLERS. Typical Stainless Steel GFC Mass Flow Controller. Design Features. General Description. Principles of Operation

GFC NIST MASS FLOW CONTROLLERS. Typical Stainless Steel GFC Mass Flow Controller. Design Features. General Description. Principles of Operation

operate regenerator top without boiling aq. amine solution.

MST 121: Supplementary resource material for Chapter A1, Sequences

Exercise 1: Control Functions

DFC NIST DIGITAL MASS FLOW CONTROLLERS. DFC with optional LCD readout PROG RS485. Programmable Mass Flow Controller with Digital Signal Processing

Computer Architecture ELEC3441

Synchronous Sequential Logic. Topics. Sequential Circuits. Chapter 5 Steve Oldridge Dr. Sidney Fels. Sequential Circuits

Available online at ScienceDirect. Procedia Engineering 113 (2015 )

THE LATENT DEMAND METHOD

Headfirst Entry - Diving and Sliding

number in a data set adds (or subtracts) that value to measures of center but does not affect measures of spread.

1 Main Board. 24 dots characters: 48 Columns

Held under the sanction of USA Swimming, issued by North Carolina Swimming, Inc. Sanction No. NC11117

XFM DIGITAL MASS FLOW METER. XFM with Profibus Interface. XFM without. Readout. XFM with. Readout. Option

Gait-Event-Based Synchronization Method for Gait Rehabilitation Robots via a Bio-inspired Adaptive Oscillator

ICC WORLD TWENTY ( WORLD CUP-2014 )- A CASE STUDY

n UL Listed and FM Approved for n Solenoid control n Quick pressure relief valve 73Q n Pressure sustaining & reducing valve 723

securing your safety

Catenary Analysis and Calculation Method of Track Rope of Cargo Cableway with Multiple Loads

Extensible Detection and Indexing of Highlight Events in Broadcasted Sports Video

A SECOND SOLUTION FOR THE RHIND PAPYRUS UNIT FRACTION DECOMPOSITIONS

ELIGIBILITY / LEVELS / VENUES

draft final report NGSIM Arterial-Lane Selection Mode Federal Highway Administration Cambridge Systematics, Inc.

ELIGIBILITY / LEVELS / VENUES

ELIGIBILITY / LEVELS / VENUES

2) What s the Purpose of Your Project?

WIREMOLD. Innovative Aluminum Raceway Profile Provides Increased Wiring Capacity Available Factory Prewired. Aluminum Raceway Systems

ELIGIBILITY / LEVELS / VENUES

WATER VALVES REPLACEMENT PROJECT

EMSBS/EMST. Drill For Machining Ultra-Deep Minute Holes FEATURES. For ultra-deep drilling of miniature holes. New chip stopper controls chip flow.

» WYOMING s RIDE 2013

Climbing/Rappelling NATIONAL STANDARDS BOY SCOUTS OF AMERICA

City of Valdez REQUEST FOR QUOTES. Project Name: Lowe River Levee Certification Groin 1 Freeboard Repairs PO Number: Cost Code:

University of California, Los Angeles Department of Statistics. Measures of central tendency and variation Data display

-H- Note. Flow control valve. Key features

Welcome to the world of the Rube Goldberg!

The new name for... Mines Rescue Service

Controlling noise at work

DS4000 Series Steel Raceway

Influences of Teaching Styles and Motor Educability on Learning Outcomes of Volleyball

The structure of the Fibonacci numbers in the modular ring Z 5

Precautions for Total Hip Replacement Patients Only

Innovative Raceway Profile Provides Increased Wiring Capacity Available Factory Prewired

WhisperFit EZ Ventilation Fans

ZD ZD Self-balance Multistage Centrifugal Pumps

Human-Robot Interaction: Group Behavior Level

DAMAGE ASSESSMENT OF FIBRE ROPES FOR OFFSHORE MOORING

When rule-based models need to count

Operating Instructions SURGICAL POWER & ACCESSORIES

Introduction to Algorithms 6.046J/18.401J/SMA5503

The Analysis of Bullwhip Effect in Supply Chain Based on Strategic Alliance

Non-Harmony Notes GRADE 6 MUSIC THEORY

HW #5: Digital Logic and Flip Flops

Load Calculation and Design of Roller Crowning of Truck Hub Bearing

Electrooculogram Signals Analysis for Process Control Operator Based on Fuzzy c-means

IRS ISSUES PROPOSED REGULATIONS FOR COMPARATIVE EFFECTIVENESS RESEARCH FEES

GENETICS 101 GLOSSARY

Current as of September 20, 2013 (red items are new entries since last TAAHC meeting)

HYDRAULIC MOTORS MM APPLICATION CONTENTS GENERAL MOTORS

WIND TUNNEL EXPERIMENT ON THE EFFECT OF WIND ON SMOKE EXHAUST SYSTEMS FOR A HIGH RISE BUILDING

Lecture 13a: Chunks. Announcements. Announcements (III) Announcements (II) Project #3 Preview 4/18/18. Pipeline of NLP Tools

Sequential parimutuel games

DAV CENTENARY COLLEGE, FARIDABAD

Chilled Mirror Dew Point Instrument

Our club has a rich history that dates back to the turn of the 20th century.

Intersleek Pro. Divers Manual. Our World is Water CONTENTS

APPLICATION»» Conveyors Metal working machines» Agricultural machines Road building machines Mining machinery Food industries Special vehicles etc.

Coal Pulveriser. Global Solutions

Obstacle Avoidance for Visually Impaired Using Auto-adaptive Thresholding on Kinect s Depth Image

PERFORMANCE TEAM EVALUATION IN 2008 BEIJING OLYMPIC GAMES

Version IV: April a publication from

HYDRAULIC MOTORS MS APPLICATION CONTENTS OPTIONS GENERAL. » Conveyors. » Model- Disc valve, roll-gerotor 80,5 564,9 [ ] Max.

Product Features Product Benefits Application

Seated valves (PN 16) VF 2-2-way valve, flange VF 3-3-way valve, flange

The Prediction of Dynamic Strain in Leaf-Type Compressor Valves With Variable Mass and Stiffness

Parsers. Introduction to Computational Linguistics: Parsing Algorithms. Ambiguity refresher. CFG refresher. Example: search space for top-down parser

Simulation Study of a Bus Signal Priority Strategy Based on GPS/AVL and Wireless Communications

Modelling Lane Changing Behaviour of Heavy Commercial Vehicles

Hazard Identificaiton of Railway Signaling System Using PHA and HAZOP Methods

ELIGIBILITY / LEVELS / VENUES

Brian Hayes. A reprint from. American Scientist. the magazine of Sigma Xi, the Scientific Research Society

Research Article. Relative analysis of Taekwondo back kick skills biomechanics based on 3D photograph parsing. Mingming Guo

HEEL RETENTION SYSTEMS

10 th International Congress of the International Maritime Association of the Mediterranean (IMAM), Rethymno, Crete, May 2002

SYMMETRY AND VARIABILITY OF VERTICAL GROUND REACTION FORCE AND CENTER OF PRESSURE IN ABLE-BODIED GAIT

Active Travel The Role of Self-Selection in Explaining the Effect of Built Environment on Active Travel

Kentucky SCL National Core Indicators Data

AN ESTIMATION OF INTER-ZONAL BUS DEMAND ON COLOMBO - KALUTARA TRANSPORT CORRIDOR

Real time lane departure warning system based on principal component analysis of grayscale distribution and risk evaluation model

7.0 Nonmotorized Facilities

MINNESOTA DEER MANAGEMENT

Transcription:

PARTMNT OF LCTRICAL AN COMPUTR NGINRING, TH UNIVRSITY OF NW MXICO C-238L: Computer Logic esig Fall 23 RGISTRS: Notes - Chapter 6 -bit Register: This is a collectio of '' -type flip flops, where each flip flop idepedetly stores oe bit. The flip flops are coected i parallel. They also share the same '' ad 'clock' sigals. - - -2-2 -bit Shift register: This is a collectio of '' -type flip flops, coected serially. The flip flops share the same '' ad 'clock' sigals. The serial iput is called '', ad the serial output is called ''. The flip flop outputs (also called the parallel output) is called =. epeg o how we label the bits, we ca have: right shift register: The iput bit moves from the MSB to the LSB, ad left shift register: The iput bit moves from the LSB to the MSB. RIGHT SHIFT RGISTR: - -2-3 - -2-3 LFT SHIFT RGISTR: 2-2 - Istructor: aiel Llamocca

PARTMNT OF LCTRICAL AN COMPUTR NGINRING, TH UNIVRSITY OF NW MXICO C-238L: Computer Logic esig Fall 23 Parallel access shift register: This is a shift register i which we ca write data o the flip flops i parallel. The figure below shows a 4- bit parallel access shift register. 3 2 3 s_l 2 s_l Adg eable to flip flops: I may istaces, it is very useful to have a sigal that cotrols whether the value of the flip flop is kept. The followig circuit represet a flip flop with sychroous eable. Whe =, the flip flop keeps its value. Whe =, the flip flop grabs the value at the iput. We ca thus create -bit register ad -bit shift registers with eable. Here, all the flip flops share the same eable iput. RGISTR: RIGHT SHIFT RGISTR: LFT SHIFT RGISTR: - -2-3 2 - Istructor: aiel Llamocca

PARTMNT OF LCTRICAL AN COMPUTR NGINRING, TH UNIVRSITY OF NW MXICO C-238L: Computer Logic esig Fall 23 SYNCHRONOUS COUNTRS Couters are useful for: coutig the umber of occurreces of a certai evet, geerate time itervals for task cotrol, track elapsed time betwee two evets, etc. Couters are made of flip flops ad combiatorial logic. They are usually desiged usig Fiite State Machies (FSM)s. Sychroous couters chage their output o the clock edge (risig or fallig). ach flip flop shares the same clock iput sigal. If the iitial cout is ero, each flip flop shares the iput sigal. COUNTR CLASSIFICATION: a) Biary couter: A couter couts from to 2. The figure depicts a 2-bit couter. b) Modulus couter: A couter couts from to N-. Special case: BC (or decade) couter: Couts from to 9. 4 BC couter c) Up/dow couter: Couts both up ad dow, uder commad of a cotrol iput. d) Parallel load couter: The cout ca be give a arbitrary value. e) Couter with eable: If eable =, the cout stops. If eable =, the couter couts. This is usually doe by coectig the eable iputs of the flip flops to a sigle eable. f) Rig couter: Also called oe-hot couter (oly oe bit is at a time). It ca be costructed usig a shift register. The output of the last stage is fed back to the iput to the first stage, which creates a rig-like structure. The asychroous sigal start sets the iitial cout to (first bit set to ). xample (4-bits):,,,,, The figure below depicts a rig couter. 2 - start pr g) Johso couter: Also called twisted rig couter. It ca be costructed usig a shift register, where the output of the last flip flop is fed back to the first stage. The result is a couter where oly a sigle bit has a differet value for two cosecutive couts. All the flip flops share the asychroous sigal, which sets the iitial cout to. xample (4 bits):,,,,,,,,, The figure below depicts a Johso couter. 2 - Istructor: aiel Llamocca

PARTMNT OF LCTRICAL AN COMPUTR NGINRING, TH UNIVRSITY OF NW MXICO C-238L: Computer Logic esig Fall 23 FINIT STAT MACHINS: Sequetial circuits are also called Fiite State Machies (FSMs), because the fuctioal behavior of these circuits ca be represeted usig a fiite umber of states (flip flop outputs). The sigal sets the flip flops to a iitial state. Classificatio: - Moore machie: Outputs deped solely o the curret state of the flip flops. - Mealy machie: Outputs deped o the curret state of the flip flops as well as o the iput to the circuit. Oly for Mealy Machie Iputs Combiatorial Circuit Flip Flops (states) Combiatorial Circuit Outputs clock Ay geeral sequetial circuit ca be represeted by the figure above (Fiite State Machie model). A sequetial circuit with certai behavior ad/or specificatio ca be formally desiged usig the Fiite State Machie method: drawig a State iagram ad comig up the xcitatio Table. esigig sequetial circuits usig the Fiite State Machie method is a powerful i igital Logic esig. xample: 2-bit gray-code couter with eable ad output:,,,,, The output is whe the preset cout is. First step: raw the State iagram ad State Table. If we were to implemet the state machie i VHL, this is the oly step we eed. = / / / S / S4 / / S2 / S3 / / PRSNT STAT S S2 S3 S4 S S2 S3 S4 NXT NXT STAT COUNT S S2 S3 S4 S2 S3 S4 S Secod step: State Assigmet. We assig uique flip flop states to the our state labels (S, S2, S3, S4). Notice that this is arbitrary. However, we ca save resources if we assig each state to the cout that we desire. The, the output cout is just the flip flops outputs. S: = S2: = S3: = S4: = Istructor: aiel Llamocca

PARTMNT OF LCTRICAL AN COMPUTR NGINRING, TH UNIVRSITY OF NW MXICO C-238L: Computer Logic esig Fall 23 Third step: xcitatio table. Here, we replace the state labels by the flip flop states: PRSNT STAT NXTSTAT (t) (t) (t+) (t+) Fourth step: xcitatio equatios ad miimiatio. (t+) ad (t+) are the ext state of the flip flops, i.e. these sigals are to be coected to the iputs of the flip flops. (t+) (t+) + = + + = + = Fifth step: Circuit implemetatio: clock state S S S2 S3 S3 S4 S4 S S2 S2 Istructor: aiel Llamocca

PARTMNT OF LCTRICAL AN COMPUTR NGINRING, TH UNIVRSITY OF NW MXICO C-238L: Computer Logic esig Fall 23 Modifyig the rate of chage of a Fiite State Machie: We usually would like to reduce the rate at which FSM trasitios occur. A straightforward optio is to reduce the frequecy of the clock iput. But this is a very complicated problem whe a high precisio clock is required. Alteratively, we ca reduce the rate at which FSM trasitios occur by iclug a eable sigal i our FSM. The we assert the eable sigal oly whe we eed it. The effect is the same as reducig the frequecy of the iput clock. The figure below depicts a couter modulo-n (from to N-) that geerates a pulse (output sigal ) of oe clock period every time we hit the cout N-. The umber of bits the couter is give by = log. The effect is the same as reducig the frequecy of the FSM to, where is the frequecy of the clock. A modulo-n couter is better desiged usig VHL behavioral descriptio, where the cout is icreased by every clock cycle ad is geerated by comparig the cout to N-. A modulo-n couter could be desiged by the State Machie method, but this ca be very cumbersome if N is a large umber. For example, if N =, we eed states. Iputs FSM Outputs clock couter to N- As a example, we provide the timig diagram of the couter from to N-, whe N=. otice that is oly activated whe the cout reaches. This sigal cotrols the eable of a state machie, so that the FSM trasitios oly occur every clock cycles, thereby havig the same effect as reducig the frequecy by. Istructor: aiel Llamocca