MATLAB DESIGN HDL CODER RELEASE NOTES User's Guide Page 402

  • Download
  • Add to my manuals
  • Print
  • Page
    / 410
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 401
402 www.xilinx.com System Generator for DSP User Guide
UG640 (v 12.2) July 23, 2010
Chapter 5: System Generator Compilation Types
with it. New compilation targets can be created that extend the HDL Netlist target so that
additional tools can be applied to the resulting HDL netlist files.
This topic explains how you can create new compilation targets that extend the HDL
Netlist target in order to produce and configure FPGA hardware. More specifically, it
describes how to configure System Generator to produce a bitstream for a model, and how
to invoke various tools once the bitstream is created.
Defining New Compilation Targets
You can create new compilation targets to run tools that process the output files associated
with HDL Netlist compilation. A compilation target is defined by a minimum of two
MATLAB functions. The first function, xltarget.m, tells System Generator to support
the target (i.e., make it selectable from the System Generator block dialog box), and
specifies the MATLAB function where more information about the target can be found.
This function is called a "target info" function. A target info function defines information
about the target, and can take any name, provided it is specified correctly in the target's
xltarget.m function. In some cases, a target info function defines a post-generation
function. A post-generation function is responsible for invoking tools or scripts after
normal HDL netlist compilation is complete. These functions are discussed in more detail
in the topics that follow.
The xltarget Function
An xltarget function specifies one or more compilation targets that should be supported by
System Generator. It also provides entry points through which System Generator can find
out more information about these targets.
Note:
System Generator determines which compilation targets to support by searching the
plugins/compilation (and its subdirectories) of your System Generator software install tree for
xltarget.m files.
Although an xltarget function can specify multiple targets, it is not uncommon for each
compilation target to have its own xltarget function. The directories these functions are
saved in distinguish the targets. This means that each xltarget.m file must be saved in
its own subdirectory under the plugins/compilation directory.
An xltarget function returns a cell array of target information. Different elements in this
cell array define different compilation targets. The elements in this cell array are MATLAB
structs that define two parameters:
Page view 401

Comments to this Manuals

No comments