Download Filter Design HDL Coder User`s Guide
Transcript
5 Customization of HDL Filter Code Language Generated File File Name Example Package file, if required by the filter design dfilt_name_pkg.vhd Hq_pkg.vhd By default, the coder generates a single test bench file, containing test bench helper functions, data, and test bench code. You can split these elements into separate files, as described in “Splitting Test Bench Code and Data into Separate Files” on page 6-14. By default, the code for a filter's VHDL entity and architectures is written to a single VHDL source file. Alternatively, you can specify that the coder write the generated code for the entity and architectures to separate files. For example, if the filter name is Hd, the coder writes the VHDL code for the filter to files Hd_entity.vhd and Hd_arch.vhd (see “Splitting Entity and Architecture Code Into Separate Files” on page 5-8). Derivation of Entity Names The coder also uses the filter name to name the VHDL entity or Verilog module that represents the quantized filter in the HDL code. Assuming a filter name of Hd, the name of the filter entity or module in the HDL code is Hd. Set HDL File Name Extensions • “Set VHDL File Name Extension Via the Generate HDL Tool” on page 5-4 • “Set Verilog File Name Extension Via the Generate HDL Tool” on page 5-6 • “Set HDL File Name Extensions Via the Command Line” on page 5-8 Set VHDL File Name Extension Via the Generate HDL Tool By default, the filter HDL files are generated with a .vhd file extension when the Language is specified as VHDL. To change the VHDL file extension, 1 Select the Global Settings tab on the Generate HDL dialog box. 2 Select the General tab in the Additional settings pane. 3 Type the new file extension in the VHDL file extension field. Based on the following settings, the coder generates the filter file MyFIR.vhdl. 5-4