Forum Discussion

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

hw multiplier for Cyclone

With NIOS-1 i could select three implementations for multiplications (sw, mul_step, mul). In Nios-2 this feature is complety missing. Is there any way to tell the SOPC-Builder for NIOS-2 to integrate a hw-based multiplier with only a few cycles latency(1-3)?

I can do it with a custom instruction but how can I tell the compiler to use this function for multiplications - or better how can i instruct the sopc-builder to take my multiply custom instruction for the mul instruction?

I know that Cyclone2 (and Stratix) will have such predifined blocks - but right at the moment I have to do it with a Cyclone and I'm willing to spend some LE's for this feature.

Another question: what happend to the predefined "divide" custom instruction available in NIOS1? There is a subdirectory for it in the "components" directory but in the SOPC-Builder it's not visible under custom instructions.

Thanks for any help

Chris

18 Replies