Vivado HLS 2018.2中set_directive_dataflow选项报错问题
问题:Vivado HLS 2018.2中set_directive_dataflow选项报错及死循环问题
环境与背景
- 系统:Windows 10
- Vivado HLS版本:2018.2
- 项目:CNN的HLS实现,通过命令
vivado_hls -f gen_project.tcl启动构建
触发的错误
执行TCL脚本时出现如下错误:
ERROR: [HLS 200-101] 'set_directive_dataflow': Unknown option '-disable_start_propagation'
后续矛盾现象
移除-disable_start_propagation选项后,代码运行陷入死循环,无法正常执行。
相关TCL脚本代码
gen_proj.tcl
open_project nnet_stream set_top nnet add_files nnet.cpp add_files -tb nnet_test.cpp open_solution "solution1" set_part {xc7z020clg400-1} -tool vivado create_clock -period 13 -name default source "directives.tcl"
directives.tcl
set_directive_dataflow -disable_start_propagation "nnet" set_directive_unroll "conv_layer1/conv_layer1_label6" set_directive_unroll "conv_layer1/conv_layer1_label7" set_directive_unroll "conv_layer1/conv_layer1_label8" set_directive_unroll "conv_layer1/conv_layer1_label2" set_directive_pipeline -II 8 "conv_layer1/conv_layer1_label9" set_directive_unroll "conv_layer2/conv_layer2_label10" set_directive_unroll "conv_layer2/conv_layer2_label11" set_directive_pipeline "conv_layer2/conv_layer2_label12" set_directive_unroll "conv_layer2/conv_layer2_label13" set_directive_unroll "conv_layer2/conv_layer2_label3" set_directive_unroll "conv_layer1/conv_layer1_label0" set_directive_unroll "conv_layer1/conv_layer1_label1" set_directive_unroll "pool_layer1/pool_layer1_label14" set_directive_unroll "pool_layer1/pool_layer1_label15" set_directive_unroll "pool_layer1/pool_layer1_label16" set_directive_unroll "pool_layer1/pool_layer1_label17" set_directive_unroll "pool_layer1/pool_layer1_label18" set_directive_unroll "pool_layer1/pool_layer1_label19" set_directive_unroll "pool_layer1/pool_layer1_label20" set_directive_unroll "pool_layer1/pool_layer1_label21" set_directive_pipeline -II 232 "pool_layer1/pool_layer1_label6" set_directive_unroll "pool_layer1/pool_layer1_label22" set_directive_unroll "pool_layer1/pool_layer1_label23" set_directive_pipeline "pool_layer1/pool_layer1_label7" set_directive_unroll "pool_layer2/pool_layer2_label24" set_directive_unroll "pool_layer2/pool_layer2_label25" set_directive_unroll "pool_layer2/pool_layer2_label26" set_directive_unroll "pool_layer2/pool_layer2_label27" set_directive_pipeline "pool_layer2/pool_layer2_label8" set_directive_unroll "pool_layer2/pool_layer2_label29" set_directive_unroll "pool_layer2/pool_layer2_label16" set_directive_pipeline "pool_layer2/pool_layer2_label9" set_directive_unroll "fc_layer1/fc_layer1_label30" set_directive_unroll "fc_layer2/fc_layer2_label31" set_directive_unroll "fc_layer3/fc_layer3_label32" set_directive_unroll "pool_layer1/pool_layer1_label33" set_directive_unroll "pool_layer1/pool_layer1_label34" set_directive_unroll "pool_layer1/pool_layer1_label35" set_directive_unroll "pool_layer2/pool_layer2_label36" set_directive_unroll "pool_layer2/pool_layer2_label37" set_directive_unroll "pool_layer2/pool_layer2_label38" set_directive_unroll "pool_layer2/pool_layer2_label39" set_directive_unroll "pool_layer2/pool_layer2_label0" set_directive_pipeline "pool_layer2/pool_layer2_label28" set_directive_unroll "conv_layer2/conv_layer2_label4" set_directive_unroll -factor 4 "fc_layer2/fc_layer2_label41" set_directive_unroll -factor 4 "fc_layer1/fc_layer1_label40" set_directive_unroll -factor 4 "fc_layer3/fc_layer3_label42"
内容的提问来源于stack exchange,提问作者student
相关产品推荐
相关产品推荐

