VHDL code generation and avoiding magic numbers?
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I would like to avoid magic numbers in my auto-generated VHDL code. Is there a way to neatly generate a pkg.vhdl file of constants using a Simulink model and the HDL Coder tool? Alternatively, is there is a best practice model architecture for generating global constants?
Thanks for reading!
Sara
0 个评论
回答(1 个)
Kiran Kintali
2019-12-14
Currently HDLCoder does not have the capaibility of generating all constants into pkg file. Please reach out to support@mathworks.com to create an enhancement request.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 HDL Coder 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!