Algorithmic State Machines SD192 Digital Systems Lecture notes July 16, 2004.

Slides:



Advertisements
Similar presentations
Give qualifications of instructors: DAP
Advertisements

Verilog Descriptions of Digital Systems
Register Transfer Level
1ASM Algorithmic State Machines (ASM) part 1. ASM2 Algorithmic State Machine (ASM) ‏ Our design methodologies do not scale well to real-world problems.
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
Give qualifications of instructors: DAP
8085 processor. Bus system in microprocessor.
التصميم المنطقي Second Course
Chapter 6 Digital System Design Digital Systems and Logic Designs.
EKT 221 : Digital 2 ASM.
Finite State Machine Chapter 10 RTL Hardware Design by P. Chu.
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
The Control Unit: Sequencing the Processor Control Unit: –provides control signals that activate the various microoperations in the datapath the select.
1 COMP541 Sequencing and Control Montek Singh Mar 29, 2007.
George Mason University ECE 448 – FPGA and ASIC Design with VHDL Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts,
Algorithmic State Machines
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 20 Datapath and Control Datapath - performs data transfer and processing operations.
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
9/15/09 - L22 Sequential Circuit Design Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Design Creating a sequential circuit to address a.
Registers and Counters
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
Digital Logic Lecture 08 By Amr Al-Awamry. Combinational Logic 1 A combinational circuit consists of an interconnection of logic gates. Combinational.
ECE 101 An Introduction to Information Technology Digital Logic.
Circuit, State Diagram, State Table
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Rabie A. Ramadan Lecture 3
Chap 8. Sequencing and Control. 8.1 Introduction Binary information in a digital computer –data manipulated in a datapath with ALUs, registers, multiplexers,
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
1 Registers & Counters Logic and Digital System Design - CS 303 Erkay Savaş Sabancı University.
Register Transfer Level & Design with ASM
EKT 221/4 DIGITAL ELECTRONICS II Chapter 2 SEQUENCING AND CONTROL.
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Algorithmic state machines
Datapath - performs data transfer and processing operations The control unit sends: – Control signals – Control outputs The control unit receives: – External.
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
Chapter 6 Digital System Design Digital Systems and Logic Designs.
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 4 – Part 4 Tom Kaminski & Charles.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 6 – Part 4.
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
ASM Charts. Outline  ASM Charts Components of ASM Charts ASM Charts: An Example  Register Operations  Timing in ASM Charts  ASM Charts => Digital.
5.3 Sequential Circuits - An Introduction to Informatics WMN Lab. Hey-Jin Lee.
Design at the Register Transfer Level Algorithmic State Machines 07.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
EKT 221 : DIGITAL 2.
Figure 8.1. The general form of a sequential circuit.
Prof. Hsien-Hsin Sean Lee
EEL 3705 / 3705L Digital Logic Design
Basics of digital systems
Overview Register Transfer Language Register Transfer
Overview Instruction Codes Computer Registers Computer Instructions
Digital Logic Last Time … This Time … Control Path, Arithmetic Ops a
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
Digital System Design Review.
Instructor: Alexander Stoytchev
Instructor:Po-Yu Kuo 教師:郭柏佑
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
REGISTER TRANSFER LEVEL (RTL) DESIGN Using ASM CHART
Combinational Circuits
KU College of Engineering Elec 204: Digital Systems Design
ASM and Micro-programmed State Machines
Instructor: Alexander Stoytchev
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL code ECE 448 – FPGA and ASIC Design.
CSE 370 – Winter Sequential Logic-2 - 1
SYEN 3330 Digital Systems Chapter 2 – Part 1 SYEN 3330 Digital Systems.
Presentation transcript:

Algorithmic State Machines SD192 Digital Systems Lecture notes July 16, 2004

ASM Overview Drawbacks of state diagrams for real systems: Many inputs & many outputs -> awkward to list all of these as each transition arc. On any given arc Typically most inputs are don’t care Typically most outputs are unchanged from the settings in the previous state Tedious & repetitive to list exhaustively

ASM Overview Not a clear structure for illustrating/designing control flow What about generic memory/data Do they really need to be part of the state? If we have many bits of data, this would lead to a huge state E.g. state diagram for counter or shift register is pointless

ASM Overview Some problems analogous to before Combinational: Small problems – truth tables ok/easy Adders, Muxes – TT get out of hand Sequential: Small – state diagrams easy Real, Data – state diagrams not helpful

ASM Overview We need to separate controller & data processor Controller – What actions need to be taken? What is fundamental operating mode? Processor – Undertake the action. Manipulate the data

ASM Overview Control and data path interaction Our circuit is now explicitly separated Combinational Shift Registers. Counters, Mux, etc. State Control Data Processing Commands Status I/O Outside World

ASM Overview Ex. Serial Addition StartLoad, ClearRun Go=1 Go=0 Ctrl  n Ctrl=n, set done

ASM Overview X Y S Ci Co Q D CLR Q Si Q D Sor < B = A > Outside World Go Clear Ctrl=n Done n S/I n n n

ASM Design Data processing: what sorts of manipulations of the input and output data are requested? How many/what sorts of things need to be stored? How to design Ad hoc/creative/by insight List requested operations/manipulations Include initialization controls Include status lines

ASM Design Control logic All of the commands to the data proc. logic need to be controlled, and the status lines need to be monitored and acted upon. ASM charts are like state diagrams, but without specific drawbacks. Don’t list all inputs for each transition – don’t care inputs Don’t list all outputs for each state – not changed outputs

ASM Design How to design - ASM chart/state diagram (for small problems) State assignment State table Kmap-gates/FF/Reg Mux Dec/EPROM, or, creatively, a combination of them

ASM Design ASM charts are like flowcharts, with a few crucial differences. Be careful, especially with timing. State Box Decision Box Combinational Box

ASM Design State Box – one box per system state Operations NAMEcode i.e. optioinal binary state code

ASM Design Operation notation: Sum <- 0 or Carry <- 0 or LOAD A Combinational variable: S=0, T=S+V Idea: keep operations abstract & high level. Don’t work in detailed language of processing logic (i.e. write Sum <- 0, not CLR Sum Reg =1) Operations will take place at the end of the clock period

ASM Design Decision Box - Basic condition, i.e. logic flow control. Only the decision boxes depend on inputs. Y N 1 0 ConditionBoolean

ASM Design 1n Ctr. 1

ASM Design Keep conditions as general as possible. Prefer: Carry high? Over Q FF#5 =1?

ASM Design Conditional Box - An action/operation to be undertaken conditioned on some earlier decision box. Operations

ASM Design Conditional boxes do not appear in normal flowcharts. The essential difference is timing: Flowcharts are sequential ASM charts are not. All of the operations associated with a given state take place simultaneously.