Guide to Performing Simulation using Xilinx ISE 13.x and ModelSim 10.x

Similar documents
Industrial Security Facilities Database (ISFD) Troubleshooting Tips

Team Foundation Server 2012 Installation Guide

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

Pocket ESA Network Server Installation

Lotus Notes 6.x Client Installation Guide for Windows. Information Technology Services. CSULB

8x8 Virtual Office Telephony Interface for Salesforce

Lab 1: Full Adder 0.0

Configuration for Professional Client Access

Practice Fusion API Client Installation Guide for Windows

ProjectWise Explorer V8i User Manual for Subconsultants & Team Members

QUANTIFY INSTALLATION GUIDE

How to Install CS OrthoTrac on a New Server and Copy the Data from the Old Server to the New Version 12 and higher

You may have been given a download link on your trial software . Use this link to download the software.

How To Install Database Oasis On A Computer Or Computer (For Free)

Installing LearningBay Enterprise Part 2

Installing S500 Power Monitor Software and LabVIEW Run-time Engine

This manual provides information and instructions for Mac SharePoint Users at Fermilab. Using Sharepoint from a Mac: Terminal Server Instructions

eadvantage Certificate Enrollment Procedures

Rational Application Developer v7.0 (RAD7) trial version. Installation guide

Lab: Data Backup and Recovery in Windows XP

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

Setting Up the Device and Domain Administration

Setting Up ALERE with Client/Server Data

How to Add a Server/Disksafe/Volume

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

Lesson 1 - Creating a Project

How to Install the Active Directory Domain Services (AD DS) Role in Windows Server 2008 R2 and Promote a Server to a Domain Controller

Installing a Browser Security Certificate for PowerChute Business Edition Agent

DEPLOYING A VISUAL BASIC.NET APPLICATION

Producing Standards Based Content with ToolBook

How schedule AccuTRConsole to run every hour

Census. di Monitoring Installation User s Guide

SQL Server 2008 R2 Express Edition Installation Guide

BSDI Advanced Fitness & Wellness Software

Video Administration Backup and Restore Procedures

Moving the Web Security Log Database

Auto-Archiving your s in Outlook

Lab - Data Backup and Recovery in Windows XP

PigCHAMP Knowledge Software. Enterprise Edition Installation Guide

Allworx OfficeSafe Operations Guide Release 6.0

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

ONBASE OUTLOOK CLIENT GUIDE for 2010 and 2013

Using an Automatic Back Up for Outlook 2003 and Outlook 2007 Personal Folders

How To Restore Your Data On A Backup By Mozy (Windows) On A Pc Or Macbook Or Macintosh (Windows 2) On Your Computer Or Mac) On An Pc Or Ipad (Windows 3) On Pc Or Pc Or Micro

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

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

Database Backup and Restore Instructions. Version 6.5. Instructions

Contents Models 3500 / 3600 Software & Driver Installation... 1 Install Amplifier Control Panel... 2 Download and Install the Drivers...

BushSoft Accounts - Installation manual

Sharpdesk V3.5. Push Installation Guide for system administrator Version

Administrator s Plus. Backup Process. A Get Started Guide

Create!form Folder Monitor. Technical Note April 1, 2008

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

Exchange Server Backup and Restore

Setting Up Windows Perfmon to Collect Performance Data

5.6.2 Optional Lab: Restore Points in Windows Vista

NAS 206 Using NAS with Windows Active Directory

Como configurar o IIS Server para ACTi NVR Enterprise

Downloading Driver Files

Moving the TRITON Reporting Databases

Site Maintenance Using Dreamweaver

Working with Office Applications and ProjectWise

Online Backup and Recovery Manager Setup for Microsoft Windows.

Reconfiguring VMware vsphere Update Manager

ODBC Driver Version 4 Manual

Secret Server Installation Windows 8 / 8.1 and Windows Server 2012 / R2

Altaro Hyper-V Backup - Getting Started

Access It! Universal Web Client Integration

Setting up the Oracle Warehouse Builder Project. Topics. Overview. Purpose

IIS, FTP Server and Windows

Migrating MSDE to Microsoft SQL 2008 R2 Express

1. Downloading. 2. Installation and License Acquiring. Xilinx ISE Webpack + Project Setup Instructions

IceWarp Unified Communications. Installation Guide. Version 10.4

InventoryControl for use with QuoteWerks Quick Start Guide

GIAC Introduction to Security Fundamentals. Laptop and External Drive Configuration Guide Version 1.2 SEC301

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

Using Device Discovery

How to Install and Setup IIS Server

JobOps 2013 R2 Installation Guide

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

Setting up a database for multi-user access

Virtual Office Remote Installation Guide

Idera SQL Diagnostic Manager Management Pack Guide for System Center Operations Manager. Install Guide. Idera Inc., Published: April 2013

Acroprint Time Recorder Company QuickBooks Integration Instructions for timeqplus v4 Software

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Voyager Reporting System (VRS) Installation Guide. Revised 5/09/06

Installation Guide for Windows May 2016

1. Open the Account Settings window by clicking on Account Settings from the Entourage menu.

