Forum Discussion
Altera_Forum
Honored Contributor
20 years agoNios2 1.01 hadware multiply instruction
Hi everyone In my nios folder i see C:\altera\kits\nios2\components\altera_nios_multiply\ this component I want use multiply instruction in my Cyclone based board But with NIOS2 1.01 s...
Altera_Forum
Honored Contributor
20 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).