Commands to obtain target information and change target characteristics.
MLDesigner uses a structure called a target to control the execution of a simulation, or to control code generation, compilation, and execution. If you issue no target commands, your target will have the name default-XXX, where XXX is replaced by the name of the current domain. Alternative targets for simulation can be used to specify different behavior, for example, to use a different scheduler or to analyze a schematic rather than running a simulation. For code generation, the target contains information about the target of compilation, and has methods for downloading code and starting execution.
returns the list of targets available for the current domain or the domain given by the optional argument.
Using the command
without argument name displays the target for the current system or current module, together with its parameters. Specifying an argument, changes the target to that one specified by the argument.
Target parameters may be queried or changed with the targetparam command. The syntax is
targetparam <name> [<value>]
MLDesigner can use target pragmas as a generalization of the attribute mechanism to inform the target of your wishes. The Dynamic Dataflow (DDF) domain uses pragmas to specify the number of firings of a primitive required in one iteration. The C Code Generation (CGC) domain uses pragmas to identify any parameters that you would like to change on the command line. Using command
pragma <block1> <block2> <name> <value>
you can set pragma name to value for block block2 in parent block1. The command
prints the default values of the pragmas for the target.