Since i use FPGA, the library for w5300 doesn't exist and i forced to write VHDL code for w5300. I set all register values and addresses correctly ex: MAC,IP,Gateway and Subnet values are set and pinging work correctly.
Good.
Also i can send Packets form PC to w5300 and FPGA, that they received correctly by FPGA, but the problem is that the PC can not receive the correct and same Packets that sent to FPGA.
Just to clear up a misconception: TCP is a byte stream protocol, not packet based. So IP packets are going back and forth in both directions to successfully transmit data in either direction, your problem seems to be with the higher level TCP data streams.
I debug the received Packet by FPGA that is true but the received Packets by PC is dummy value that often is fixed value(191 29 191 29 ...).
I don't understand what this means. Are you not receiving data at all on the PC, or are you receiving incorrect data? If you are receiving incorrect or corrupt data, how does that work? Is it only when there should be real data, or do you get the dummy data even when the FPGA should be doing nothing? Are you checking the return code from recv()? Maybe the session has disconnected and the recv() call is failing. Are you using non-blocking IO?
I force to use TCP mode and other mode is not used in my project.
It would still be good to write a test bitstream for the FPGA that sends UDP or RAW packets and see if you see them in wireshark and a simple receiver program on your PC. It would also be good to write a dummy application on a PC that emulates (even in a very crude way) what you expect your FPGA + wiznet chip to do. That will give you a way to test out your PC application separately from the implementation of networking on the FPGA.
I guess the problem is related to Chip, since i use "How_to_Test_Internal_TX_RX_Memory" document that the testing of TX-FIFO is fails.
please help me to solve this problem.
[/quote]