Commit 833afdf1 authored by Pascal Bos's avatar Pascal Bos

Added a very basic readme

parent 724cffc8
Pipeline #2242 failed with stage
in 2 minutes and 19 seconds
SPEC7
-------------------
This Readme is a work in progress it currently containts the following topics:
- Building a bitfile
- Building a tandem loaded BOOT.bin for flash memory.
Building a bitfile
--------------
1. First make sure you have the Vivado executable in your $PATH. This can be easily done by sourcing the settings64.sh file in your Vivado installation directory.
/opt/Xilinx/Vivado/2019.2/settings64.sh
2. After that make sure your submodules are up to date
git submodule init;git submodule update
3. After that navigate to the "syn" directory of the project you wish to build, currently the repo supports three (blink, TandemPcie and WhiteRabbit).
cd spec7/hdl/syn/spec7_ref_design/
or
cd spec7/hdl/syn/spec7_tandem_boot/
or
cd spec7/hdl/syn/spec7_blink/
4. Now source the build script by running:
vivado -mode tcl -source ../../../sw/scripts/viv_do_all.tcl
5. Now go get a cup of coffee. If al went well there is a bitfile in the syn directory
If you wish to build the other projects simply source the viv_do_all.tcl script from a different directory.
Building a tandem loaded BOOT.bin for flash memory.
--------------
In order to build a PCIe design that is capable of booting from flash in a reasonable time. You'll need 3 files
- A spec7_tandem_boot bitfile see "Building a bitfile". In this tutorial its called "spec7_tandem_boot_top.bit".
- The .xsa file of the spec7_tandem_boot design. In this tutorial its called "spec7_tandem_boot_top.xsa".
- The bitfile of the design you wish to upload. In this tutorial its called "spec7_ref_top.bit".
Note that the your design must have the same Pcie BAR layout as the spec7_tandem_boot design.
After checking that we can start:
1. First make sure you have the Vitis executable in your $PATH. This can be easily done by sourcing the settings64.sh file in your vitis installation directory.
/opt/Xilinx/Vitis/2019.2/settings64.sh
Note it says VITIS not VIVADO.
2. Now navigate to the sw/boot directory
cd spec7/sw/boot
3. Now run the Build_boot script. It will automaticly detects .bit and .xsa files in the /syn directory.
./Build_boot.sh
4. In the newly created output dir there now is a BOOT.bin. This file along with "zynq_fsbl.elf" can now be flashed in QSPI memory (mt25ql256-qspi-x8-dual_parallel)
I should mabey make a script for that aswell.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment