how to optimize resource usage in HDL coder ?

10 vues (au cours des 30 derniers jours)
Mohammed Shameem Hussain
Mohammed Shameem Hussain le 24 Juil 2017
hi,
I build a model and have a very high usage of the resource. I would like to decrease it, please suggest me what steps can I take for the same? The project is attached and I am using Altera Cyclone IV X for hardware implementation, where Quartus fails to compile with error "Error (114016): Out of memory in module quartus_map.exe (8882 megabytes used) ". I think it is because of the high resource, please let me know if I am wrong.
Multipliers 518
Adders/Subtractors 27084
Registers 260726
Total 1-Bit Registers 3019571
RAMs 19
Multiplexers 119879
I/O Bits 46
Static Shift operators 9633
Dynamic Shift operators 3345
Looking forward to a reply.
Thank you

Réponses (1)

Bharath Venkataraman
Bharath Venkataraman le 25 Juil 2017
You can share resources by using the Sharing option (right click on a subsystem to see the option). The number of registers seem high, have you considered using the RAM block instead of registers?
  1 commentaire
Mohammed Shameem Hussain
Mohammed Shameem Hussain le 25 Juil 2017
Yes, I have checked RAM block option. The problem is that I am using single data type which implies 32bit register. Therefore the use of 1-bit register is significantly increased. Please see the report in the attachment.
Either I have to opt for fixed point conversion via Matlab tool or I have to do it manually. Via tool will take longer time as it will generate a suggestion for the whole project and I have search individual in order to adapt. Therefore now I am doing it manually.
Is there a possibility to set the size of a single data type other than 32 bit?
Other suggestions are welcome.
Thank you

Connectez-vous pour commenter.

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by