Altera_Forum
Honored Contributor
14 years agoDE2 Ethernet with Modes
Inspired by btxsistemas' (http://www.alteraforum.com/forum/showthread.php?t=3947&highlight=de2+ethernet) example I have modified it to have a variety of modes. Firstly it can do either hardware random number generation by GPIB or via software with the rand() function. Via the pushbuttons you can increase speed, decrease speed, or change modes. It also displays the current mode on the LCD display as well as the total bytes sent on the 7 Segment Display. If you want to increase the speed of the program you should remove unwanted modes (and I'm sure my code for picking modes is not efficient and I have a bunch of# includes which aren't needed). I would love any tips on how to improve it or am happy to help anyone with using the code.
My next project is to move this to the DE2-115. I'm sure that I need to use the sendto function but I'm not sure entirely on how to do it, if anyone can help with that I would be very grateful.