Xilinx Schematic Entry Tutorial r2
Xilinx Schematic Entry Tutorial r2
Xilinx Schematic Entry Tutorial r2
9/1/2008
Overview
What is circuit simulation and why is it important?
Schematics
HDL
Types of Simulation
Behavioral Simulation
Timing Simulation (post place & route)
9/1/2008
Outline
Introduction to Xilinx ISE Project Navigator
Introduction to Xilinx ISE Schematics Entry Tool
Simulation Using Verilog Test Fixture in ModelSim XE
Creating Hierarchical Designs
Creating TOP Design to interface to Nexys2 board,
implementing the design using ISE,
and downloading the bit file using Adept
9/1/2008
9/1/2008
9/1/2008
Click Next
This creates a new sub-folder (adder4bit) where all your design
files related to this project (plus many auxiliary files that Xilinx
creates) are stored. The main project file necessary to open the
project again at a later point of time is also stored here with the
name adder4bit.ise.
9/1/2008
Schematic/HDL
9/1/2008
In Device Properties
dialog box select the
following values (see
the previous slide)
Click Next
Click Next for the
Create New Source
dialogue box
Click Next for the Add
Existing Source
dialogue box
9/1/2008
Product Category
All
Family
Spartan3E
Device
XC3S500E
Package
FG320
Speed
-4
Schematic
Synthesis Tool
XST (VHDL/Verilog)
Simulator
ModelsimXE Verilog
Preferred Language
Verilog
Click Finish
9/1/2008
2. Sources Window
3
2
6
4. Processes Window
5. Transcript window:
10
Click Next
9/1/2008
11
Enhanced Design
Summary appears
Switch to the
adder1bit.sch tab
to bring the a blank
schematic sheet to
the foreground
9/1/2008
12
2. Symbols Tab
Categories
Symbols
Symbol Name Filter
Orientation
Symbol Info (links to Xilinx Libraries
Guide to show components data sheet)
3. Options Tab
Size
9/1/2008
13
Outline
Introduction to Xilinx ISE Project Navigator
Introduction to Xilinx ISE Schematics Entry Tool
Simulation Using Verilog Test Fixture in ModelSim XE
Creating Hierarchical Designs
Creating TOP Design to interface to Nexys2 board,
implementing the design using ISE,
and downloading the bit file using Adept
9/1/2008
14
9/1/2008
15
16
To connect a net to a pin, bring the mouse pointer close to the pin
The four square boxes next to the pin
indicate that the
added net will snap to this pin
Use press-drag-release to draw a net
To create branching, place the pointers centre on the net and pressdrag-release
When connecting two nets, a solid blue dot at
the intersection indicates that nets are connected
= connected;
= not connected
9/1/2008
17
9/1/2008
18
9/1/2008
Useful in naming a
series of wires with
A(0), A(1), A(2), ..
19
Note that deleting the label (text) from the schematics DOES NOT
delete the net name. Delete net name by selecting the net and going
to Object Properties
9/1/2008
20
Identify the net as having an input, output or bidirectional signal; that is,
establish net polarity (direction of signal flow)
Show that the net is externally accessible.
All primary inputs and outputs must be marked with I/O markers
To add an I/O marker to a net:
9/1/2008
21
22
Project Cleanup
Source files
Schematic files
Symbol files
Testbenches
Verilog files
UCF file(s)
Implementation files
Report files
.bit file
It is a good idea to perform project cleanup periodically, especially
when things are not working the way you expect them to work!
9/1/2008
23
9/1/2008
24
If you select, "Rename the Branch's Net" you are asking all wires in the
entire (multi-sheet) schematic, which were previously named as S to
be renamed as S1.
If that is not your intent, and if you just wanted to correct that single
piece (called Branch), then you should select, "Rename the Branch".
9/1/2008
25
9/1/2008
26
Outline
Introduction to Xilinx ISE Project Navigator
Introduction to Xilinx ISE Schematics Entry Tool
Simulation Using Verilog Test Fixture in ModelSim XE
Creating Hierarchical Designs
Creating TOP Design to interface to Nexys2 board,
implementing the design using ISE,
and downloading the bit file using Adept
9/1/2008
27
Simulating adder1bit
We will simulate our schematic design using a Verilog Test Fixture
and the Modelsim Simulator
28
Module name
Input/Output declarations
Instantiating UUT
9/1/2008
Inputs to
DUT
Outputs
from DUT
Instantiation
of DUT
Stimulus
of DUT
delet
keepe
29
9/1/2008
30
31
Modelsim Properties
Expand Modelsim Simulator in the Processes window
Right click
and select Properties
.do files contain detailed
commands for Modelsim. We
allow Xilinx to automatically
create a .do file for this design
Change Simulation Run
Time from 1000ns to 100ns
Change Simulation
Resolution from 1ps to 1ns
Click Apply and then OK
9/1/2008
32
4
2
9/1/2008
33
Modelsim Simulator
1. Toolbar
2. Instances window
You can see hierarchy of the design.
3. Objects window
You can see signals associated with the selected item in the
hierarchy. You can add selected to signals to wave window.
4. Waveform window
You can change radix of signals, make time
measurements, etc.
5. Transcript window
You can type in commands such as run 100ns
9/1/2008
34
Waveform
9/1/2008
35
Carefully inspect the waveform. It is best to dock out the waveform window.
GSR stands for Global Set Reset control. Ignore for the time.
With the help of your
TA, try changing radix,
adding cursers, making
time measurements,
etc.
Find what is the difference between
radix Decimal and radix Unsigned.
9/1/2008
Input
{A,B,Ci}
Expected
{Co,S}
000
00
001
01
010
01
011
10
100
01
101
10
110
10
111
11
Observed
{Co, S}
36
Listing window
9/1/2008
37
Outline
Introduction to Xilinx ISE Project Navigator
Introduction to Xilinx ISE Schematics Entry Tool
Simulation Using Verilog Test Fixture in ModelSim XE
Creating Hierarchical Designs
Creating TOP Design to interface to Nexys2 board,
implementing the design using ISE,
and downloading the bit file using Adept
9/1/2008
38
Creating a Symbol
To create hierarchical design, basic building blocks have to be
encapsulated into user-defined symbols that can be instantiated at
the next higher (hierarchical) level
To create a symbol for adder1bit:
9/1/2008
39
Creating a Symbol
On the Symbol Wizard Pin Page, check the order in which pins
appear, the polarity of the pins and the side of symbol where the pin will
appear.
Click Next
9/1/2008
40
Editing a Symbol
adder1bit.sym appears in the Schematic Editor workspace
41
Creating adder4bit
Create a new schematics file adder4bit using the Create New
Source in the Processes window.
A new category of symbols appears in the Symbols window
<C:/xilinx_projects/adder4bit>, indicating the project
directory. All user-defined symbols are stored in their respective
project directories.
9/1/2008
42
Creating adder4bit
Connect adder1bit symbols to create
a correct 4-bit adder
Connect Ci of the first adder1bit to
the gnd symbol. Use the
button
Name the A and B inputs of
each adder1bit as A(0) through
A(3) and B(0)through B(3),
respectively
43
9/1/2008
44
Select Orientation
9/1/2008
45
46
9/1/2008
47
9/1/2008
48
Outline
Introduction to Xilinx ISE Project Navigator
Introduction to Xilinx ISE Schematics Entry Tool
Simulation Using Verilog Test Fixture in ModelSim XE
Creating Hierarchical Designs
Creating TOP Design to interface to Nexys2 board,
implementing the design using ISE,
and downloading the bit file using Adept
Very briefly!
9/1/2008
49
TOP design
top_adder4bit.sch
50
top_adder4bit.sch
9/1/2008
51
Memories
LEDs
Switches
9/1/2008
52
9/1/2008
53
54
References
9/1/2008
55
Congratulations on your
Finish!
This is
me!
and, that
is you
9/1/2008
56