rpi-jtag-spartan3
所属分类:VHDL/FPGA/Verilog
开发工具:C++
文件大小:8KB
下载次数:0
上传日期:2020-10-25 15:50:54
上 传 者:
sh-1993
说明: 用于Spartan3 FPGA的Raspberry PI JTAG编程器。
(Raspberry PI JTAG programmer for Spartan3 FPGA.)
文件列表:
LICENSE (1080, 2020-10-25)
build.sh (142, 2020-10-25)
fpga_program.cpp (2922, 2020-10-25)
idcode.cpp (1324, 2020-10-25)
idcode_build.sh (124, 2020-10-25)
jtag_port.cpp (1001, 2020-10-25)
jtag_port.h (501, 2020-10-25)
tap_controller.cpp (4127, 2020-10-25)
tap_controller.h (2404, 2020-10-25)
xilinx_devices.h (964, 2020-10-25)
# Raspberry PI JTAG for Spartan3
This project was created to be able to download the bitstream to a FPGA board with 2 chips in the JTAG chain (XFC01S PROM and XC3S200 FPGA). Like this one:
![FPGA](https://www.picclickimg.com/d/l400/pict/202418248319_/XILINX-SPARTAN-3-XC3S200-FPGA-module-FPGA-kit-Development.jpg).
In this project I provide 2 utilites, the firstone **idcode** is to test reading the IDCODES in a JTAG chain, and the 2nd one **fpga_program** to load the bitstream into the fpga. Is super simple to extend the functionalities. I also implemented the JTAG TAP Controller to improve the control of the JTAG Chain.
Raspberry PI JTAG programmer for Spartan3 FPGA. This project is written from scratch in C/C++ mix for a RPI v1. So **Choose proper JTAG pins wirings for your RPI version in main cpp file. Pin numbers use wiringPI numeration**
## Check Video
# Programming the FPGA
You can easily program your FPGA following the steps described below. If you have a different fpga or more devices in the chain, you can just add the required registers in the **xilinx_devices.h** file or a new one if you want. Remember to always chech the manufacturer guides to get the Registers right.
## Prerequisites
* wiringPI library
## Usage
1. [Install wiringPI library](http://wiringpi.com/download-and-install/)
2. Clone repository `git clone https://github.com/yuyomagico/rpi-jtag-spartan3`
3. **Check your RPI Version and check pin numbers for JTAG port in "idcode.cpp"**
4. `./idcode_build.sh` to build the **idcode** and `./build.sh` to build **fpga_program**.
5. Outputs will be written into `bin/`
6. Usage: `./bin/idcode` and `./bin/fpga_program
`
近期下载者:
相关文件:
收藏者: