the goal of this design is to implement a UDP client on fpga, sending data out to a PC, connected by a crossover ethernet cable.
I download the following source into my xilinx virtex4 fpga (avnet virtex4LX evaluation board.) I had two problems.
first, the mem_malloc function doesn't work. is this related to how I configure the memory of the fpga? say, where the program starts?
I bypass this problem, somehow.
second, I use "Colasoft Capsa" to monitor the packets I received at the PC end. the software gives out the content received. it seems to be arp packet instead udp packet. I am a newbie, but is this right?
the packet has such a structure:
dest. mac addr src. mac addr protocol: 0x0806 hardware type: 0x01 protocol type: 0x0800 hardware addr. len.: 6 protocol addr. len :4 type: 1 src mac:
src. ip dest mac dest ip data: fcs:
The code is below. any suggestion is appreciated. thanks.