LilyEvansHogwarts / fpga-drive-aximm-pcie

Example design for FPGA Drive using the AXI Memory Mapped to PCI Express Bridge IP

Home Page:http://fpgadrive.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fpga-drive-aximm-pcie

Example design for FPGA Drive using the AXI Memory Mapped to PCI Express Bridge IP.

Supported carrier boards

Description

This project demonstrates using the AXI Memory Mapped to PCIe Bridge IP to interface an FPGA with a PCIe end-point device. The bridge IP is configured as a PCIe Root Port, using 1 to 4 lanes, Gen2 depending on target hardware.

The bare metal software application reports on the status of the PCIe link and performs enumeration of the detected PCIe end-points.

Requirements

In order to test this design on hardware, you will need the following:

  • Vivado 2016.4
  • FPGA Drive - for connecting a PCIe SSD
  • M.2 PCIe Solid State Drive
  • One of the supported carriers listed above

Build instructions

To use the sources in this repository, please follow these steps:

  1. Download the repo as a zip file and extract the files to a directory on your hard drive --OR-- Git users: clone the repo to your hard drive
  2. Open Windows Explorer, browse to the repo files on your hard drive.
  3. In the Vivado directory, you will find multiple batch files (*.bat). Double click on the batch file that is appropriate to your hardware, for example, double-click build-zedboard.bat if you are using the ZedBoard. This will generate a Vivado project for your hardware platform.
  4. Run Vivado and open the project that was just created.
  5. Click Generate bitstream.
  6. When the bitstream is successfully generated, select File->Export->Export Hardware. In the window that opens, tick "Include bitstream" and "Local to project".
  7. Return to Windows Explorer and browse to the SDK directory in the repo.
  8. Double click the build-sdk.bat batch file. The batch file will run the build-sdk.tcl script and build the SDK workspace containing the hardware design and the software application.
  9. Run Xilinx SDK (DO NOT use the Launch SDK option from Vivado) and select the workspace to be the SDK directory of the repo.
  10. Select Project->Build automatically.
  11. Connect and power up the hardware.
  12. Open a Putty terminal to view the UART output.
  13. In the SDK, select Xilinx Tools->Program FPGA.
  14. Right-click on the application and select Run As->Launch on Hardware (System Debugger)

Board Specific Notes

VC709 and KCU105

Note that there is no standalone SDK application for these eval boards in this repository. The reason is that those designs are based on the AXI Bridge for PCI Express Gen3 Subsystem, for which Xilinx does not presently provide a driver. If you use these designs from this repository, you must write your own drivers for standalone and Linux use.

PicoZed

Installation of PicoZed board definition files

To use this project on the PicoZed, you must first install the board definition files for the PicoZed into your Vivado installation.

The following folders contain the board definition files and can be found in this project repository at this location:

https://github.com/fpgadeveloper/fpga-drive-aximm-pcie/tree/master/Vivado/boards/board_files

  • picozed_7015_fmc2
  • picozed_7030_fmc2

Copy those folders and their contents into the C:\Xilinx\Vivado\2016.4\data\boards\board_files folder (this may be different on your machine, depending on your Vivado installation directory).

PicoZed FMC Carrier Card V2

On this carrier, the GBTCLK0 of the LPC FMC connector is routed to a clock synthesizer/MUX, rather than being directly connected to the Zynq. In order to use the FPGA Drive FMC on the PicoZed FMC Carrier Card V2, you will need to reprogram the configuration EEPROM for the clock synthesizer. See the Hardware User Guide for the PicoZed FMC Carrier Card V2 more information about this.

Troubleshooting

Check the following if the project fails to build or generate a bitstream:

1. Are you using the correct version of Vivado for this version of the repository?

Check the version specified in the Requirements section of this readme file. Note that this project is regularly maintained to the latest version of Vivado and you may have to refer to an earlier commit of this repo if you are using an older version of Vivado.

2. Did you follow the Build instructions in this readme file?

All the projects in the repo are built, synthesised and implemented to a bitstream before being committed, so if you follow the instructions, there should not be any build issues.

3. Did you copy/clone the repo into a short directory structure?

Vivado doesn't cope well with long directory structures, so copy/clone the repo into a short directory structure such as C:\projects\. When working in long directory structures, you can get errors relating to missing files, particularly files that are normally generated by Vivado (FIFOs, etc).

License

Feel free to modify the code for your specific application.

Fork and share

If you port this project to another hardware platform, please send me the code or push it onto GitHub and send me the link so I can post it on my website. The more people that benefit, the better.

About us

This project was developed by Opsero Inc., a tight-knit team of FPGA experts delivering FPGA products and design services to start-ups and tech companies. Follow our blog, FPGA Developer, for news, tutorials and updates on the awesome projects we work on.

About

Example design for FPGA Drive using the AXI Memory Mapped to PCI Express Bridge IP

http://fpgadrive.com


Languages

Language:Tcl 99.6%Language:Batchfile 0.4%