UDP network with a tri-mode MAC on a Spartan-6 FPGA