SAS Installation Instructions Windows 2003, XP, 2000, NT. SAS Client Server Installation. Introduction:

Purchase Agent Installation Guide

TECHNICAL NOTE. The following information is provided as a service to our users, customers, and distributors.

NetBeans IDE Field Guide

Setting Up a Backup Domain Controller

Installation Guide - Client. Rev 1.5.0

IMDG Code for Intranet

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

TeamPoS2000-M Windows XP Pro Device Installation

How to Program a Commander or Scout to Connect to Pilot Software

Using a Digital Recorder with Dragon NaturallySpeaking

FTP, IIS, and Firewall Reference and Troubleshooting

Transcription:

Guide to Performing Simulation using Xilinx ISE 13.x and ModelSim 10.x Lalith Narasimhan Department of Electrical Engineering Western Michigan University l3narasi@wmich.edu January 10, 2012 This document details the steps required to perform behavioral and post-route simulations using the Xilinx Integrated Software Environment (ISE) and Mentor Graphics ModelSim simulator. In the past, Xilinx bundled the ISE with a licensed edition of ModelSim, resulting in little or no issues between the two softwares. However, in recent years it appears as if the two companies are no longer on level terms. As a result, Mentor Graphics does not provide Xilinx with licenses for ModelSim and Xilinx for its part does not provide pre-compiled device libraries for ModelSim. This tutorial will show you how to resolve compatibility issues, so that you can continue to use the features that these softwares provide. As with any software tutorial, there is always more than one way of doing things. If you come across better solutions or typos or have any suggestions for improving this document please email the author or contact Dr. Grantner. 1 Pre-requisite Before reading any further you should have the following softwares installed on your computer Xilinx Design Suite 13.x or Xilinx WebPACK 13.x Modelsim SE 10.x or ModelSim PE Student Edition 10.x If you have other versions installed we suggest you to first run simulations on a sample project. If you run into software issues then you can proceed to do modifications descibed in this document. 2 Simulation Libraries As mentioned earlier, the Xilinx suite no longer comes with pre-compiled device libraries for ModelSim. These libraries contain device specific information like timing parameters required by ModelSim for performing simulation. Xilinx provides two methods for compiling device libraries: 1

Simulation Library Compilation Wizard Compile HDL Libraries through Project Navigator 2.1 Setting up Environment Variables Before we discuss the individual methods, let us first understand how ModelSim accesses these libraries. A list of the compiled libraries and their locations is stored in modelsim.ini file found in the installation directory. When ModelSim starts a simulation it searches for this ini file; first, in the local project folder, then in the installation directory of ModelSim. If a particular library is not found, the simulation stops with an error. Both the methods discussed above cannot access the modelsim.ini file directly, so it is important that we setup environment variables that point to the location of this file. Setting up environment variables requires administrative privileges on your computer. If you do not have these privileges skip to the next section. 1. The first step is to change the write permissions for the modelsim.ini file. Browse to the ModelSim install directory. In our setup this is c:\modeltech64 10.0c (this will be different for other versions). Right-click on modelsim.ini, select Properties and uncheck Read-only. 2. Make a backup of the modelsim.ini file for safety reasons. 3. The easiest way to view or modify the environment variables is by right-clicking on My Computer Properties, click Advanced system settings Environment Variables. 4. Under System variables, click New, enter modelsim for the variable name. For the Variable value enterc:\modeltech64 10.0c\modelsim.ini. 5. Similarly, add another variable named Path with the value c:\modeltech64 10.0c\win64. For our setup, win64 is where the executable (modelsim.exe) is located. If a variable called path already exists, make sure you append to the existing values. Note that multiple values can be separated by semi-colon. 6. Click OK to save these settings. 2.2 Simulation Library Compilation Wizard This method is highly recommended because library compilation can be performed for more than one device family and/or language. 1. Open the Simulation Library Compilation Wizard. This can be accessed from Start Menu Programs Xilinx ISE Design Suite 13.x ISE Design Tools 32-bit Tools. Note: If you are using 64-bit version of ModelSim use the Simulation Library Compilation Wizard from 64-bit Tools. ModelSim PE Student Version 10.x is only available in the 32-bit version. 2. The Select Simulator window opens up. Select the appropriate simulator (For Student Edition select ModelSim PE), enter c:\modeltech64 10.0c\win64 for executable location, compxlib.cfg for Compxlib Configuration File and compxlib.log for Compxlib Log File. 2

