How to generate BRAM using vivado HLS?
After some trial and error, I could infer BRAM. I didn't get BRAM, because my array size was less (4). When I increased my array size to 1024, I could obtain BRAM inferred for the global variable bram_arr.

Here is the screenshot of the results:



As you can see it inferred 18K BRAM for my Kintex 7 device.

Thank you.