Forum Discussion
Altera_Forum
Honored Contributor
16 years agoFor the inet checksum there has to be a significant gain in defining a custom instruction that adds the two 16-bit halves of a 32 bit word together, then adds that 17 bit result to a 32 bit result.
A second version that includes a 'rotate by 8 bits' for misaligned data would also help. These would speed up a C/asm version without adding the full complexity of a full VHDL version.