3. Next select the HDL used for simulation. If you are unsure select Both VHDL and Verilog. However, this will increase the compilation time and the disk space required. 4. Then select all the device families that you will be working with. Again the more number of devices, more the compilation time and the disk space required. Remember that you can always run the compilation wizard at a later time for additional devices. 5. The next window is for Selecting libraries for Functional and Timing Simulation. Different libraries are required for different types of simulation (behavioral, post-route, etc.). We suggest that you select All Libraries as the default option. Interested users can refer to Chapter 6 of the Xilinx Synthesis and Simulation Design Guide for additional information. 6. Finally the window for Output directory for compiled libraries is shown. We suggest to leave the default values that Xilinx picks. Then select Launch Compile Process. 7. Be patient as the compilation can take a long time depending on the options that you have chosen. 8. The compile process may have contain a lot of warnings but should be error-free. We have not explored the reasons behind these warnings, but they do not appear to affect the simulation of any of our designs. 9. Once the process is completed, open c:\modeltech64 10.0c\modelsim.ini and verify if there are libraries pointing to the output directory entered in step 6. This will happen only if you have set the environment variables. Library compilation is now complete. If you have not set the environment variables then the wizard creates a modelsim.ini in the output directory entered in step 6. By default this location is c:\xilinx\13.x\ise DS\ISE. Open this file and verify that it contains the location of the libraries that were just compiled. This file should be copied into every project you create. 2.3 Compile HDL Libraries through Project Navigator In this method the libraries are compiled after creating a project through the Xilinx ISE Project Navigator. As you can see the major disadvantage of this method is that the libraries can be compiled for only one device at a time. The libraries are however compiled to the same output directory as before. If the environment variables were set up as discussed before, Xilinx modifies the modelsim.ini file in the ModelSim installation directory, otherwise Xilinx creates a modelsim.ini file in the current project folder. This file should be copied into every project you create. 1. Create a New project in Xilinx ISE Project Navigator. 2. In the View pane, select Implementation radio button, then select the project device entry (for example, xcv50-6bg256). 3. In the Processes panel, expand Design Utilities. Right-click on Compile HDL Simulation Libraries, and select Properties. 3

4. In the Simulation Library Compiler Properties dialog box, select the target simulator and the libraries you wish to compile. 5. In the simulator path enter c:\modeltech64 10.0c\win64. Then click OK 6. To Compile HDL Simulation Libraries, double-click Compile HDL Simulation Libraries in the Processes panel. The compilation process should now start. The compilation should take less time as compared to the other method. Again the compile process may have quite a lot of warnings but should have no errors. 3 Running the Simulation 3.1 ModelSim SE 10.x If you are using ModelSim SE version which is the one installed in the lab, running the simulation is straightforward. In the View pane, select Simulation, choose the type of simulation you want to run from the drop-down list and finally run ModelSim from the Processes panel. Xilinx automatically generates the files needed by ModelSim for compiliation and simulation. Once ModelSim loads, simply go to File Load, to load the *.do file. 3.2 ModelSim PE Student Edition 10.x If you are using the PE Student Edition, the steps described above fails. The reason for this failure is quite trivial but one that Xilinx has ignored or failed to fix in ISE 13.x. Essentially when you run ModelSim from the Processes panel, Xilinx queries for the ModelSim version string and checks if this is compatible with ISE. With the PE Student Edition, Xilinx uses mti pe edition as the string instead of mti pe. Remember that when we compiled, we used ModelSim PE because ModelSim PE Student Edition wasn t available. This mismatch means that ModelSim cannot be invoked from with ISE. However a workaround has been found and will be discussed now. 3.2.1 Behavioral Simulation 1. Launch ModelSim from your operating system not from ISE. If you set up the modelsim.ini environment variable, ModelSim loads with a list of the compiled libraries. 2. Go to File Change Directory. Browse to and select your Project folder. Click OK. If you haven t set the modelsim.ini environment variable, ModelSim reads the.ini file in your project folder and loads a list of the compiled libraries. 3. Go to Compile Compile, select the design file you wish to run the simulation for and click Compile. If there is a pop-up asking you permission to create work library, click Yes. If the Transcript window shows that the compilation is done, click Done. 4. Go to Simulate Start Simulation. In the Design tab, expand work and select the appropriate design unit (behavioral). Click OK. 4

5. When the design has been loaded you should see the VSIM>prompt. Now go to File Load, and open your *.do file. Behavioral Simulation is now complete. 3.3 Post-route Simulation To run post-route simulation we first need to implement our design. Before we do this we need to change the implementation properties. In the View pane, select the Implementation radio button, then select your top level source file. In the Processes panel, right-click on Implement Design and select Process Properties. Under Place & Route Properties, check Generate Post- Place & Route Simulation Model. Click OK to save these settings. Now to implement the design, in the Processes panel double-click on Implement Design. Once Implementation is done the files necessary for doing post-route simulation should be created. 1. Launch ModelSim from your operating system not from ISE. If you set up the modelsim.ini environment variable, after ModelSim loads you should see a list of the compiled libraries. 2. Go to File Change Directory. Browse to and select your Project folder. Click OK. If you haven t set the modelsim.ini environment variable, ModelSim reads the.ini file in your project folder and loads a list of the compiled libraries. 3. Go to Compile Compile. Browse to \<project folder>\netgen\par. Here you should see the timesim version of your design file. Select this file and click Compile. If the Transcript window shows that the compilation is done, click Done. 4. Go to Simulate Start Simulation. In the Design tab, expand work and select the appropriate design unit (structural). In the SDF tab, click Add and browse to \<project - folder>\netgen\par. You should see a timesim.sdf version of your design file. Open this file. Click OK and OK again to start the simulation. 5. When the design has been loaded you should see the VSIM>prompt. Now go to File Load, and open your *.do file. Post-Place & Route Simulation is now complete. 5