Forum Discussion
Altera_Forum
Honored Contributor
19 years agoThe ELF patching utility is able to change MUL, MULXUU, MULXSU, and MULXSS instructions to use your custom instruction. However, it is not able to change the MULI instructions; they have a 16-bit immediate field which custom instructions don't support. The MULI instructions are used when your source code multiples a number by a constant.
So, is this patch still going to meet your needs? BTW, I'm curious about why you don't upgrade to a new version of Nios II that includes support for multiply instructions using logic elements (and take multiple cycles to compute).