Start Active-HDL by double clicking on the Active-HDL Icon (windows).



Similar documents
Getting Started Using Mentor Graphic s ModelSim

Software Version 10.0d Mentor Graphics Corporation All rights reserved.

Lesson 1 - Creating a Project

Lab 1: Full Adder 0.0

How to test and debug an ASP.NET application

Quartus II Introduction for VHDL Users

Xilinx ISE. <Release Version: 10.1i> Tutorial. Department of Electrical and Computer Engineering State University of New York New Paltz

ModelSim-Altera Software Simulation User Guide

Introduction to Simulink

Installing a Browser Security Certificate for PowerChute Business Edition Agent

Internet Explorer 7. Getting Started The Internet Explorer Window. Tabs NEW! Working with the Tab Row. Microsoft QUICK Source

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER

Producing Standards Based Content with ToolBook

Introduction to ROOT and data analysis

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

After opening the Programs> Xilinx ISE 8.1i > Project Navigator, you will come to this screen as start-up.

VHDL Test Bench Tutorial

Two's Complement Adder/Subtractor Lab L03

MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

3 IDE (Integrated Development Environment)

Quartus II Introduction Using VHDL Design

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

Browsing and working with your files and folder is easy with Windows 7 s new look Windows Explorer.

OUTLOOK WEB APP (OWA): MAIL

Introduction to the use of the environment of Microsoft Visual Studio 2008

WebSphere Business Monitor V6.2 Business space dashboards

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

WebSphere Business Monitor V7.0 Business space dashboards

Mentor Tools tutorial Bold Browser Design Manager Design Architect Library Components Quicksim Creating and Compiling the VHDL Model.

Menus and Toolbars: Using and customizing those common to all OpenOffice.org components

Introduction to Visio 2003 By Kristin Davis Information Technology Lab School of Information The University of Texas at Austin Summer 2005

Using Flow Control with the HEAD Recorder

UML Class Diagrams (1.8.7) 9/2/2009

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

WHAT S NEW IN WORD 2010 & HOW TO CUSTOMIZE IT

DataPA OpenAnalytics End User Training

TUTORIAL 4 Building a Navigation Bar with Fireworks

D2L: An introduction to CONTENT University of Wisconsin-Parkside

ArcScan Tutorial. Copyright Esri All rights reserved.

Microsoft PowerPoint 2010 Handout

Introduction To Microsoft Office PowerPoint Bob Booth July 2008 AP-PPT5

How to set up HotFolders and Workflows

VMware Horizon FLEX User Guide

Introduction: The Xcode templates are not available in Cordova or above, so we'll use the previous version, for this recipe.

CNCTRAIN OVERVIEW CNC Simulation Systems

Merging Labels, Letters, and Envelopes Word 2013

DsPIC HOW-TO GUIDE Creating & Debugging a Project in MPLAB

ISim User Guide. UG660 (v 11.3) September 16, 2009

BusinessObjects Enterprise XI Release 2

Snagit 10. Getting Started Guide. March TechSmith Corporation. All rights reserved.

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

This Skill Builder demonstrates how to define and place sketched symbols in drawings.

Module 1: Getting Started With Altium Designer

Creating and Using Links and Bookmarks in PDF Documents

Lab Manual: Using Rational Rose

LinkPoint Connect for Salesforce Synchronization Tutorial Lotus Notes Edition

JustClust User Manual

About SharePoint Server 2007 My Sites

You can find the installer for the +Cloud Application on your SanDisk flash drive.

TYPING IN ARABIC (WINDOWS XP)

Subscribe to RSS in Outlook Find RSS Feeds. Exchange Outlook 2007 How To s / RSS Feeds 1of 7

Appendix K Introduction to Microsoft Visual C++ 6.0

PTC Integrity Eclipse and IBM Rational Development Platform Guide

Citrix EdgeSight for Load Testing User s Guide. Citrx EdgeSight for Load Testing 2.7

PCB Project (*.PrjPcb)

ISE In-Depth Tutorial 10.1

Adobe Dreamweaver CC 14 Tutorial

Citrix EdgeSight for Load Testing User s Guide. Citrix EdgeSight for Load Testing 3.8

Shortcut Keys. Edit document under cursor

Lab 3: Introduction to Data Acquisition Cards

Back-up Server DOC-OEMSPP-S/2014-BUS-EN-10/12/13

What is OneDrive for Business at University of Greenwich? Accessing OneDrive from Office 365

Publish Joomla! Article

Part Design. Page DASSAULT SYSTEMES. IBM Product Lifecycle Management Solutions / Dassault Systemes

ClickView Digital Signage User Manual

Kepware Technologies KEPServerEX Client Connectivity Guide for GE's Proficy ifix

Microsoft Access 2007

Website Creator Pro Quick Reference Guide. Version: 0.5

AutoDWG DWGSee DWG Viewer. DWGSee User Guide

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

OPERATION MANUAL. MV-410RGB Layout Editor. Version 2.1- higher

Creating tables of contents and figures in Word 2013

HOW TO ORGANIZE PICTURES

Microsoft Word 2010 Tutorial

Apache Directory Studio. User's Guide

Model 288B Charge Plate Graphing Software Operators Guide

Page Numbering for a Thesis or Dissertation

WebSphere Business Monitor V7.0 Script adapter lab

1. Right click using your mouse on the desktop and select New Shortcut.

Discovery Visual Environment User Guide

PowerPoint. Basics. Project

TIBCO Business Studio - Analyst Edition User's Guide

Creating a Java application using Perfect Developer and the Java Develo...

Web Content Management Training Manualv3

Installing Remote Desktop Connection

Appendix A How to create a data-sharing lab

Migrating to Excel 2010 from Excel Excel - Microsoft Office 1 of 1

The basic steps involved in installing FLEETMATE Enterprise Edition and preparing it for initial use are as follows:

XRD CONVERSION USER S MANUAL

Transcription:

Getting Started Using Aldec s Active-HDL This guide will give you a short tutorial in using the project mode of Active-HDL. This tutorial is broken down into the following sections 1. Part 1: Compiling a Design 2. Part 2: Simulating a Design 3. Transitioning to the Next Lab 4. Setting Simulator Resolution 5. Directory Structures and Running Scripts 1 Part 1: Compiling a Design 1.1 Code Your Design Code your design per the lab directions. 1.2 Start Active-HDL Start Active-HDL by double clicking on the Active-HDL Icon (windows). Menu Buttons Tool Window Command / Transcript Window When you open Active-HDL, a dialog box will open to open a workspace. If you have already created workspace, select and open it. Otherwise, select create a new workspace and work through the steps in the next section. Copyright 2007-2011 by SynthWorks Design Inc. All rights reserved Aldec Active-HDL - 1

1.3 Creating a Workspace If you closed the dialog box from the previous section, you can get to this step by selecting the menu command, File > New > Workspace. In the first dialog box, specify workspace name to match the design name (Inc) and specify the workspace folder to be put in the directory VhdlIntro/Chipper/vhdl_src. Make sure the box, Add new Design to Workspace is checked. This is shown below. In the second dialog, check the box marked, Add Existing Resource File and press next. In the third dialog, browse to your VHDL source directory (for lab 1 it is VhdlIntro/Chipper/vhdl_src ) and select the design files (for the first part of lab 1 it is just Inc.vhd) and press next. In the fourth dialog, press next. In the fifth dialog, specify the design name (Inc) and press next. In the last dialog, press finish. In this step you created the workspace, added a design (Inc) and compiled it. If you had errors, read the next section to help understand them, skip the Adding Files section (until you create your testbench), and then recompile your design using the steps in Compile a Design. 1.4 Understanding Compile Errors The key to understanding error messages is to realize that the message is produced after the compiler gets lost. In the example below, the entity Adder8 (not the lab design) has a ; after the last port declaration. Most often this means that the error message will be generated on line 41. This is common, so make sure when you get an error message to read the specific error message and realize the root cause may be something done on the previous line that causes the compiler to detect the error on the current line. 36 -- not the lab design 37 entity Adder8 is 38 port ( 39 A, B : In std_logic_vector(7 downto 0); 40 Y : Out std_logic_vector(7 downto 0); -- error 41 ); 42 end Adder8 ; Note that you can double click on an error message and editor will take you to the line in error. Copyright 2007-2011 by SynthWorks Design Inc. All rights reserved Aldec Active-HDL - 2

1.5 Adding Files As your project grows, you may need to add files. To do this, use the menu command: Design > Add Files to Design. 1.6 Compile a Design After correcting errors, recompile a design with the menu command: Design > Compiles All. After adding files, compile a design with the menu command: Design > Compiles All with File Reorder. 2 Simulating a Design 2.1 Code Your Testbench Code the testbench per lab directions. 2.2 Add Testbench and Compile Add IncTb.vhd to your design using the steps from Adding Files and then compile IncTb.vhd using the setps from Compile a Design. Make sure to use Compiles All with File Reorder as the testbench needs to be compiled last. 2.3 Load the Testbench To run a simulation, we need to select the testbench in the library, set it as the top-level, and then initialize the simulation. In the Design Browser window, expand the library (Inc) and select the testbench (inctb). This is shown in the picture below. Right click on the testbench (inctb) and select Set as Top-Level. Now select the menu command, Simulation > Initialize Simulation. Copyright 2007-2011 by SynthWorks Design Inc. All rights reserved Aldec Active-HDL - 3

