cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
748 Views
Registered: ‎11-02-2017

The problem of synthesize

The picture is my code,the src_data and dst_data are two arrays.The src_data is input array,and it need to cache.The dst_data is just a relay array,so it need not to cache.I find src_data and dst_data are synthesized using BRAM,but the dst_data should not consume BRAM.I do not know why this is,so I want to know how to solve the problem.Thanks.

1111.JPG
2222.JPG
0 Kudos
3 Replies
Highlighted
Mentor
Mentor
740 Views
Registered: ‎04-26-2015

Re: The problem of synthesize

Try adding a "DATAFLOW" pragma inside the loop, moving the dst_data definition inside the loop, and applying a "STREAM" pragma to that. This still might not be enough (HLS may not be able to do dataflow on that loop) but it'll certainly help.

0 Kudos
Highlighted
Observer
Observer
726 Views
Registered: ‎11-02-2017

Re: The problem of synthesize

The loop can not add DATAFLOW,Pre-synthesis failed.
0 Kudos
Highlighted
Contributor
Contributor
628 Views
Registered: ‎02-24-2018

Re: The problem of synthesize

Hello,

Hls synthesis arrays to ap_memory (bram) by default. What dou you mean the ddr shouldn't consume the BRAM? The local array should be stored using some memory resources. You can use the RESOURCE progma to choose where it's put.

0 Kudos