Difference in resource utilization using HDL Coder

4 ビュー (過去 30 日間)
Achala G
Achala G 2025 年 4 月 1 日
回答済み: Sahas 2025 年 4 月 9 日
  1. Using MATLAB:I have wriiten code in MATLAB HDL coder and it generated synthesized results successfully (connected Vivado internally)
  1. Xilinx Vivado: For same logic i have written a verilog code and synthesized directly in Vivado and got synthesized results.
Result: HDL coder (MATLAB code) requires more resources compared to direct synthesis using Vivado(verilog code).
Querry: Why this difference appeared even in both the places I have used same logic?

回答 (1 件)

Sahas
Sahas 2025 年 4 月 9 日
When you write code in Verilog on your own the implementation can be different as the code you might have written is more optimized and starightforward to your use. On the other hand, the code generated by MATLAB is fairly generic and less optimized. This is the reason that you can see difference in resourse estimation.
For more information to estimate FPGA resource utilization using MATALB, refer to the following MathWorks documentation on the function "estimateResources": https://www.mathworks.com/help/deep-learning-hdl/ref/dlhdl.processorconfig.estimateresources.html
I hope this is beneficial!

タグ

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by