Download Filter Design HDL Coder User`s Guide

Transcript
UserComment
UserComment
Specify comment line in header of generated filter and test bench files
Settings
The coder includes a header comment block at the top of the files it generates. The
header comment block contains information about the specifications of the generating
filter and about the coder options that were selected at the time HDL code was
generated.
You can add your own comment lines to the header comment block by setting
UserComment to the desired string value. The code generator adds leading comment
characters that correspond to the target language. When you include newlines or line
feeds in the string, the coder 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:
-------------
-------------------------------------------------------------
-------
------------------------------------------------------------HDL Code Generation Options:
-------
Filter Specifications:
Module: Hlp
Generated by MATLAB(R) 7.11 and the Filter Design HDL Coder 2.7.
Generated on: 2010-08-31 13:32:16
This is a comment line.
This is a second line.
-------------------------------------------------------------
TargetLanguage: VHDL
Name: Hlp
UserComment: User data, length 47
Sampling Frequency
Response
Specification
Passband Edge
:
:
:
:
N/A (normalized frequency)
Lowpass
Fp,Fst,Ap,Ast
0.45
8-101