Skip to content

Kenta11/vivado_hls_create_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vivado_hls_create_project

日本語バージョン: vivado_hls_create_project

Overview

A tool to automatically generate Makefile and tcl scripts for Vivado HLS.

Requirements

  • Python3 and pip
  • GNU Make

Install

$ sudo pip install git+https://github.com/Kenta11/vivado_hls_create_project
$ vivado_hls_create_project set-config path_to_vivado /path/to/Xilinx/Vivado/20xx.x

Basic Usage

You can select a function by subcommands.

Usage: vivado_hls_create_project [-h|--help] <command> [<args>]

Makefile and tcl scripts generator for Vivado HLS

<command>:
    list         list usable boards
    create       create Makefile and tcl scripts
    set-config   set parameter into ~/.vivado_hls_create_project
    get-config   get parameter from ~/.vivado_hls_create_project

optional arguments:
  -h, --help     show this help message and exit

Subcommands list,create,set-config and get-config are available.

create

Enter project name (sample) and a board name (Xilinx_ZedBoard) as follows.

$ vivado_hls_create_project create -b Xilinx_ZedBoard sample 

sample directory is generated, then Makefile and tcl scripts are also generated under the directory.

$ tree sample
sample
├ ─ ─  Makefile
├ ─ ─  directives.tcl
├ ─ ─  include
│    └ ─ ─  sample.hpp
├ ─ ─  script
│    ├ ─ ─  cosim.tcl
│    ├ ─ ─  csim.tcl
│    ├ ─ ─  csynth.tcl
│    ├ ─ ─  export.tcl
│    └ ─ ─  init.tcl
├ ─ ─  src
│    └ ─ ─  sample.cpp
└ ─ ─  test
    ├ ─ ─  include
    └ ─ ─  src
        └ ─ ─  test_sample.cpp

6 directories, 10 files

See create -h for more options.

list

list shows boards name that can be specified with create subcommand.

$ vivado_hls_create_project list
Board               | Part
--------------------|-------------------------------
ac701               | xc7a200tfbg676-2
arty                | xc7a35ticsg324-1L
arty-a7-100         | xc7a100tcsg324-1
arty-a7-35          | xc7a35ticsg324-1L
arty-s7-25          | xc7s25csga324-1
arty-s7-50          | xc7s50csga324-1
arty-z7-10          | xc7z010clg400-1
arty-z7-20          | xc7z020clg400-1
basys3              | xc7a35tcpg236-1
cmod-s7-25          | xc7s25csga225-1
cmod_a7-15t         | xc7a15tcpg236-1
cmod_a7-35t         | xc7a35tcpg236-1
cora-z7-07s         | xc7z007sclg400-1
cora-z7-10          | xc7z010clg400-1
eclypse-z7          | xc7z020clg484-1
genesys2            | xc7k325tffg900-2
kcu116              | xcku5p-ffvb676-2-e
nexys-a7-100t       | xc7a100tcsg324-1
nexys-a7-50t        | xc7a50ticsg324-1L
nexys4              | xc7a100tcsg324-1
nexys4_ddr          | xc7a100tcsg324-1
nexys_video         | xc7a200tsbg484-1
sp701               | xc7s100fgga676-2
sword               | xc7k325tffg900-2
zc702               | xc7z020clg484-1
zcu104              | xczu7ev-ffvc1156-2-e
zcu106              | xczu7ev-ffvc1156-2-e
zed                 | xc7z020clg484-1
zedboard            | xc7z020clg484-1
zybo                | xc7z010clg400-1
zybo-z7-10          | xc7z010clg400-1
zybo-z7-20          | xc7z020clg400-1

If you want to add/modify boards name, edit XML files in /path/to/Xilinx/Vivado/20xx.x/data/boards/board_files/.

License

MIT License

Vivado HLS is trademark of Xilinx.

Contact

Author: Kenta Arai

Twitter: @isKenta14