VHDL code generation and avoiding magic numbers?

4 visualizaciones (últimos 30 días)
S_Callahan
S_Callahan el 13 de Dic. de 2019
Respondida: Kiran Kintali el 14 de Dic. de 2019
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

Respuestas (1)

Kiran Kintali
Kiran Kintali el 14 de Dic. de 2019
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.

Categorías

Más información sobre HDL Coder en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by