Motorola DSP Developer's Kit    

Importing Data to DSP Simulator

Pass data into and out of the DSP simulator using appropriate methods of the simulator classes or the alternative macros provided.

Writing to DSP Registers

Available macros:

Alternative C++ calls:

If the argument is of type unsigned long, data is written as an integer. If the argument is of type double, data is written using fractional representation. An error will be asserted if the register name is not valid.

The behavior of the system is undefined if a fractional value is stored in a register intended to hold only integer values, for example, the Program Counter (PC).

Writing to DSP Memory

Available macros:

Alternative C++ calls:

The memory address for a write is specified using a symbolic label from the associated assembly or C-code file or by specifying the memory map (X-,Y- or P-memory) and address offset. The latter is used when the write memory locations vary with the size of the MEX-file's input arguments (i.e., dynamically allocated in the DSP memory).

Data is written to the DSP memory in either an integer or fractional format, depending on the type of the array passed to the method.


 Running the Simulation Exporting Data to MATLAB