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).
Currently, I have a working application which does all access via alt_read_word() and alt_write_word().
I recall from NIOS documentation that this is the proper way to access HW memory to avoid caching issues but I couldn't find anything about it with regards to ARM. So I'd like to ask the following:
- Should FPGA memory be accessed by HPS only via SoCAL Memory Read/Write Utilities or it can be used as normal HPS RAM including calling memcopy() to move data between FPGA and HPS?
- Is there a document for SW developers which describes how HPS should access FPGA memory space?
Thanks.