ECE 272 Xilinx Tutorial
ECE 272 Xilinx Tutorial
Workshop Goals
Learn how to use Xilinx to:
Draw a schematic
Create a symbol Generate a testbench Simulate your circuit
Getting Started
Open Xilinx ISE (11)
Device Properties
Schematic Creation
We will be drawing this circuit:
Final Schematic
Try writing up the truth table for this circuit. It will be useful when we simulate it later!
Symbol Creation
Click on Tools Symbol Wizard Under Pin Name Source, select Using Schematic and make sure it is
referencing the proper schematic (Schematic1
Click Next through the remaining boxes (all of the default values are fine). If your symbol looks like the one below, click Finish.
Symbol Creation
To make sure our symbol can be accessed in future
designs, go to Project New Source
Open a new schematic named Schematic2 Go to Categories in the symbols window and search for your
project path (For example, mine was <C:/Workshop/Project1>)
Select the Schematic1 symbol and click on AddSymbol. Does it appear correctly? If so, you are ready to incorporate
your logic circuit into a larger design!
Circuit Testing
Before using any circuit in a larger design, it is
important to make sure that it works correctly.
Generating Testbench
Click on Project New Source
Verilog
Verilog is an HDL (Hardware Description Language).
Testbench Changes
Remove the line ifdef auto_init
Simulating Testbench
Go to the Design window on the left side and change the
selection on the Sources for drop-down menu to Behavioral Simulation.
Be sure you have your testbench selected as your process. Right click on Simulate Behavioral Model and select Process
Properties.
Change the simulation time to 100ns, then press OK Double click on Simulate Behavioral Model
Simulation Results
ISim should open up and display your simulation
results.
Does your waveform match mine? Do the results of the simulation match what your logic
table says should happen?
Questions!?