HARDWARE ManualSCU User's Manual
Back | ■

SCU DSP Simulator Instruction Manual

'94 / 08/25

table of 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 in order to improve the efficiency of DSP software development.

Each simulation function is executed in command line format. Below is a list of supported features.

  1. Program area and data area dump display and editing functions.
  2. File load and save function that supports S format.
  3. Breakpoint setting and display function.
  4. Program execution and pause functions.
  5. Single-step execution function of the program.
  6. Assemble and disassemble function.
  7. Display and setting function of all registers.
  8. Input command history function.

2. Execution environment

(A) MS-DOS version

Models that operate MS-DOS and PC-DOS versions 3.00 and above. The memory can be executed with 640KB mounted.

(B) UNIX version

Machines with SPARC station specifications and HP machines.

3. 3. Command list

[A] Assemble
[B] Breakpoint setting / display
[D] Memory dump display
[E] Memory rewriting
[F] Memory fill
[G] Program execution
[H] History setting / display
[L] Read file
[M] Move memory data
[Q] End of program
[R] Register setting / display
[S] Program step execution
[U] Disassemble
[V] Development environment type setting
[W] Save file in memory

4. Command explanation

A: Assemble

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

B: Breakpoint setting / display

Input format:
B <address>
function:
Breakpoint settings.
Input format:
B
function:
Display breakpoint setting information.
Input format:
B- [Address] or BX [Setting number]
function:
Breakpoint cancellation.
If the address or setting number is omitted, all are canceled.

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 specify the external bus.
If the start address is omitted, the address next to the previously displayed address is displayed.

E: Memory rewriting

Input format:
E [P | Rn | M] <Address> [Set value]
function:
Rewrite the memory.
Specify "P" to specify the program area, "R0" to "R3" to specify the data area, and "M" to specify the external bus.
If the set value is omitted, the address is displayed and data input is awaited. Enter blank to advance the address, enter "^" to return, and enter only "." To cancel.

F: Memory fill

Input format:
F [P | Rn | M] <Start address> <End address> <Set value>
function:
Rewrite 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 specify the external bus.

G: Program execution

Input format:
G [Start address [End address]]
function:
The program will be executed from the specified address. If the address is omitted, the file is executed from the address specified in the PC register.
Enter CTRL-C to stop it while it is running.

H: History setting / display

Input format:
H +
function:
Permission to import to the history buffer. (Default)
Input format:
H-
function:
Prohibition of importing to the history buffer.
Input format:
H @
function:
Clear history buffer.
Input format:
H [Number of displays]
function:
Displays the last execution result for the specified number of steps.
If the number displayed is omitted, it will be 10, and the maximum is 512.

L: Read file

Input format:
L [P | Rn | M] [File name] [Transfer address]
function:
Load the file into the memory area.
Specify "P" to specify the program area, "R0" to "R3" to specify the data area, and "M" to specify the external bus.
If the file name is omitted, the file name read last time with the L command is used.
If a transfer address is specified, the address is used as the reference for reading.

M: Move memory data

Input format:
M [P | Rn | M] <Start> <End> [P | Rn | M] <Forwarding 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 specify the external bus.
If the program area of the transfer destination is omitted, it will be the same as the specification of the transfer source.

P: Change program size

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

Q: End of program

Input format:
Q
function:
Exit the simulator program.

R: Register setting / display

Input format:
R [<register name | flag name> <set value>]
function:
Sets a value to the specified register or flag. If the parameter is omitted, the values of all registers are displayed.
You can specify PC TOP LOP CT0 CT1 Ct2 RX RY PH PL ACH ACLTN0 RA0 WA0 A1 for the register name and PR EP T1 T0 SZCVE ES EX for the flag name.
Input format:
R @
function:
Set all registers to 0.

S: Program step execution

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

U: Disassemble

Input format:
U [Start address [End address]]
function:
Displays the disassembled display of the specified range.
If the start address is omitted, the address next to the previously displayed address is displayed.

V: Development environment type setting

Input format:
V [S | M]
function:
If you specify "M" for MODEL-M and "S" 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: File storage in memory

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

^: Command history display

Input format:
^ [Number of displays]
function:
Displays the specified number of previously entered lines. If the number of displays is omitted, it will be 20 and the maximum is 50.
Enter "!!" to repeat the command, and enter the line number after "!" To repeat the command on the specified line.

5. basic specifications

  1. The numerical value at the time of input is a hexadecimal number except for the number of commands specified (decimal number).
  2. If the end of the file name used to read and save the data file with the L and W commands is ".s" or ".mot", it is treated as Motorola S format and the address information is also processed at the same time.
  3. If you want to input commands all at once, specify the file that describes the commands to be input as parameters at startup, or specify them in the format of "<FILE" when receiving commands.
  4. When accessing the memory of the external bus, the address is in bytes, so if you specify the internal address when entering the command, add "L" at the end of the address value to convert it to 4 times. ..
  5. With the D, S, and U commands, if you want to display continuously, just enter the line feed key to display.

6. User's guide

  1. When transferring data from the external memory to the inside by simulating DMA, input or transfer the data to the external bus memory of this simulator in advance.
  2. The disassemble function of this simulator aligns the positions according to the type of operation command, so it can be used as a guide for optimization.
that's all
Back | ■
HARDWARE ManualSCU User's Manual