Hi Eli and all,
This tutorial is a great start: http://xillybus.com/tutorials/vivado-hls-c-fpga-howto-2 where I can implement coprocessing using a simple sin function in Vivado HLS.
However, I got a problem where the rc reached read EOF, and furthermore the size of N (in the sample it is 1000) can't be more than 23. If i use 24 (or above), it will stuck there and nothing happens.
Could anyone point me the direction what should be done, please? Or maybe a suggestion. Below is the modification I have made:
I used Windows, and I removed fork(), but I didn't use any kind of CreateThread or similar. I made some modifications to be used with Windows which are:
1) include header for windows such as <io.h> etc
2) change open, read, write, close to _open, _read, _write, _close and also \\\\.\\xillybus_read_32 and \\\\.\\xillybus_write_32
3) put character 'f' for floating point number
The flow of the program sequentially is:
1) open xillybus_read and write with fdr and fdw
2) malloc tologic
3) a for loop for tologic data
4) buf and donebytes
5) write using _write for rc
6) malloc fromlogic
7) buf and donebytes
8) read using _read for rc
9) print the results
Regards.