Build

Repository

The DP IP-cores and reference design can be downloaded from the

Github repository

The repository file structure is listed below:

├─ gateware │ ├─ src - Source folder │ │ ├─ lib - Library │ │ ├─ app - Application │ │ ├─ risc-v - RISC-V │ │ ├─ misc - Miscellaneous │ │ ├─ pm - Policy maker │ │ ├─ rx - DP RX │ │ ├─ tx - DP TX │ │ ├─ vtb - Video toolbox │ │ └─ scaler - Scaler │ ├─ ref - Reference folder │ │ ├─ amd - AMD │ │ ├─ zcu102 - ZCU102 evaluation kit │ │ │ └─ tb-a7-20bt.img - Inrevium TB-A7-20BT-IMG evaluation kit │ │ ├─ intel - Intel │ │ │ ├─ de-dev-10-sx220 - Cyclone 10 GX development board │ │ │ │ └─ dk-dev-10sx155 - Arria 10 GX development board │ │ │ └─ isc - Lattice │ │ │ └─ ifgap4_evn - CertusPro-NX evaluation board │ │ └─ syn - Synthesis folder │ │ ├─ amd - AMD │ │ ├─ intel - Intel │ │ └─ isc - Lattice └─ software ├─ src - Source folder │ ├─ app - Application │ ├─ lib - Library │ └─ vtb - Video toolbox └─ build - Build folder └─ bin - Binaries

Reference design

Follow the steps below to build the reference design for both gateware and software components.

Before building the reference design application, you need to install the RISC-V GNU Compiler Toolchain.

You can download the toolchain from the GitHub repository

Here

Building the Toolchain

  1. Clone the GitHub repository.
  2. Compile the toolchain, which may take some time:
./configure --prefix=/usr/local --with-arch=rv32i --with-abi=ilp32 --without-system-zlib
make -j$(nproc)

This will set up the toolchain in the /risc/ directory, configured for the RV32I architecture and the ILP32 ABI.

In the cmake command-line the argument GCC points to the Risc-V toolchain, eg: -DGCC=/riscv/bin/riscv32-unknown-elf-

AMD ZCU102 reference design

  1. Change the directory to the folder gateware/syn/amd
  2. Run the TCL build script: vivado -mode batch -source .././ref/amd/zcu102/build_proj.tcl
  3. Change the directory to the folder software/build
  4. Run the cmake command: cmake ..DVENDOR=AMD -DBOARD=AMD_ZCU102 -DGCC=
  5. Then run make to build the binaries

AMD TB-A7-200T-IMG reference design

  1. Change the directory to the folder gateware/syn/amd
  2. Run the TCL build script: vivado -mode batch -source .././ref/amd/tb-a7-200t-img/build_proj.tcl
  3. Change the directory to the folder software/build
  4. Run the cmake command: cmake ..DVENDOR=AMD -DBOARD=TB_A7_200T_IMG -DGCC=
  5. Then run make to build the binaries

Altera Cyclone 10GX reference design

  1. Change the directory to the folder gateware/syn/intel
  2. Run the TCL build script: quartus_sh -t .././ref/intel/dk-dev-10gx220/build_proj.tcl
  3. Change the directory to the folder software/build
  4. Run the cmake command: cmake ..DVENDOR=INT -DBOARD=INT_C10GX -DGCC=
  5. Then run make to build the binaries

Altera Arria 10GX reference design

  1. Change the directory to the folder gateware/syn/intel
  2. Run the TCL build script: quartus_sh -t .././ref/intel/dk-dev-10sx155/build_proj.tcl
  3. Change the directory to the folder software/build
  4. Run the cmake command: cmake ..DVENDOR=INT -DBOARD=INT_A10GX -DGCC=
  5. Then run make to build the binaries

Lattice reference design

  1. Change the directory to the folder gateware/syn/isc
  2. Run the TCL build script: radiant .././ref/isc/ifgpn4_evn/build_proj.tcl
  3. Change the directory to the folder software/build
  4. Run the cmake command: cmake ..DVENDOR=ISC -DBOARD=ISC_IFCPNX -DGCC=
  5. Then run make to build the binaries