Now Im totally confused by the directions:
I have three parts:
hardware IO : HTX , HRX.
software IO :STX,SRX.
generally HTX -> SRX , HRX <- STX.
Now I borrowed the HPS IO to the FPGA, they are MISO(59) and MOSI(58).
If I didnt misunderstand the meaning of h2f_loan_io_in/out/oe
Version 1
MISO(59) should be HPS output(oe = 1) linked to HRX,which means links to STX
MOSI(58) should be HPS input(oe = 0) linked to HTX,which means links to SRX
However
loan_io_in means FPGA output to HPS input
Version 2
MISO(59) should be HPS output (oe = 1) linked to SRX,which means links to HTX
MOSI(58) should be HPS input (oe = 0) linked to STX,which means links to HRX
Who can tell me which one is right?
And do I need to write the HPS code / pre-loader, if needed ,how?
Reguards.