Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

Multiplication and division in NIOS II/e

Hi, I need to do multiplication and division in Nios II economy programming in assembly, and to make these operations in software using sums and successive subtractions is impractical, I can create a custom instruction for this using the multiply operator of verilog?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello Papafigo,

    Welcome to the forum.

    Please be so kind to explain more about your project.

    If you want to do calculations, use nios ii (f) in C, these go aready fast.

    If you really need the power, you can implement your calculations in the fpga and build a custom qsys component around it.

    Much faster is practically not possible.

    Implementing custom instructions is not easy, and what is the benefit if you already have the Arm math instructions ?

    Best Regards,

    Johi.