Forum Discussion
Altera_Forum
Honored Contributor
15 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.