2.4 Display Waveforms Display the waveforms before running the simulation and after loading the testbench. To display waveforms, select the design under test (inc) in the structure tab of the design browser, right-click the mouse, and select Add to Waveform. Specify default run length here Press here to undock wave window Once a waveform window is available, you may drag entities to the wave window from the Design Browser structure tab into the waveform window. 2.5 Run the Simulation For lab 1, you will be running your design for 720 ns. To do this, change the default run length (see picture above) to 720 ns (type it in the box). Now select Simulate > Run For. Note that it is quite normal to see warning messages at the start of the simulation. Most messages that occur before a design is initialized and/or reset can be ignored. For example, the following warning results from the A input being initialized to UUUUUUUU at time 0: # KERNEL: WARNING: There is an 'U' 'X' 'W' 'Z' '-' in an arithmetic operand, the result will be 'X'(es). # KERNEL: Time: 0 ps, Iteration: 0, Instance: /U_Inc,... Note that if you forgot to display your waveforms before running the simulation or find a bug during simulation, you will need to re-run the simulation. See the next section for details. Copyright 2007-2011 by SynthWorks Design Inc. All rights reserved Aldec Active-HDL - 4

2.6 Recompiling and Rerunning a Simulation VHDL designs are required to be compiled bottom-up. In Active-HDL, the tool re-arranged the compile order for you when you used Design > Compiles All with File Reorder. Once you have done this, use the Design > Compiles All command to rebuild the design hierarchy. Then re-run the simulation. 2.7 Using the Waveform Window All commands described in this section are done with the waveform window undocked. To undock the wave window press on the undock button (see diagram in the Displaying Waveforms section it looks like >> ). The waveform window menus appear as shown below. 2.7.1 Displaying Waveforms after Running a Simulation If you display waveforms after running a simulation and want to see the waveforms from the beginning of time, you will need to restart your design (using the restart command) and rerun the simulation. 2.7.2 Zooming Zoom In, Out, and Fit is available with View > Zoom > menu. They are also available from the button bar. 2.7.3 Selecting Signals Select one signal by clicking the left mouse button on its name. To select multiple signals, 1. Select one signal and then press shift-left mouse button to select a range 2. Select one signal and then add more signals by pressing ctrl-left mouse button. 2.7.4 Moving Signals Select signal(s) and drag to new location in wave window. Copyright 2007-2011 by SynthWorks Design Inc. All rights reserved Aldec Active-HDL - 5

2.7.5 Radix The radix of the selected signal (or signals) can be specified using the Edit > Properties menu command. 2.7.6 Using Cursors To accurately place a cursor, use the find next change symbols (shown below) to move the active cursor to the next change of the selected signal. Alternately dragging a cursor over an edge of the selected signal will cause the cursor to try to snap to the edge. Measurement Mode Find next change to right Find next change to left To measure the time between two points, select a signal and then use the measurement mode. 3 Transitioning to the Next Lab If you are starting a new project, start with the steps described in Creating a Workspace. If you are continuing on the same project (like LedCtrl and LedFlasher ), you can simply add files to the current project using the steps described in Adding Files. Copyright 2007-2011 by SynthWorks Design Inc. All rights reserved Aldec Active-HDL - 6

4 [Optional] Setting Simulator Time Resolution In Aldec, the simulator resolution is set to Auto by default. To change the simulator resolution, use the Design > Settings menu command and then select the Simulation option (as shown below. And set the simulator resolution in the box shown below. Simulation Resolution: Note this is not the default run length. 5 Directory Structures & Running Scripts Currently we are running the simulator out of the VHDL source directory (vhdl_src). An alternate way to organize a project is to have a separate directory for source files and separate directories for the simulator and synthesis tools. The following directory structure is being used for these labs: Chipper vhdl_src sim_aldec fpga_xilinx Exit out of the simulator. In the directory vhdl_src, delete any file that does not have a *.vhd extension. Delete the subdirectory work. Start the simulator. Use the tools > Execute Macro menu command to run the script file named TbLedFlasher_lab6.tcl that is in the directory VhdlIntro/Chipper/sim_aldec. Note only *.do files are visible by default and you will have to use the dialog box to enable seeing either *.tcl files or all files (*.*). Since Aldec has a project style compile, the main use of a script like this is to initialize a project the first time (such as when a new member joins a project or the project is un-archived). Copyright 2007-2011 by SynthWorks Design Inc. All rights reserved Aldec Active-HDL - 7