|
Hi,
Take the data path from PC to FPGA
PC -> FX3 OUT endpoint -> FPGA
You need to create a DMA channel between USB producer socket and PPORT consumer socket. You can go for AUTO or MANUAL channel. But if you go for MANUAL then you should have a DMAcallback function and there you should be committing the buffer.
Coming to the action that you need to perform in the GPIF II state machine, You need to add DR_DATA action to a state where you want to drive data to FPGA.
Now take the other way. i.e from FPGA to PC
FPGA ->FX3 IN endpoint -> PC
You need to create a DMA channel between PPORT producer socket and USB consumer socket. As said earlier, You can go for AUTO or MANUAL channel.
Coming to the action that you need to perform in the GPIF II state machine, You need to add IN_DATA action to a state where you want to sample data into FX3.
You need to make use of DMA flags (DMA_thread_Rdy) in both of these data paths to know whether the buffer has data to transmit (FX3 ->FPGA) or the buffer is free enough to accept more data (FPGA -> FX3).
Regards,
Sai kirshna.
|