VHDL code generation and avoiding magic numbers?
조회 수: 4 (최근 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!