Driving pins, Creating the task, System generator configuration – Sundance SMT6040 User Manual
Page 14: Smt6040, Sundance simulink toolbox

Sundance Multiprocessor Technology Limited
Form : QCF32
SMT6040
“Sundance Simulink Toolbox”
Date : 6 July 2006
index
represents the channel number, the only variable part of the name. Both input and
output are numbered from zero and the channel numbers must be continuous.
You must still provide a package file that declares the task’s component; this declaration
must use a record type — it is not looked at by System Generator.
You shouldn’t specify any IOB Location Constraints when using System
Generator.
2.2.3 Driving pins
A System Generator task can connect to the pins of the FPGA. Gateways In and Out are used
to implement the I/O buffers. The pin location, the electric standard and any other constraint
must be specified in a UCF file accompanying the task.
2.2.4 Creating the task
When you hit the "Generate" button System Generator compiles the Simulink model into a
number of HDL files and netlists.
These files should be added to the FCD file of your task along with the Diamond package file
that you must create yourself.
The following snippet shows an example of a System Generator task called 'addone_cw'. We
have pre-synthesized the HDL files produced by System Generator to obtain the netlist
'addone_cw.ngc'. Note that we used the syntax '*.edn' to gather all the netlists produced by
System Generator.
PACKAGE "addone_cw_pkg.vhd"
FILE "netlist\addone_cw.ngc"
FILE "netlist\*.edn"
2.2.5 System Generator configuration
System Generator is configured as in
(this is an example, please change the
configuration according to your HW).
• Compilation must be set to 'HDL netlist'.
• Part must be set to the FPGA type you are targeting.
• Synthesis Tool must be set to XST.
• Hardware Description Language must be set to VHDL.
• FPGA Clock Period (ns) must be the frequency at which the task will be clocked. This
setting is overwritten by Diamond with the frequency of the clock domain to which
the task belongs.
• Clock Pin Location must be left unspecified. Diamond connects the clock to the task
according to the clock domain specified in the configuration file.
SMT6040 - “Sundance Simulink Toolbox”
Last Edited: 08/01/2010 15.42
Page 14 of 53