Forum Discussion

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

lpm_mult - no sum input

The definition of lpm_mult is supposed to include a sum input, but when I use the megawizard I can't produce one for any device family. The resulting verilog does not have one either. What's the deal? I am using Q7.2free .

1 Reply

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

    Hello,

    the sum input options apparently has been "lost" with lpm_mult Megawizard V7.0 or V7.1, it was still functional with V6.0. But the library lpm_mult (.v, .vhd,.tdf, whatever you prefer) still has it. Thus you can use it by manually instantiating the megafunction. You should consider, that this implies a logic element multiplier, hardware multipliers don't have the partial sum feature.

    Personally I prefer infering multipliers from HDL, which saves thinking about optimal implementation for a particular device. So I was never aware of the change to Megawizard.

    Regards,

    Frank