Forum Discussion
jackhab
Occasional Contributor
3 years agoReading data from FPGA on HPS with Linux - what's the best way to do it?
I have a Cyclone V with Linux application on ARM.
The application accesses FPGA directly by mapping HW light- and heavy-weight bridges into virtual memory space (without kernel driver).
Current...
jackhab
Occasional Contributor
3 years agoHi Tiwari
I, indeed, use mmap() to gain access to FPGA memory space. But my question was about what happens during actual read and write.
Should I read the memory word-by-word using alt_read_word() function or reading big memory chunks using standard memcpy() also OK?
I am asking it because I'm not sure how ARM's data caching will behave during mempcpy() and I'm afraid caching can cause data corruption.