From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fpga multipliers

I'm quickly running out of DSP48s on my FPGA and I'm not sure what is using them all. My understanding is that a single multiplier can handle multiplying a 18 bit fixed point by a 25 bit fixed point. Square root and recipical also use DSP48s. Do any other basic funtions use them?

0 Kudos
Message 1 of 7
(2,528 Views)

The nodes you mentioned are certainly the most likely uses of DSP48s. Are you overriding the outputs of any operators?

0 Kudos
Message 2 of 7
(2,515 Views)

In some cases I am overriding outputs, but always to a lesser number of bits. Does this increase the number of DSP48s used?

0 Kudos
Message 3 of 7
(2,512 Views)

memory will also restrict the number of multiplyers available.  something like the routing logic of memory restricts the number of multipliers available.  reducing memory allocation size helped some compiles of ours.

Stu
0 Kudos
Message 4 of 7
(2,508 Views)

Hello, 

 

This DSP48 slice supports more than 40 dynamically controlled operating modes, including multiplier, multiplier-accumulator, multiplier-adder, subtracter, three-input adder, barrel shifter, wide bus multiplexers, wide counters, and comparators. For more information on the DSP48 slices, see this link under the subheading "FPGA Multiplier Resources". 

Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments
0 Kudos
Message 5 of 7
(2,485 Views)

Thank you for the replies. The problem I'm having is that I'm running out of DSP48s. Is there a way to know where the DSP48s are being used? Is there a way to limit their use so that I can get my code to complile?

0 Kudos
Message 6 of 7
(2,477 Views)

First, I would recommend some simple suggestions to reduce FPGA resource usage. These suggestions can be found here.


Although it may be possible for you to determine where the DSP48 resources are being used, it would require going through the compile logs which can be quite tedious. Try some of the steps listed in the link above first. Hope this helps! 

Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments
0 Kudos
Message 7 of 7
(2,474 Views)