필터 지우기
필터 지우기

HDL Coder custom file header - settings

조회 수: 3 (최근 30일)
Michael Felger
Michael Felger 2019년 11월 15일
답변: Chidvi Modala 2019년 12월 18일
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.

채택된 답변

Chidvi Modala
Chidvi Modala 2019년 12월 18일
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개)

카테고리

Help CenterFile Exchange에서 HDL Coder에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by