Xilinx State Diagram

Similar documents
State Diagram Tutorial. written by Pasquale A. Catalano 10/29/02

ECT 224: Digital Computer Fundamentals Using Xilinx StateCAD

Power Point 2000 Level 1

Boise State University Digital Systems Laboratory

Chapter 5. Inserting Objects. Highlights

Developer s Tip Print to Scale Feature in Slide

Altera Quartus II Tutorial ECE 552

Adobe PageMaker Tutorial

Introduction to Microsoft FrontPage

Creating Labels using Label Designer

Using Adobe Contribute 4 A guide for new website authors

Roof Wizard. Advanced Software for Roof Modeling and Estimating. Tutorial for Modifying Reports

1) Merge the cells that contain the title and center the title

PowerPoint Spring 2002

ELEC 204 Digital System Design LABORATORY MANUAL

Click the buttons in the interactive below to become familiar with the drawing tool's commands.

Xilinx Tutorial Basic Walk-through

Created by: Leslie Arakaki

Programming in C# Project 1:

Using Styles In Microsoft Word 2002

Contents for How to Use the Simulator Program

Microsoft Excel 2010 Part 2: Intermediate Excel

Netscape Composer: Working with Tables

A Step-by-step guide to creating a Professional PowerPoint Presentation

NIOS CPU Based Embedded Computer System on Programmable Chip

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Introduction to web page creation

Table of Contents. Contents

Tutorials. Lesson 3 Work with Text

Word 2013 Quick Start Guide

Contents for How to Use the Simulator Program

The Mathcad Workspace 7

Master Pages. Basics 1

Getting Started with LabVIEW Virtual Instruments

OrgPublisher Advanced Box Layout Editor

Using SymPrint to Make Overlays, Templates & More...

Tutorial 3 - Welcome Application

Microsoft Visio 2010

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

Math 2524: Activity 1 (Using Excel) Fall 2002

2.1 Logging on to FieldManager Software

Microsoft Access 2010

PowerPoint 2016 Building a Presentation

Creating a new project To start a new project, select New from the File menu. The Select Insert dialog box will appear.

University of Florida EEL 3701 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering Revision 0 12-Jun-16

Alaska Cruise Itinerary Assignment

Getting to Know FlexPro in just 15 Minutes

to display both cabinets. You screen should now appear as follows:

PowerPoint Basics (Office 2000 PC Version)

FPGA Introductory Tutorial: Part 1

Display Systems International Software Demo Instructions

ADJUST TABLE CELLS-ADJUST COLUMN AND ROW WIDTHS

Let s Make a Front Panel using FrontCAD

v Annotation Tools GMS 10.4 Tutorial Use scale bars, North arrows, floating images, text boxes, lines, arrows, circles/ovals, and rectangles.

Tutorial 9: Creating Layout Plans and Printing

How to Create Database in Microsoft Access 2003

Dreamweaver Basics Workshop

Real Estate Flyer. Projects 1

Create a Scrolling Effect in PowerPoint 2007

Getting Started with Xilinx WebPack 13.1

Microsoft Windows 7 - Illustrated Unit A: Introducing Windows 7

2. In the Start and End Dates section, use the Calendar icon to change the Displayed Start Date to 1/1/2015 and the Displayed End Date to 5/31/2015.

Lesson 1 New Presentation

2D Tutorial. Project Description: Running VisualAnalysis: Setting Up the Project:

Working with Excel involves two basic tasks: building a spreadsheet and then manipulating the

Contents for How to Use the Simulator Program

Artistic Text. Basics 1

Basic Concepts 1. For this workshop, select Template

IT ACADEMY LESSON PLAN

Working with Excel CHAPTER 1

Department of Electrical and Computer Engineering Xilinx ISIM <Release Version: 14.1i> Simulation Tutorial Using Verilog

Microsoft Access 2013

Chapter 3. HDL Editor. Introduction. Figure 3-1. HDL Editor Welcome Screen. Introduction 3-1

TYPE EDIT V12. Tutorial 03. Multicopy to create a set of medals COPYRIGHT 2014 GRAVOTECH MARKING SAS ALL RIGHTS RESERVED

Adobe Illustrator. Quick Start Guide

OrgPublisher Cross Browser Planning User Guide

Microsoft Visio Working with Shapes

Microsoft PowerPoint Tutorial

Creating a Web Presentation

How to Get Started. Figure 3

Dive Into Visual C# 2008 Express

Microsoft Visio Working with Connectors

A TUTORIAL ON WORD. Katie Gregory

KIN 147 Lab Practical Mid-term: Tibial Acceleration Data Analysis Excel analyses work much better on PCs than on Macs (especially older Macs)

Introduction to Microsoft Word

CHEMICAL SAFETY EMS SOFTWARE. Accumulation Inventory

