HDL Coder custom file header - settings
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Michael Felger
le 15 Nov 2019
Réponse apportée : Chidvi Modala
le 18 Déc 2019
Hi,
generating VHDL-Code with HDL coder, there are some informations (like filename, date, module) in the default header.
It is possible to replace this default file header with a custom file header: https://de.mathworks.com/help/hdlcoder/ug/file-comment-customization.html
My question is: is it possible to add some informations (filename, date, author) into the custom fileheader automatically?
The documentation mentions placeholders like <%Author%> and $Date$.
Where can I set the values for these placeholders?
Is there a list of all possible placeholders?
In my testcase (using the example from the documentation), none of the placeholders are replaced after hdl generation.
0 commentaires
Réponse acceptée
Chidvi Modala
le 18 Déc 2019
I am assuming that you are generating HDL code from a simulink model. I attached an example model for reference. Below is the procedure for replacing the default file header with a custom file header:
Right click on the subsystem you can go to Hdl Code>> Hdl Coder properties
Search for Customfileheadercomment. In the Custom file header comment, Enter the following comments
// Title : <%Title%>
// Project : <%Project%>
// Author : <%Author%>
// Hello : <%Hello%>
// Revision : $Revision$
// Date Modified : $Date$
Now generate HDL code for the subsystem. Open the generated HDL code(Subsystem.vhd) you can find the header section at the top. Whatever you specify in the Customfileheadercomment section will be present here
Current date and Author name won't be updated automatically. Whatever is set as Date and Author name, will be reflected in the generated code
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur HDL Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!