As a developer of FPGA and firmware, there is only one clear answer: do not use memcpy, etc. for this
Some reasons:
- There is no guarantee that memcpy will work in any particular order.
- .
- acceses .
memcpy . - undefined.
for . , volatile (. ).
, volatile . (, , ). ( ) .
, /, . , .
, DMA. FPGA PCI (e), busmaster DMA / (, , , ).
( ) , , , , .. mempcy() (1) (1): , , , ).