Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNIOS : INTERNICHE stack without ucOSII
Hello I'd like to use the interniche stack and the TSE ethernet mac, but without ucOSII.. I've heard, it exist a superloop example but it seems a lot of files patching is mandatory. D...
Altera_Forum
Honored Contributor
16 years agoI'd guess that is an asm function that calculates the IP checksum.
Doing that on the nios will be a PITA - since it is normally done using a 32bit 'add with carry' and the nios doesn't have a carry flag! The quickest way would be a custom instruction that adds the high and low 16bits (of a 32bit value) together, and then adds that to a running total. That might work with a C control loop.