I have a problem with the nexys vedio board FT2332h chip programming trying to use the FIFO synchronous Mode.
i need to transfer data from PC to FPGA with FT_write(), transfer data from FPGA to PC zith FT_read(). and then continue transfer the next 4K data from PC to FPGA .
In HDL code: if rxen = 0, then oen = 0 , then rdn = 0, strart to receive data on FPGA, if the data size = 4K and txen = 0, start to send data on FPGA, wrn = 0; if the data size = 4K , jump to next receive state.
First problem, the process will lose 2 bytes data every 510 bytes data, that mean i can not receive the 511st the 512 byte data;
Second problem, i can not write the 4K data into the FPGA, the application show that the "write bulk fail" , but i can write less than 510 bytes data into the FPGA and read back currently;
it is current to finish transfer data at one direction, such as just transfer data from PC to FPGA or transfer data from FPGA to PC, no matter how many bytes.
I wonder if someone with some experience of this could give me a few pointers.
Question
tonyfr
Hello all,
I have a problem with the nexys vedio board FT2332h chip programming trying to use the FIFO synchronous Mode.
i need to transfer data from PC to FPGA with FT_write(), transfer data from FPGA to PC zith FT_read(). and then continue transfer the next 4K data from PC to FPGA .
In HDL code: if rxen = 0, then oen = 0 , then rdn = 0, strart to receive data on FPGA, if the data size = 4K and txen = 0, start to send data on FPGA, wrn = 0; if the data size = 4K , jump to next receive state.
First problem, the process will lose 2 bytes data every 510 bytes data, that mean i can not receive the 511st the 512 byte data;
Second problem, i can not write the 4K data into the FPGA, the application show that the "write bulk fail" , but i can write less than 510 bytes data into the FPGA and read back currently;
it is current to finish transfer data at one direction, such as just transfer data from PC to FPGA or transfer data from FPGA to PC, no matter how many bytes.
I wonder if someone with some experience of this could give me a few pointers.
Thank you very much for you help.
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.