Return to previous page | Return to menu  

SCU DSP Simulator Instruction Manual

'94/08/25

Contents

1. Overview
2. Execution environment
3. Command List
4. Command explanation
5. Basic specifications
6. User's Guide

1. Overview

This simulator simulates DSP processing on MS-DOS or UNIX to improve DSP software development efficiency.

Each simulation function is executed in the command line format. The following is a list of supported functions.

  1. Program area and data area dump display and editing functions. File load and save function that supports the
  2. S format.
  3. Breakpoint setting and display function.
  4. Program execution and pause functions.
  5. Program single step execution function.
  6. Assemble and disassemble functions.
  7. All register display and setting functions.
  8. Input command history function.

2. Execution environment

(A) MS-DOS version

A model that can run MS-DOS and PC-DOS version 3.00 or higher. Memory can be executed with 640KB installed.

(B) UNIX version

SPARC station specification machine and HP machine.

3. Command list

[A] Assemble
[B] Setting / displaying breakpoints
[D] Memory dump display
[E] Rewrite memory
[F] Fill memory
[G] Run program
[H] History setting / display
[L] Reading file
[M] Move memory data
[Q] Program termination
[R] Register setting / display
[S] Program step execution
[U] Disassemble
[V] Development environment type setting
[W] Save memory file

4. Command explanation

A: Assemble

Input format:
A [Start address]
function:
Converts the input mnemonic from the specified address to a code and sets it. When finished, enter only a line break.

B: Setting and displaying breakpoints

input format:
B <address>
function:
Breakpoint setting.
Input format:
B
function:
Breakpoint setting information display.
input format:
B- [address] or BX [setting number]
Function:
Breakpoint cancellation.
Canceled when address or setting number is omitted.

D: Memory dump display

Input format:
D [P | Rn | M] [[Start address [End address]]
Function:
Memory dump display.
Specify “P” to specify the program area, “R0” to “R3” to specify the data area, and “M” to the external bus.
If the start address is omitted, it will be displayed after the last address displayed.

E: Memory rewrite

Input format:
E [P | Rn | M] <address> [Setting value]
function:
Rewrites memory.
Specify “P” to specify the program area, “R0” to “R3” to specify the data area, and “M” to the external bus.
If the set value is omitted, the address is displayed and data input is awaited. To advance the address, enter an empty number. To return, enter "^". To cancel, enter only ".".

F: Memory Fill

Input format:
F [P | Rn | M] <Start address> <End address> <Setting value>
function:
Rewrites the range from the start address to the end address with the set value.
Specify “P” to specify the program area, “R0” to “R3” to specify the data area, and “M” to the external bus.

G: Program execution

Input format:
G [Start address [End address]]
function:
Executes the program from the specified address. If the address is omitted, execution starts from the address specified in the PC register.
Enter CTRL-C to stop it during execution.

H: History setting / display

Input format:
H +
function:
Allow import to history buffer. (Default)
Input format:
H-
function:
Do not import into the history buffer.
Input format:
H @
function:
Clear history buffer.
Input format:
H [Number of display]
function: Displays the execution result immediately before
for the specified number of steps.
When the display number is omitted, it becomes 10 and the maximum is 512.
    

L: Read file

Input format:
L [P | Rn | M] [File name] [Transfer address]
function: Reads the
file into the memory area.
Specify “P” to specify the program area, “R0” to “R3” to specify the data area, and “M” to the external bus.
If the file name is omitted, the previous file name read with the L command is used.
If you specify a forwarding address, it will be read based on that address.

M: Move memory data
Input format:
M [P | Rn | M] <Start> <End> [P | Rn | M] <Destination>
function:
Moves the range from the start address to the end address to the transfer destination.
Specify “P” to specify the program area, “R0” to “R3” to specify the data area, and “M” to the external bus.
If the transfer destination program area is omitted, it is the same as the transfer source specification.

P: Change program size

Input format:
P [R | E]
function:
Adjusts the size for storing the program code.
If the parameter is omitted, the current setting status is displayed.
When "E" is specified, it is expanded to a maximum of 2048 instructions. When "R" is specified, it is returned to a maximum of 256 instructions.

Q: End of program

Input format:
Q
function:
Exits the simulator program.

R: Register setting / display

input format:
R [<register name | flag name> <setting value>]
Function:
Sets a value to the specified register or flag. If the parameter is omitted, all register values ​​are displayed.
PC TOP LOP CT0 CT1 Ct2 RX RY PH PL ACH ACLTN0 RA0 WA0 A1 can be specified as the register name, and PREP T1 T0 SZ C V E ES EX can be specified as the flag name.
Input format:
R @
function:
Sets all registers to 0.

S: Step execution of program

Input format:
S [Number of steps]
Function:
Executes instructions for the specified number of steps from the address indicated by the PC register.
If the parameter is omitted, only one step is executed.

U: Disassemble

input format:
U [start address [end address]]
function:
Disassembles the specified range.
If the start address is omitted, it will be displayed after the last address displayed.

V: Development environment type setting

Input format:
V [S | M]
function:
When “M” is specified for MODEL-M and “S” is specified for MODEL-S according to the specified development environment, assemble, disassemble, and execution-related processing are supported. . (Default is “S”) If the model specification is omitted, the currently selected model is displayed.

W: Save file in memory

Input format:
W [P | Rn | M] <Start address> <End address> <File name>
function:
Saves data from the specified start address to end address in a file.
Specify “P” to specify the program area, “R0” to “R3” to specify the data area, and “M” to the external bus.

^: Command history display

Input format:
^ [Number of display]
function:
The specified number of lines entered in the past are displayed. If the number of displays is omitted, the number is 20, and the maximum is 50.
To repeat the command, enter "!!". To repeat the command on the specified line, enter the line number after "!".

5. Basic specifications

    The numerical value when
  1. is entered is a hexadecimal number except for the command count specification (decimal number).
  2. When the file name used for reading and saving data files with the L and W commands ends with ".s" or ".mot", it is treated as a Motorola S format and address information is also processed at the same time. Will be. When entering
  3. commands in a batch, specify the file that describes the commands to be entered as a parameter at startup or use the format "<FILE" when accepting commands.
  4. When accessing the memory on the external bus, the address is in bytes. When specifying an internal address when entering a command, append "L" to the end of the address value to quadruple. Will be converted.
  5. D, S, and U commands can be displayed continuously by entering only the line feed key.

6. User's Guide

    When transferring data from the external memory to the inside when simulating
  1. DMA, input or transfer the data to the external bus memory of this simulator beforehand.
  2. The disassembly function of this simulator aligns the position according to the type of operation command, so it can be used as a guideline for optimization.
that's all
Return to previous page | Return to menu