| 1 |
2 |
jcarr |
This logic is for the Enterpoint Spartan-3 based PCI fpga card.
|
| 2 |
|
|
|
| 3 |
|
|
The code needs to be built with the Xilinx tools. You can
|
| 4 |
|
|
download the Xilinx tools for free from xilinx.com. It also
|
| 5 |
|
|
generates a bit of the VHDL by perl, so you need that installed
|
| 6 |
|
|
also.
|
| 7 |
|
|
|
| 8 |
|
|
Steps to building & using this code:
|
| 9 |
|
|
|
| 10 |
|
|
1) Install Linux (it should include perl)
|
| 11 |
|
|
2) Download and install the Xilinx WebPack for Linux
|
| 12 |
|
|
* It's about 1GB and Xilinx provides it for free
|
| 13 |
|
|
* The Xilinx tools include a settings.sh file
|
| 14 |
|
|
that you need to run to add the tools to your path
|
| 15 |
|
|
3) Run make to synthisize the image
|
| 16 |
|
|
4) program your card over jtag with XC3prog
|
| 17 |
|
|
xc3sprog pci_7seg.bit
|
| 18 |
|
|
|
| 19 |
7 |
jcarr |
|
| 20 |
|
|
This port of the OpenCores PCI core was originally done by Manuel Bessler.
|
| 21 |
|
|
http://projects.varxec.net/raggedstone1
|
| 22 |
|
|
|
| 23 |
8 |
jcarr |
If you get this core installed correctly on the Raggedstone1 card, you
|
| 24 |
|
|
can dump out the PCI config space and it should look something like this:
|
| 25 |
|
|
|
| 26 |
|
|
root@sid:~# hexdump /proc/bus/pci/05/02.0
|
| 27 |
|
|
0000000 10ee 0100 0102 0200 0037 0280 0000 0000
|
| 28 |
|
|
0000010 0000 f800 0000 0000 0000 0000 0000 0000
|
| 29 |
|
|
0000020 0000 0000 0000 0000 0000 0000 0480 1558
|
| 30 |
|
|
0000030 0000 0000 0000 0000 0000 0000 0104 0000
|
| 31 |
|
|
0000040 0000 0000 5671 1234 5672 1234 5673 1234
|
| 32 |
|
|
0000050 5674 1234 5675 1234 5676 1234 5677 1234
|
| 33 |
|
|
0000060 5678 1234 5679 1234 5680 1234 5681 1234
|
| 34 |
|
|
0000070 5682 1234 5683 1234 5684 1234 5685 1234
|
| 35 |
|
|
0000080 5686 1234 5687 1234 5688 1234 5689 1234
|
| 36 |
|
|
0000090 5690 1234 5691 1234 5692 1234 5693 1234
|
| 37 |
|
|
00000a0 5694 1234 5695 1234 5696 1234 5697 1234
|
| 38 |
|
|
00000b0 5698 1234 5699 1234 5700 1234 5701 1234
|
| 39 |
|
|
00000c0 5702 1234 5703 1234 5704 1234 5705 1234
|
| 40 |
|
|
00000d0 5706 1234 5707 1234 5708 1234 5709 1234
|
| 41 |
|
|
00000e0 5710 1234 5711 1234 5712 1234 0000 0000
|
| 42 |
|
|
00000f0 0000 0000 0000 0000 0000 0000 0000 0000
|
| 43 |
|
|
0000100
|
| 44 |
|
|
|
| 45 |
2 |
jcarr |
-- Jeff Carr
|
| 46 |
8 |
jcarr |
|