Home

SCU DSP Assembler User`s Manual Addendum

image

Contents

1. Specified as Labeled as Definition Specified as Labeled as Definition PR P Pause reset V V Overflow EP e Execute pause E E End interrupt TO T Transfer 0 DO DMA flag ES s Execute step S S Sign EX x Execution control Z Z Zero LE L PC load enable C C Carry The SATURN SCU DSP Simulator 3 T Toav a Manil AdAdAan darn Note that version 2 11 of the simulator contains a bug in the implementation of the V flag see Bugs below S lt n gt Execute the specified number of instructions the default is 1 U lt prog addrl gt lt prog addr2 gt Disassemble unassemble the specified range of program memory If lt prog addr2 gt is omitted it defaults to lt prog addr1 gt Oxf The disassembled data is formatted so that the so called Opera tion Commands instructions controlling the ALU the X bus the Y bus and the D1 bus are aligned in columns according to which subcomponent of the DSP they use This makes it easier to see which subcomponents are idle at any given time which in turn makes it easier to increase parallelism V VM VS V displays current emulation mode Model M or Model S VM sets midbox Model M emulation mode VS sets small box Model S emulation mode the default W lt ram gt lt addrl gt lt addr2 gt lt file gt Write the specified range of memory to a binary or S record file File names having the extensions ao s or mot will be written as S record files Files having o
2. B deletes all breakpoints BX lt n gt deletes the breakpoint that occupies the specified position in the list of breakpoints If the parameter is omitted BX is the same as B D lt ram gt lt addrl gt lt addr2 gt Dump memory from lt addr1 gt through lt addr2 gt The lt ram gt parameter specifies the type of memory to be dumped Substitute p for program RAM m for external RAM or r0 r1 r2 or r3 for one of the DSP s four banks of data RAM If lt ram gt is omitted it defaults to the most recently referenced memory area If lt addr2 gt is omitted it defaults to lt addr1 gt 0x3f for program or data memory and lt addr1 gt Oxff for external memory If all of the parameters are omitted the next 64 32 bit words are displayed E lt ram gt lt addrl gt lt value gt Enter one or more 32 bit numbers into memory The lt ram gt parameter specifies the type of memory to use Substitute p for program RAM m for external RAM or rO r1 r2 or r3 for one of the DSP s four banks of data RAM If lt ram gt is omitted it defaults to the most recently referenced memory area If lt value gt is omitted then the simulator enters a command mode in which a series of values may be entered into consecutive memory addresses When in this mode the simulator prompts with an address and accepts one of the following commands lt value gt Store the value to the current address and go to the next address Go to
3. result from applications based on the examples describe herein It is possible that this document may contain reference to or information about SEGA products development hardware software or services that are not provided in countries other than Japan Such references information must not be construed to mean that SEGA intends to provide such SEGA products or services in countries other than Japan Any reference of a SEGA licensed prod uct program in this document is not intended to state or simply that you can use only SEGA s licensed products programs Any functionally equivalent hardware software can be used instead SEGA will not be held responsible for any damage to the user that may result from accidents or any other reasons during operation of the user s equipment or programs according to this document NOTE A reader s comment correction form is provided with this document Please address comments to SEGA of America Inc Developer Technical Support att Evelyn Merritt 150 Shoreline Drive Redwood City CA 94065 SEGA may use or distribute whatever information you supply in any way it believes appropriate without incurring any obligation to you 11 2 94 002 SEGA SEGA OF AMERICA INC Consumer Products Division The SATURN SCU DSP Simulator User s Manual Addendum Doc ST 240 B SP1 052295 1994 95 SEGA All Rights Reserved READER CORRECTION COMMENT SHEET Keep us updated If you
4. should come across any incorrect or outdated information while reading through the attached document or come up with any questions or comments please let us know so that we can make the required changes in subsequent revisions Simply fill out all information below and return this form to the Developer Technical Support Manager at the address below Please make more copies of this form if more space is needed Thank you General Information Your Name Phone Document number ST 240 B SP1 052295 Date Document name The SATURN SCU DSP Simulator User s Manual Addendum Corrections Questions comments Where to send your corrections 415 802 1717 Mail SEGA OF AMERICA Attn Evelyn Merritt Attn Evelyn Merritt Developer Technical Support Developer Technical Support 150 Shoreline Dr Redwood City CA 94065 The SATURN SCU DSPSimulator User s ManualAddendum by Dennis Caswell 5 17 95 Introduction The DSP simulator dspsim exe is a simple command line oriented software emulator which makes it possible to load execute and debug programs written for the DSP that is a part of the SATURN System Control Unit SCU Types of Memory Supported by the Simulator The DSP simulator emulates the two types of memory found within the DSP itself program RAM and the four banks of data RAM and it also simulates a 256 megabyte external memory space which can be used as a source or destination for DMA transfers performed by a DSP
5. the next address without altering the contents of the current address 4 Back up to the previous address without altering the contents of the current address Fxit the data entry mode and return to the simulator s main command prompt lt enter gt Same as F lt ram gt lt addrl gt lt addr2 gt lt value gt Fill a range of memory with a single 32 bit value The lt ram gt parameter specifies the type of memory to be filled Substitute p for program RAM m for external RAM or r0 r1 r2 or r3 for one of the DSP s four banks of data RAM If lt ram gt is omitted it defaults to the most recently referenced memory area G lt prog addrl gt lt prog addr2 gt Start executing instructions at the specified address in program memory If a second address is specified execution terminates at that address H lt n gt H H HE H lt n gt displays a history of register values extending back for the specified number of instruc tions The default is 10 H enables the history mechanism the default H disables the history mechanism H clears the history buffer L lt ram gt lt file gt lt addr gt at Load a binary or S record file File names having the extensions s or mot are presumed to be S record files Files having other extensions are presumed to be binary files The lt ram gt parameter specifies the type of memory to be loaded Substitute p for program RAM m for exter
6. 1 M 8o0rM P 1 1 M 2L For what it s worth this notation can be used with memory data parameters as well Commands and parameters may be typed in either upper or lower case You can create a batch file of simulator commands that will be executed when the simulator is launched Create a text file containing one simulator command per line then invoke the simulator with a command of the form dspsim batchfil Bugs Version 2 11 of the simulator contains a bug in the implementation of the V flag which is used to detect signed arithmetic overflows caused by the ADD AD2 and SUB instructions In the actual DSP the V flag is set when addition or subtraction results in a signed arithmetic overflow e g adding two positive numbers and getting a negative result If there is no overflow the V flag is cleared In the simulator the V flag is set whenever the C flag is set as a result of addition or subtraction and it is never cleared To clear it you must issue the command r v 0 The SATURN SCU DSP Simulator 5 VTanvla Manual Addandisnn
7. General Notice When using this document keep the following in mind 1 This document is confidential By accepting this document you acknowledge that you are bound by the terms set forth in the non disclosure and confidentiality agreement signed separately and in the possession of SEGA If you have not signed such a non disclosure agreement please contact SEGA immediately and return this document to SEGA This document may include technical inaccuracies or typographical errors Changes are periodi cally made to the information herein these changes will be incorporated in new versions of the document SEGA may make improvements and or changes in the product s and or the program s described in this document at any time No one is permitted to reproduce or duplicate in any form the whole or part of this document without SEGA S written permission Request for copies of this document and for technical information about SEGA products must be made to your authorized SEGA Technical Services representative No license is granted by implication or otherwise under any patents copyrights trademarks or other intellectual property rights of SEGA Enterprises Ltd SEGA of America Inc or any third party Software circuitry and other examples described herein are meant merely to indicate the character istics and performance of SEGA s products SEGA assumes no responsibility for any intellectual property claims or other problems that may
8. nal RAM or r0 rl r2 or r3 for one of the DSP s four banks of data RAM When loading an S record file the lt addr gt parameter is added to the addresses contained in the S record file M lt raml gt lt addrl gt lt addr2 gt lt ram2 gt lt addr3 gt Move a range of memory to the specified address The lt ram1 gt and lt ram2 gt parameters specify the types of memory to be read and written Substitute p for program RAM m for external RAM or r0 rl r2 or r3 for one of the DSP s four banks of data RAM If lt ram2 gt is omitted it defaults to lt ram1 gt Overlapping source and destination ranges are handled correctly P PE PR P displays current program size setting PE sets size of simulated program memory to 2048 32 bit words PR sets size of program memory to 256 32 bit words the default Q Quit to DOS no confirmation R R R lt reg gt lt flag gt lt value gt R display the contents of all of the registers and processor flags RG sets all registers and flags to zero R lt reg gt lt flag gt lt value gt sets the specified register or processor flag to the specified value To set one of the registers substitute one of the following for the lt reg gt parameter PC TP LP CTO CT1 CT2 CT3 TN RA WA RX RY PH PL ACH or ACL The following table shows how to specify the various processor flags along with the symbol used to label each flag in the simulator s register display
9. program It is not clear how this simulated memory is actually implemented or what would happen if you tried to use all of it Addresses in the DSP s internal memory are 32 bit word addresses while addresses in external memory are byte addresses Nonetheless the simulator will only access external memory in 32 bit chunks that are aligned on 32 bit boundaries so all external memory addresses used in commands to the simulator should be divisible by 4 Command Summary Mini assembler Breakpoints Dump memory Enter one or more values into memory Fill a range of memory with a specified value Go Execution history Load a binary or S record file Move memory Set program memory size Quit Display and set registers Single step Disassemble unassemble Write a binary or S record file Command history Repeat last command Repeat specified command Display on line command summary YES MC OADAOVEZOTONMMU gt The SATURN SCU DSP Simulator 1 TVTanavla Manial A ddan diim Command Descriptions A lt prog addr gt Activate the mini assembler storing instructions starting at the specified address The assembler accepts all DSP mnemonics but it does not accept labels assembler directives or expressions Exit the mini assembler by entering a blank line B lt prog addr gt B B BX lt n gt B lt prog addr gt sets an execution breakpoint at the specified address in program memory B lists all current breakpoints
10. ther extensions will be written as binary files The lt ram gt parameter specifies the type of memory to be written Substitute p for program RAM m for external RAM orr0 r1 r2 or r3 for one of the DSP s four banks of data RAM The S record files produced by this command are UNIX flavored i e they contain no carriage returns only linefeeds so you may wish to convert them with a utility such as unix2dos exe lt n gt Display the last n entries in the command history default is 20 The command history buffer holds the most recent 50 commands iri Repeat the last command lt n gt Repeat the nth command in the command history Display an on line command summary lt enter gt If the last command was S D or U with or without parameters then pressing lt enter gt is equiva lent to typing S D or U without parameters i e it executes the next instruction or it dumps or disassembles the next chunk of memory Otherwise it does nothing Notes Memory addresses and values to be stored in memory must be expressed in hexadecimal Other numerical parameters must be expressed in decimal Any address parameter may be appended with the letter L which causes it to be multiplied by four This is intended as a convenience in addressing external memory For example to move the second 32 bit word word 1 of program memory to the third 32 bit word bytes 8 through 11 of external memory you could say eitherM P 1

Download Pdf Manuals

image

Related Search

Related Contents

User Manual for  Betriebsanleitung Speisentransportwagen  Operation and Service Manual for HERMetic Sampler A.2 ≈ 0.5 liter  特定保守管理医療機器 スタッカート 人工心肺装置 S5  Ferris Industries HC36KAV13E User's Manual  Xilinx XST User Guide  manual primeros pasos tda  14120A - Herbalife  SIS7040 - BRELECT  

Copyright © All rights reserved.
Failed to retrieve file