Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by markman@Apr 5 2006, 03:50 AM we all known there're a number of 9*9 mutiplier dsp module in cycloneii device.
i build a nios2 system based on cycloneii and i wanna to call this 9*9 mutiplier in my nioseii c application, using * operator for simple,instead of using custom instruction.when i build this noisii system in spoc builder, i already set cpu to use embedded mutiplier.
is that enough? will i need others attention to realize what i want?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14047)
--- quote end ---
--- Quote End --- Why would you want to use a custom instruction for multiplication? The Nios2 already includes several mul(xxx) opcodes that calculate 32x32 multiplication. (see "Nios2 Processor Reference Handbook" chapter 8 "Instruction Set Reference") And the compiler uses these opcodes when you write a (integer) multiplication in c. And I think the "embedded multiplier" setting tells sopc builder to use DSP Blocks instead of logic elements to implement the multiplication opcodes.