Terasic PCI-X Development Board
CONTENTS
Chapter 1 PCI Package ...............................................................................................1
1.1
1.2
1.3
Package contents............................................................................................1
Getting Help...................................................................................................1
Revision History ............................................................................................2
Chapter 2 Introduction................................................................................................3
2.1
2.2
2.3
2.4
General Description .......................................................................................3
Layout and Components ................................................................................3
Block Diagram of the PCI Board...................................................................5
Power-up the PCI Board ................................................................................6
Chapter 3 Components & Interfaces .........................................................................7
3.1
Clocking Circuitry .........................................................................................7
3.1.1 Clock & Programmable PLL ....................................................................8
3.2
Switch ............................................................................................................8
3.3
HSTC Expansion Connectors ........................................................................9
3.4
Off-Chip Memory ........................................................................................17
3.4.1 DDR2 SO-DIMM Module......................................................................17
Chapter 4 Setup PCI Board ......................................................................................21
4.1
4.2
4.3
4.4
4.5
System Requirement ....................................................................................21
Hardware Installation: PCI Board................................................................21
Software Installation: PCI Kernel Driver ....................................................22
Install License File.......................................................................................23
Diagnoses.....................................................................................................23
Chapter 5 PCI System Builder .................................................................................24
5.1
5.2
5.3
5.4
5.5
Introduction..................................................................................................24
Quartus Top Design .....................................................................................25
Built-in Logic...............................................................................................26
Save Configuration ......................................................................................27
Generated Code............................................................................................27
Chapter 6 Host Software Library and Utility .........................................................30
6.1
6.2
6.3
6.4
PCI Software Stack ......................................................................................30
Data Structure in TERASIC_API.h .............................................................31
API List of TERASIC_API.DLL.................................................................31
API Description of TERASIC_DLL............................................................32
ii
6.5
PCI Control Panel Utility.............................................................................38
Chapter 7 Reference Design......................................................................................41
7.1
7.2
7.3
Remote Control LED ...................................................................................41
Button IRQ...................................................................................................46
DDR2 Access ...............................................................................................50
Chapter 8 Multi-Port Memory Controller ..............................................................55
8.1
Principle of Read/Write Port........................................................................55
8.1.1
Write Port .................................................................................................55
8.1.2
Read Port..................................................................................................56
8.2
Port Interface................................................................................................57
8.2.1
Simple Write Port.....................................................................................58
8.2.2
Simple Read Port .....................................................................................59
8.2.3
Enhanced port ..........................................................................................60
Chapter 9 PCI Local Interface .................................................................................62
9.1
9.2
PCI Local Write/Read Interface...................................................................62
PCI Interrupt ................................................................................................63
Appendix
A
Programming the Serial Configuration device ..................................66
iii
Chapter 1
PCI Package
The PCI package contains all components needed to use the PCI board in conjunction with a
computer that runs the Microsoft Windows software.
1.1 Package contents
The PCI Package includes:
Cyclone III PCI development board
Terasic USB Blaster
USB Cable for FPGA programming and control
CD-ROM containing the User Manual, the Control Panel utility, the PCI System
Builder and reference designs.
THDB_HLB
THDB_HFF
Screw and Copper Pillar Package
Power Cable
1.2 Getting Help
Here are the addresses where you can get help if you encounter problems:
•
Altera Corporation
101 Innovation Drive
San Jose, California, 95134 USA
Email:
mysupport@altera.com
Terasic Technologies
No. 356, Sec. 1, Fusing E. Rd.
Jhubei City, HsinChu County, Taiwan, 302
Email:
support@terasic.com
Web:
www.terasic.com
•
1