Forum Discussion
Altera_Forum
Honored Contributor
14 years agoIf you are doing a lot of TCP/IP then the checksum routine needs some TLC.
The nios cpu doesn't have a 32bit 'add with carry' instruction so the checksum loop is horrid, a custom instruction to add the two 16bit halves of one word onto another helps no end. The byteswap one will help elsewhere (if you can persuade the compiler to use it properly). But I'm not at all sure any 100MHz cpu can 80% load a 100M ethernet with non-trivial traffic.