Forum Discussion

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

Code Gerneration for DSP

Hi.

I have several operations on signed and unsigned long in my kernel, but only multiplication on signed long appears to use 8 DSP blocks.

For example, division and modulo on long or unsigned long appear to produce costly logic instead of using DSP blocks.

Is this expected behaviour in aoc version 16.0.X or an indicator for a bug in my code?

2 Replies

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

    I don't think this has anything to do with OpenCL. Chances are that Altera does not at all have IP Cores for long division/modulo operations that use DSPs; in fact, maybe it is not at all possible to use the DSPs for such operations.