Top Up Prev Next Bottom Contents Index Search

15.4 Targets


Seven CG56 targets are included in the Ptolemy distribution. To choose one of these targets, with your mouse cursor in a schematic window, execute the Edit:edit-target command (or just type "T"). You will get a list of the available Targets in the CG56 domain. The default-CG56 target is the default value. When you click OK, the dialog box appears with the parameters of the target. You can edit these, or accept the defaults. The next time you run the schematic, the selected target will be used.

15.4.1 Default CG56 (default-CG56) target

The default target is used only for code generation. It has the following set of options:

host (STRING) Default =
The default is the empty string. Host machine to compile or assemble code on. All code is written to and compiled and run on the computer specified by this parameter. If a remote computer is specified here then rsh commands are used to place files on that computer and to invoke the compiler. You should verify that your .rhosts file is properly configured so that rsh will work.
directory (STRING) Default = $HOME/PTOLEMY_SYSTEMS
This is the directory to which all generated files will be written to.
file (STRING) Default =
The default is the empty string. This represents the prefix for file names for all generated files.
Looping Level Specifies if the loop scheduler should be used. Please refer to the section "default-CG" on page 13-2 for more details on this option. Refer to "Default SDF target" on page 5-65 and "The loop-SDF target" on page 5-67 for more details on loop scheduling.
display? (INT) Default = YES
If this flag is set to YES, then the generated code will be displayed on the screen.
compile? This is a dummy flag since the default target only generates code.
run? This is a dummy flag since the default target only generates code.
xMemMap (STRING) Default = 0-4095
Valid x memory address locations. Default is 0-4095, which means x:0 through x:4095 are valid memory addresses. Disjoint segments of memory can be specified by separating the contiguous ranges with spaces, e.g. "0-4095 5000-5500."
yMemMap (STRING) Default = 0-4095
Valid y memory address locations. Default is 0-4095, which means y:0 through y:4095 are valid memory addresses.
subroutines? (INT) Default = -1
Setting this parameter to N makes the target attempt to generate a subroutine instead of in-line code for a star if the number of repetitions of that star is greater than N (use N=0 to generate subroutines even for stars with just 1 repetition). Set "subroutines?" to -1 (or any other negative integer) to disable the feature.
show memory usage? (INT) Default = NO
If YES, then the target will report the actual amount of program, X data memory, and Y data memory used by the program in words.

15.4.2 CG56 Simulator (sim-CG56) target

This target is used for generating DSP56000 assembly code, assembling it, and running it on a Motorola DSP56000 simulator. For this to work properly, the Motorola 56000 assembler (asm56000) and the simulator (sim56000) must be in the user path. Otherwise a run on this target produces code only, and an error message will appear indicating the absence of the required programs in the user path. Input and output files specified in ReadFile and WriteFile stars are passed on to the simulator by an automatically generated universe.cmd file, which is sourced by the simulator.

The options for this target are mostly the same as the ones for default-CG56 above, except for the following:

compile? (INT) Default = YES
If this option is set to YES, then generated code is assembled using asm56000 program.
run? (INT) Default = YES
If YES, then the assembled code is run on the Motorola simulator sim56000.
Interactive Sim. (INT) Default = YES
If YES the simulator is run interactively (in which case one can add breakpoints, single step through code, etc.)

15.4.3 Ariel S-56X (S-56X) target

This target generates stand alone applications that will run on the Ariel S-56X DSP board. An optional graphical debugger, QDM, is available from the board designer, Mike Peck. This debugger is needed for some of the user I/O stars that are specific to this target.

The options for this target are mostly the same as the ones for default-CG56, except for the following:

monitor (STRING) Default =
The default is the empty string.This parameter specifies an optional monitor of debugger for use with the S-56X target. If the application has QDM stars, this parameter should be set to qdmterm_s56x -run.

15.4.4 CG56 Subroutine (sub-CG56) target

This target is used to generate subroutines that can be called from hand-written 56000 code. The options are identical to those of default-CG56 target.

15.4.5 Multiprocessor 56k Simulator (MultiSim-56000) target

This target generates code for a multiprocessor DSP system, where the processors communicate via shared memory. Unfortunately the multiprocessor simulator is not available outside of U.C. Berkeley.

The options for this target are mostly the same as the for CGMultiTarget, except for the following:

sMemMap (STRING) Default = 4096-4195
Specifies the shared memory map to use for the communication stars.


Top Up Prev Next Bottom Contents Index Search

Copyright © 1990-1997, University of California. All rights reserved.