Skip to content

Latest commit

 

History

History
88 lines (56 loc) · 2.16 KB

ZEDBOARD.md

File metadata and controls

88 lines (56 loc) · 2.16 KB

Running the demo on Zedboad

Tested Environment

  • Target Board: Zedbaord
  • Vivado: version 2019.2 on CentOS7.8

Vivado environment setting

$source /path/to/Vivado/2019.2/settings64.sh

.bit generation

Run the following vivado commands in polyphony/implement/synth/zedboard directory. After all commands are finished, zedboard.xsa and zedboard.bit will be generated.

$cd implement/synth/zedboard
$vivado -mode batch -source ip.tcl
$vivado -mode batch -source synth.tcl
$vivado -mode batch -source implement.tcl
$vivado -mode batch -source bitgen.tcl

Vitis SDK setup

Run Vitis

start vitis with -workspace option.

$vitis -workspace ./sdk.2019.2

Import projects

Import projects from vitis_archive.ide.zip

  1. Select File->Import: Check "Vitis project exported zip file" and click "Next>".

Import Projects

  1. Select "vitis_export_archive.ide.zip" as Archive File, then click "Finish"

Import Projects

Update hardware specification

  1. On vitis Explorer panel, select "zbd" platform and click right-button. On the pop-up window, select "Update Hardware Specification".

Update Hardware Specification

  1. Click "OK".

Update Hardware Specification

  1. Hardware specification will be updated.

Update Hardware Specification

Run the demo

The following steps run the demo on Zedboard.

  1. Power on Zedboard
  2. Connect USB program cable and USB serial cable
  3. Load .bit to Zedboard
cd polyphony/implement/synth/zedboard
$vivado -mode batch -source load_fpga.tcl
  1. Select a project to be run. The following example selects "app_cook_torrance" project.

select a project

  1. Build the selected project. Please make sure that the project's Release configuration is active.

select a project

  1. Run the selected demo. On the built project, right-click. On the Popup-menu, select "Run As->Launch on Hardware.

select a project

(Optional) terminal output

printf output (stdout) is shown via serial port /dev/ttyACM0.

$sudo screen /dev/ttyACM0 155200