You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are steps to reproduce the problem, make sure to write them down below.
If relevant, please include the hls4ml project files, which were created directly before and/or after the bug.
Quick summary
During synthesis, an Internal stream failed dataflow checking: it must be produced and consumed exactly once.
Details
I trained a QKeras CNN model containing ~35K parameters and then i converted it to an HLS model using resources strategy and a reuse factor of 32. However when I try to synthesize the model I always get errors complaining that an an Internal stream '----' failed dataflow checking: it must be produced and consumed exactly once.
resource.h:274->firmware/nnet_utils/nnet_conv_stream.h:279->firmware/nnet_utils/nnet_conv2d_stream.h:85->firmware/nnet_utils/nnet_conv2d_stream.h:103) automatically.
INFO: [XFORM 203-721] Changing loop 'Loop_1_proc' (firmware/myproject_axi.cpp:23) to a process function for dataflow in function 'myproject_axi'.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[0].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[1].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[2].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[3].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[4].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[5].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[6].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[7].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[8].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[9].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[10].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[11].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[12].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[13].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[14].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
WARNING: [XFORM 203-731] Internal stream variable 'layer15_out.V.data[15].V' (firmware/myproject.cpp:110) is invalid: it has no data consumer.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[0].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[0].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[1].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[1].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[2].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[2].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[3].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[3].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[4].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[4].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[5].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[5].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[6].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[6].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[7].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[7].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[8].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[8].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[9].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[9].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[10].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[10].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[11].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[11].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[12].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[12].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[13].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[13].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[14].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[14].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [XFORM 203-711] Internal stream 'layer15_out.V.data[15].V' failed dataflow checking: it must be produced and consumed exactly once.
WARNING: [XFORM 203-713] Variable 'layer15_out.V.data[15].V' has write operations in process function 'nnet::relu<nnet::array<ap_fixed<16, 6, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, nnet::array<ap_ufixed<6, 0, (ap_q_mode)5, (ap_o_mode)3, 0>, 16u>, relu_config15>'.
ERROR: [HLS 200-70] Pre-synthesis failed.
command 'ap_source' returned error code
while executing
"source build_prj.tcl"
("uplevel" body line 1)
invoked from within
"uplevel \#0 [list source $arg] "
INFO: [Common 17-206] Exiting vivado_hls at Wed Oct 30 15:55:39 2024...
Prerequisites
Please make sure to check off these prerequisites before submitting a bug report.
input
#482Quick summary
During synthesis, an Internal stream failed dataflow checking: it must be produced and consumed exactly once.
Details
I trained a QKeras CNN model containing ~35K parameters and then i converted it to an HLS model using resources strategy and a reuse factor of 32. However when I try to synthesize the model I always get errors complaining that an an
Internal stream '----' failed dataflow checking: it must be produced and consumed exactly once.
Steps to Reproduce
Error
Here is the generated hls project:
cnn_6_0.tar.gz
The text was updated successfully, but these errors were encountered: