| Filter Design HDL Coder™ | ![]() |
Specify comment line in header of generated filter and test bench files
'string'
The comment is generated in each of the generated code and test bench files. The code generator adds leading comment characters as appropriate for the target language. When newlines or line feeds are included in the string, the code generator emits single-line comments for each newline.
For example, the following generatehdl command adds two comment lines to the header in a generated VHDL file.
generatehdl(Hlp,'UserComment','This is a comment line.\nThis is a second line.')
The resulting header comment block for filter Hlp would appear as follows:
-- ------------------------------------------------------------- -- -- Module: Hlp -- -- Generated by MATLAB(R) 7.4 and Filter Design HDL Coder 2.0. -- -- Generated on: 2006-11-20 16:27:42 -- -- This is a comment line. -- This is a second line. -- -- -------------------------------------------------------------
![]() | UseAggregatesForConst | UseRisingEdge | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |