Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Matrix Multiplication Algorithm

Altera_Forum
Honored Contributor II
1,523 Views

Hello, Can anyone recommends me what is best way to multiply rectangular matrices that minimizes the combinational function?? I have written matrix multiplication code but total combinational functional are exceeding the maximum comb. functional of the device???? 

 

 

On searching some forums, I have found that one can do the multiplication using SRAM..I need some documentation on it?? How to use SRAM? and how it can be used for matrix multiplication...where can i found documentation on it??
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
776 Views

Use bigger device is one solution

0 Kudos
Altera_Forum
Honored Contributor II
776 Views

If you try implementing the code in NIOSII you could have a function for multiplication. You could also instantiate a LPM_MULT multiplier from the IP catlog to be the function that carries out the multiplication in your code. And for the SRAM thing you could try referring to the following link https://www.altera.com/solutions/technology/external-memory/sram.html. I am not sure how helpful the link would be. Thanks.

0 Kudos
Altera_Forum
Honored Contributor II
776 Views

 

--- Quote Start ---  

If you try implementing the code in NIOSII you could have a function for multiplication. You could also instantiate a LPM_MULT multiplier from the IP catlog to be the function that carries out the multiplication in your code. And for the SRAM thing you could try referring to the following link https://www.altera.com/solutions/technology/external-memory/sram.html. I am not sure how helpful the link would be. Thanks. 

--- Quote End ---  

 

 

Can you please tell me how to use megafunction??? some pdf document explanation???
0 Kudos
Altera_Forum
Honored Contributor II
776 Views

Hi, 

 

the documentation for using the LPM_MULT and other arithmetic Ip cores can be found at 

https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/ug/ug_lpm_alt_mfug.pdf
0 Kudos
Reply