I realized that rand() call can not be synthesized and went implementing random number generator following this link.
I verified by implementing it as an IP and with Jupiter notebook. I was able to generate floating-point random numbers.
But when I used the random number generator functionality in my random selection HLS code, I could not make the random selection to work.
Am I missing anything in the function las()?
In Jupiter notebook, I am initializing the arrays a, and b. And write some integer value at the address of s. When I checked for the floating-point number at the address for rno and the random index at the address of index, It is showing only 0s.
I am wondering how can I expect that upon initializing a, b and s, the function las() will be invoked? and which in turn invoke randn()
Do I have to use any control signals? Please, give me some pointers.
Gandhimathilas.cpp (2.0 KB)