How to read and write an on-chip fifo from HPS / ARM