by S. M. Loo, Arlen Planting Department of Electrical and Computer Engineering Boise State University First Released: Spring 2005 with ISE 6.3i Updated: Fall 2006 with ISE 8.1i Updated: Spring 2009 with ISE 10.1 EE230L Introduction to Xilinx ISE 1
Introduction This tutorial will introduce the Xilinx ISE Computer-Aided Design (CAD) Software It will acquaint you with the BSU Xilinx TTL symbols (created from ISE native symbols) used when constructing digital circuits on a proto board The goal of this tutorial is to provide you with the skills to use ISE to facilitate learning digital designs This software tool is capable of simulating any digital design that you will attempt in this class and, more importantly, in a real-world environment You will enter a logic circuit that implements the equal function! This tutorial has been prepared by your friendly neighborhood lab assistant and course instructor EE230L Introduction to Xilinx ISE 2
Start Project Navigator Find the Xilinx ISE 8.1i icon on desktop to start Xilinx Project Navigator and double-click the icon This is the Xilinx ISE window ISE always opens the most recent project! If this subwindow contains data, then use FILE Close Project. Note Project Navigator in Windows task bar. EE230L Introduction to Xilinx ISE 3
Create New Project To create a new project, File New Project EE230L Introduction to Xilinx ISE 4
Name Schematic Give a name to the project Make sure that the project location is where you want it. The lab computer has a D drive, and can be used for your designs. Top-Level Module Type is Schematic When all the fields have been filled, click Next. EE230L Introduction to Xilinx ISE 5
Target Device Specification This is important, and will be used later for FPGA designs. Make sure other values match what is shown This device specification is required for targeting the FPGA prototyping we have in the lab. This will be important when we download to the FPGA. EE230L Introduction to Xilinx ISE 6
Skip these Dialogs EE230L Introduction to Xilinx ISE 7
Lab1-Equals Project Note the project name and target FPGA ID EE230L Introduction to Xilinx ISE 8
Add Schematic Source to Project Now we need to add a schematic source to the project EE230L Introduction to Xilinx ISE 9
Name Schematic Select Schematic Name Schematic EE230L Introduction to Xilinx ISE 10
New Schematic Window A blank schematic sheet has been created and added to the project. Double click on You will get this schematic capture window. Re-size the window to optimize the working area. Try to close the middle window (the Select Options window) EE230L Introduction to Xilinx ISE 11
Change Page Size Since this is a small design, we will change the page size to fit an 11 x8.5 sheet of paper. EE230L Introduction to Xilinx ISE 12
Set Page Size to 11 x8.5 You can always increase the page size by revisiting these steps. EE230L Introduction to Xilinx ISE 13
Add Symbols Now we want to add the component symbols to the schematic Select the Add Symbol button from the toolbar. Hitting the Esc key will cancel the Add Symbol mode. EE230L Introduction to Xilinx ISE 14
Add Title to Schematic Diagram Symbol categories Symbols within each category EE230L Introduction to Xilinx ISE 15
Add Inv Symbols Select Logic Category and find Inv (abbreviation for inverter) Place two Inv on the sheet, by clicking at the desired locations on the sheet Symbols can be moved by clicking once at the symbol. This turns the symbol to red, then it can be moved EE230L Introduction to Xilinx ISE 16
Add 2-input AND Symbols Select the AND2 symbol and click on drawing where you wish to add symbol Add two AND2 symbols EE230L Introduction to Xilinx ISE 17
Add 2-input OR Symbol Select the OR2 symbol and click on drawing where you wish to add symbol Add one OR2 symbol Organize the symbols as you see in this figure EE230L Introduction to Xilinx ISE 18
Label Symbols Right Click on symbol and select Object Properties This step is to label the symbols to something that could be more meaningful to you by changing to the Value of InstName This step is optional EE230L Introduction to Xilinx ISE 19
Set Symbol s Properties Change InstName Value as you desire EE230L Introduction to Xilinx ISE 20
Add Wires Now add wires to connect the symbols Close the Source window by (pulldown menu) View Source Open the Processes window by (pull-down menu) View Processes Select the Add Wire button from the toolbar On the options tab, select the Use the Manual method Hitting the Esc key will cancel the Add Wire mode and lead to this window that is very useful for selecting a wire EE230L Introduction to Xilinx ISE 21
Add Wire Step 1 Connect these two segments as indicated by the green arrows EE230L Introduction to Xilinx ISE 22
Add Wire Step 2 Hover over as indicated by the red arrow until the cursor image changes to connection point indicator Connection point indicator EE230L Introduction to Xilinx ISE 23
Add Wire Step 3 Left click (hold the left button) and drag wire as shown in figure Once connection indicator appears, release mouse button EE230L Introduction to Xilinx ISE 24
Schematic with Wires Repeat until you have connected all of the pins For pins that are connected to external devices such as switches and LED s, just add wire and leave unconnected on that end Does your schematic look like the one above? EE230L Introduction to Xilinx ISE 25
Add I/O Markers (or I/O Pads) Select the Add I/O Marker button from the toolbar EE230L Introduction to Xilinx ISE 26
Add Input/Output Markers Select Add an input marker Add input markers Select Add an output marker Add output marker EE230L Introduction to Xilinx ISE 27
Label I/O Markers Right Click I/O Markers and select Rename Port Input names should be SW1 and SW2 Output name should be LED1 EE230L Introduction to Xilinx ISE 28
Save and Check Schematic Save the schematic diagram Activate the schematic check routine (pull-down menu), Tools Check Schematic Fix any error you might have and run the check routine Observe the bottom window for these messages Start DRC No error or warning is detected You can print your schematic diagram (portrait or landscape) or even preview the printout before you print Save the diagram before you exit the schematic capture tool (by clicking on the on the top right hand corner of the schematic capture window) EE230L Introduction to Xilinx ISE 29
Back to Project Design Summary EE230L Introduction to Xilinx ISE 30
Add Test Bench Source The circuit entry is completed, but how do we know whether the design works? We will test our design using a test bench! EE230L Introduction to Xilinx ISE 31
Name Test Bench Select Test Bench Waveform Name Test Bench EE230L Introduction to Xilinx ISE 32
Associate Test Bench With Schematic Select the schematic that is to be used by this Test Bench EE230L Introduction to Xilinx ISE 33
Test Bench Creation EE230L Introduction to Xilinx ISE 34
EE230L Introduction to Xilinx ISE 35
Accept Default Timing Values EE230L Introduction to Xilinx ISE 36
New Test Bench Window The waveform window is part of ISE EE230L Introduction to Xilinx ISE 37
Define Input Values Note the vertical blue line in column 1000 - this is the end of test marker. It was set in the initial slide. You can reset this number by positioning the pointer on top of the blue line close to the time ruler and right clicking. Why are the values for SW1 and SW2 defined this way? You need to understand. EE230L Introduction to Xilinx ISE 38
Save Test Bench Definition The Test Bench is not added to the project until you have saved this file EE230L Introduction to Xilinx ISE 39
Test Bench & Project Note that the Test Bench TB_Equals has been added to the project Select the Behavioral Simulation from the pulldown menu as shown and close the test bench waveform window EE230L Introduction to Xilinx ISE 40
Activate Simulation Make sure that TB_Equals.tbw is selected Note the entries in figure We want to use Simulate Behavioral Model This will create a new set of windows that are separate from ISE EE230L Introduction to Xilinx ISE 41
Wave Default Multiple windows will appear on Xilinx ISE Simulation EE230L Introduction to Xilinx ISE 42
Zoom to View Wave You can move the blue cursor to observe the values at different times. EE230L Introduction to Xilinx ISE 43
Close Windows Close Xilinx ISE 10.1 EE230L Introduction to Xilinx ISE 44
Now wasn t that simple? EE230L Introduction to Xilinx ISE 45
And don t you forget it! EE230L Introduction to Xilinx ISE 46