You can clear the sample data from the table by selecting the table and pressing Delete.

Pro Users Guide Pro Desktop Signmaking Software

Introducing Gupta Report Builder

MS Word Basics. Groups within Tabs

PHYSICIAN S OFFICE STAFF Instructions for Paragon s WebStation for Physicians

A Study of Angles & Curves

Linear Control Systems LABORATORY

Decorating the Christmas Tree with Generations Version 1.4 By Bernadette Griffith, Educational Director, Generations Software

ArcGIS Online Tutorial

Slides & Presentations

Introduction. Getting Started. Selecting a Template. 1 of 1

SOFTWARE SKILLS BUILDERS

Introduction to Microsoft Office PowerPoint 2010

CHAPTER 3. Entering Text and Moving Around

Transcription:

Xilinx State Diagram <Release Version: 8.2i> Tutorial Department of Electrical and Computer Engineering State University of New York New Paltz Fall 2006 Baback Izadi

Start a new Project and Select the correct chip setup for the Digilab 2 boards. Click Next. Set the values as shown below. Click Next.

This opens the New Project Dialog box. Click on New Source. Select State Diagram and give the file a name. The File name needs to be 8 or fewer characters. Make sure Add to Project check box is checked. Then click Next. Then, Finished.

This will open the New Source Dialog box again for confirmation. Click Next and Finish. This opens StateCAD. Once StateCAD is open access the Design Wizard using button. Select a geometric diagram with 4 states and then click "Next.

Select Asynchronous Reset, then hit Next. To setup the transitions from one state to another, select both the "Next" and "Previous" options in the "Setup Transitions" window. Click Finish! The template state diagram has been created but it still needs to be placed onto the blank diagram window. To place the diagram created from the wizard, left-click anywhere on the blank diagram; an inch from the top-left corner is a good place.

Now that the basic diagram is in place, we need to add/remove/modify the current transitions to obtain the correct state diagram for the sequence generator. Left-click on one of the two boxes of the transition arrow State0-->State1. This will bring up the "Edit Conditions" dialog box. Add the condition MODE = '1' in the "Conditions" box. This condition will make the transition State0-->State1 occurs when MODE is true or '1'. Click OK. Your diagram will now have the condition on the transition line.

At some point you will need to resize and move the transition text so as to make it more readable and organized. This can be done by holding down the left mouse button and moving the mouse accordingly. You can use these tools for any modifications. Pointer Tool Add State Tool Add Transition Tool Double click on State1.

To assign the correct output for that state, click on the "Output Wizard" button. Select "Constant" from the upper left box, type 1 in the "CONSTANT" box, type DOUT in the "DOUT1" box, and set the "Data path width" to 1. Click on "OK". Do this process again. But, this time, define an output DOUT2 with data width 1 and set its constant value to 0. Click OK. Now State 1 has two defined outputs.

Click OK. You can see the outputs of State1 on the diagram. Alternatively, you may type the value of the output for a given state; no need to run the Output Wizard. Double click State2. Edit the outputs as seen below. Click OK when done.

Continue till all states outputs have been defined as follows. If a state transition is not needed, it can be deleted by left clicking on the transition line and pressing the delete key. Let s delete the following state transitions. State0-->State3 State2-->State1 State2-->State3 State3-->State2

The state diagram should now look like the following. We can add additional state transitions by using the button. Let us add the following transitions: State0-->State2, State1-->State3, State2-->State0. To do this, press the button with the blue curved line on the left toolbar. Left-click on the edge of State0 to start the beginning of the transition, indicated by a red box, and once more at the edge State2 to end the transition. Do the same from State1 to State3 and State2 to State0. The state diagram should now look like this.

Finish the diagram by applying the following conditions and outputs for each transition: State0-->State2 Condition: MODE = '0' State1-->State3 Condition: MODE = '0' State 2-->State0 Condition: MODE = '1 State1-->State0 Condition: MODE = '1' State2-->State1 Condition: MODE = '0' Note: If there are more than one condition for state transition, use and operator to separate the conditions. For example: MODE1 = 1 and MODE2 = 0 The final state diagram is shown below. Now save the diagram. Now we need to test our design. Left Click on the State Bench Button. If all goes well, this dialog window will appear.

We do not want to optimize any outputs so just click CANCEL. Then a small waveform generator will appear after the VHDL has been compiled.

Xilinx can automatically generate every single test case possible, just by clicking this button. And the following window will appear. Just click BEGIN. This will show you the VHDL code along with the waveform. Verify that your design is correct by viewing the generated waveform.

Alternative Notations: You may specify your inputs either as Mode = 1 or simply as Mode. For Mode = 0, you can use!mode. So, your state diagram may also be implemented as: For multiple inputs, you can either Abel notation A &!B & C or using VHDL notation A='1' AND B='0' AND C='1'.