-
Notifications
You must be signed in to change notification settings - Fork 1
Flashing
Håvard O. Nordstrand edited this page Nov 25, 2019
·
12 revisions
Setup of Vivado etc. so that our makefile can build and flash the whole FPGA project. Tested with Kubuntu and Manjaro.
- Install Vivado:
- Register for a Xilinx account.
- Go to Xilinx downloads and download Vivado Design Suite net installer.
- Run the installer file as root (sudo).
- Product: Select "Vivado" and then "Vivado HL WebPACK".
- Components: Select Vivado and support for "7 Series" devices (if you're using an Artix 7).
- Install to
/opt/Xilinx.
- Install the cable drivers:
- Go to
/opt/Xilinx/Vivado/<version>/data/xicom/cable_drivers/lin64/install_script/install_drivers. - Run
install_driversas root. (Maybe run one of the other scripts too, they seem to do the same thing.)
- Go to
- Install verilator.
- Install yosys.
- Install sbt (package or manually).
- Install firrtl (package or manually) (requires verilator, yosys and sbt).
- If manually installed, add
/opt/firrtl/utils/bin(or wherever you installed it) to PATH.
- If manually installed, add
- Install
libtinfo5(Debian) orncurses5-compat-libs(Arch AUR).
- Build it: Run
makeinside the repo. - Connect the Xilinx flasher. The light should glow orange when not connected to the board and green when connected to the board. It may not light up until after you've tried to flash it once.
- Run
make uploadormake flash.-
uploadwrites to the FPGA, but the program gets deleted when the board loses power -
flashwrites to the FLASH chip, making it the default program when the FPGA starts. This takes some time. - If it complains about an incompatible bitstream, you're probably trying to flash it with the bitfile for the dev kit, or vice versa.
- If it can't find the device, try again. Try another USB port. Then try turning the board off and on again.
-