Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16606 Discussions

Forcing Quartus to use Cyclone IV embedded multipliers

Altera_Forum
Honored Contributor II
2,505 Views

I really need to free up some LEs so it would really help if my LPM_MULT blocks could be implemented in the embedded multiplier blocks. How do I do that? 

 

I've looked at the documentation and in Table 25 it suggests that setting DEDICATED_MULTIPLIER_CIRCUITRY to YES is the way forward, but where do I do that?
0 Kudos
14 Replies
Altera_Forum
Honored Contributor II
867 Views

Hi Oliver, 

If you open the LPM_MULT block in the megawizard there is an implementation option where you can select "use dedicated multiplier circuitry". 

 

CoGH
0 Kudos
Altera_Forum
Honored Contributor II
867 Views

Yes, I found that, but all the options are greyed out.

0 Kudos
Altera_Forum
Honored Contributor II
867 Views

Have you selected Cyclone IV in the megawizard? 

Otherwise you can edit the .vhd directly and set the DEDICATED_MULTIPLIER_CIRCUITRY parameter.
0 Kudos
Altera_Forum
Honored Contributor II
867 Views

Yes, I've set the Cyclone IV in the megawizard. 

 

I've looked in the .vhd file and it says  

 

-- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE! 

 

This doesn't surprise me, and I guess I can ignore it. 

 

When you suggest setting DEDICATED_MULTIPLIER_CIRCUITRY, what's the syntax and where in the file does it belong?
0 Kudos
Altera_Forum
Honored Contributor II
867 Views

It should already be there if it is a valid setting. 

I created an LPM_MULT for Cycline IV in Quartus 11.1 sp1 and that had the DEDICATED_MULTIPLIER_CIRCUITRY parameter in there but the implementation wasn't greyed either.
0 Kudos
Altera_Forum
Honored Contributor II
867 Views

Could you please post up your VHDL? I'd like to try editing my file to see if that works. 

 

Thanks in advance.
0 Kudos
Altera_Forum
Honored Contributor II
867 Views

Here you are.

0 Kudos
Altera_Forum
Honored Contributor II
867 Views

Thanks, that's very interesting. I'll see what happens.

0 Kudos
Altera_Forum
Honored Contributor II
867 Views

Oliver, which device are you targeting? the CIVGX15 does not have hard multipliers

0 Kudos
Altera_Forum
Honored Contributor II
867 Views

My device is an EP4CGX22

0 Kudos
Altera_Forum
Honored Contributor II
867 Views

Editing the vhdl to add the hint didn't make any difference at all :(

0 Kudos
Altera_Forum
Honored Contributor II
867 Views

Which version of Quartus are you using?

0 Kudos
Altera_Forum
Honored Contributor II
867 Views

11.1 Web edition

0 Kudos
Altera_Forum
Honored Contributor II
867 Views

I've learnt that Quartus does something different when you use an lpm_mult to square a number. It works for me when multipying by a constant!

0 Kudos
Reply