|
Creating the Task |
Top Previous Next |
|
You start by creating an FCD file whose name is derived from the name of your model by appending _cw.fcd.
When you click Generate, System Generator compiles the Simulink model into a number of HDL files and netlists. You then need to synthesize the task produced by System Generator to create a netlist.
You then include this netlist (and all other netlists produced by System Generator) in the FCD file of your task along with the Diamond package file which 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 *.ngc to gather all the netlists produced by System Generator.
PACKAGE "addone_cw_pkg.vhd" FILE "netlist\addone_cw.ngc" FILE "netlist\*.ngc"
Some versions of ISE produce netlists files with an .edn extension; you can access these as follows:
FILE "netlist\*.edn"
Finally, create the package file for your task with a name derived from the name of your model by appending _cw_pkg.vhd. |