-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreadme_setup.txt
96 lines (66 loc) · 3.65 KB
/
readme_setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
SWORDSフレームワーク 環境構築
・利用ツールとバージョン
Xilinxツール:
Vivado 2015.4
Vivado HLS 2015.4
Xilix SDK 2015.4
その他:
clang 3.4以上(3.4, 3.8.1, 4.0.0で動作確認済み)
python 2.6以上(2.7.13で動作確認済み)
Pythonパッケージソフトウェア:
jsonschema 2.5.1以上(2.5.1, 2.6.0で動作確認済み)
clang 3.4以上(3.4, 3.8.1, 4.0.0で動作確認済み)
jinja2 2.10(2.10でのみ動作確認済み)
・動作要件
Windows OS(7, 10で動作確認済み)
Xilinxツールの動作要件は下記文書の2章を参照のこと
https://japan.xilinx.com/support/documentation/sw_manuals_j/xilinx2015_4/ug973-vivado-release-notes-install-license.pdf
・環境構築の手順
1. Vivado/Vivado HLSのインストール
Vivado Design SuiteもしくはSDSoCのどちらでもよい.
https://japan.xilinx.com/support/download/index.html/content/xilinx/ja/downloadNav/vivado-design-tools/archive.html
https://japan.xilinx.com/support/download/index.html/content/xilinx/ja/downloadNav/sdx-development-environments/archive.html
「2015.4」をインストールすること.
System Editionにて動作を確認しているが,WebPACK等のEditionでも問題なく
動作するものと思われる.
Vivado Design Suiteの場合は,インストール時に"Software Development kit"を
選択すること.
2. LLVMのインストール
下記より入手してインストールする.
http://releases.llvm.org/download.html
「32ビット版」でないと動作しない.
インストール時設定でパスを通しておくこと
3. Pythonインストール
下記より入手してインストールする.
https://www.python.org/downloads/
インストール時設定でパスを通しておくこと
4. pythonパッケージソフトウェアのインストール
cmd.exe (Windowsコマンドプロンプト)上から以下を実行して
必要なライブラリをインストールする.
$ pip install jsonschema
$ pip install jinja2
$ pip install clang
2.でインストールしたのが最新版で無ければ,
$ pip install clang==3.8
のようにバージョンを明示的に指定すること.
5. SWORDSソースの取得
GitHubより取得する.
$ git clone https://github.com/tlk-emb/SWORDS.git
・サンプルの実行方法
cmd.exe から以下を実行する.
$ cd samples\matrixmul_simple
$ ..\..\swords.bat matrixmul.c matrixmul.json matrixmul
swords.bat のあるディレクトリにパスを通してもよい.
setenv.bat にて各種の設定を行う必要がある.
1行目はSDSoCのインストール先に合わせて変更すること.
2行目はLLVMのインストール時に環境変数を指定していれば不要であるが,
必要に応じて使用すること.
・ボードの追加方法
1.ボードファイルをXilinx\Vivado\2015.4(使用するvivadoのバージョン)\data\boards\board_files
に追加
(Arty, BASYS3, GENESYS2, NEXYS_VIDEO, NEXYS4, NEXYS4_DDR, ZYBOは以下からダウンロード可
https://github.com/Digilent/vivado-boards/archive/master.zip )
2.vivadoを起動し、tclコンソールでget_board_partsを打ち込むとボード一覧が出るため、追加するボードに対応しているものを確認(例 digilentinc.com:zybo:part0:1.0
)
3.python/generatehlstcl.py 60行付近のelif board_name == "(ボードの名前)"~~の部分を書き足す。
4.python/generatevivadotcl.pyに追加120行付近のelif self.board_name == "(ボードの名前)"~~の部分を書き足す