ADSP-21065L SHARC DSP Technical Reference, Revision

ADSP-21065L SHARC DSP Technical Reference, Revision

ADSP-21065L SHARC® DSP Technical Reference Revision 2.0, July 2003 Part Number 82-001903-01 Analog Devices, Inc. One Technology Way Norwood, Mass. 02062-9106 a Copyright Information ©2003 Analog Devices, Inc., ALL RIGHTS RESERVED. This document may not be reproduced in any form without prior, express written consent from Analog Devices, Inc. Printed in the USA. Disclaimer Analog Devices, Inc. reserves the right to change this product without prior notice. Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use; nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under the patent rights of Analog Devices, Inc. Trademark and Service Mark Notice The Analog Devices logo, the SHARC logo, EZ-ICE, and SHARC are registered trademarks of Analog Devices, Inc. VisualDSP++ is a trademark of Analog Devices, Inc. All other brand and product names are trademarks or service marks of their respective owners. CONTENTS PREFACE For Additional Information About Analog Products ...................... -xiii For Technical or Customer Support .............................................. -xiv What’s This Book About and Who’s It For? ................................... -xiv How to Use This Manual ............................................................. -xvi Related Documents .................................................................... -xviii Conventions of Notation .............................................................. -xix INSTRUCTION SET REFERENCE Instruction Summary ................................................................... A-2 Compute and Move/Modify Summary .................................... A-4 Program Flow Control Summary ............................................ A-6 Immediate Move Summary ..................................................... A-8 Miscellaneous Instructions Summary ...................................... A-9 Reference Notation Summary ............................................... A-11 Register Types Summary ....................................................... A-15 Memory Addressing Summary .............................................. A-18 Opcode Notation ....................................................................... A-19 Universal Register Codes ...................................................... A-24 ADSP-21065L SHARC DSP Technical Reference iii CONTENTS Group I Instructions (Compute & Move) .................................... A-28 Compute/dregÙDM/dregÙPM (Type 1) ........................... A-30 Compute (Type 2) ................................................................ A-32 Compute/uregÙDM|PM, register modify (Type 3) .............. A-33 Compute/dregÙDM|PM, immediate modify (Type 4) ......... A-35 Compute/uregÙureg (Type 5) ............................................. A-37 Immediate Shift/dregÙDM|PM (Type 6) ............................. A-39 Compute/modify (Type 7) .................................................... A-42 Group II Instructions (Program Flow Control) ............................ A-44 Direct Jump|Call (Type 8) ..................................................... A-45 Indirect Jump|Call / Compute (Type 9) ................................. A-48 Indirect Jump or Compute/dregÙDM (Type 10) ................. A-52 Return From Subroutine|Interrupt/Compute (Type 11) ......... A-55 Do Until Counter Expired (Type 12) ..................................... A-58 Do Until (Type 13) ............................................................... A-60 Group III Instructions (Immediate Move) ................................... A-62 UregÙDM|PM (direct addressing) (Type 14) ....................... A-63 UregÙDM|PM (indirect addressing) (Type 15) .................... A-65 Immediate dataÖDM|PM (Type 16) .................................... A-67 Immediate dataÖureg (Type 17) ........................................... A-69 Group IV Instructions (Miscellaneous) ........................................ A-70 System Register Bit Manipulation (Type 18) .......................... A-71 Register Modify/bit-reverse (Type 19) .................................... A-73 iv ADSP-21065L SHARC DSP Technical Reference CONTENTS Push|Pop Stacks/Flush Cache (Type 20) ................................ A-75 Nop (Type 21) ..................................................................... A-77 Idle (Type 22) ...................................................................... A-78 Idle16 (Type 23) ................................................................... A-79 Cjump/Rframe (Type 24) ..................................................... A-81 COMPUTE OPERATION REFERENCE Single-Function Operations .......................................................... B-2 ALU Operations ..................................................................... B-2 Rn = Rx + Ry ......................................................................... B-6 Rn = Rx – Ry ......................................................................... B-7 Rn = Rx + Ry + CI ................................................................. B-8 Rn = Rx – Ry + CI – 1 ............................................................ B-9 Rn = (Rx + Ry)/2 .................................................................. B-10 COMP(Rx, Ry) .................................................................... B-11 Rn = Rx + CI ....................................................................... B-12 Rn = Rx + CI – 1 .................................................................. B-13 Rn = Rx + 1 ......................................................................... B-14 Rn = Rx – 1 ......................................................................... B-15 Rn = –Rx ............................................................................. B-16 Rn = ABS Rx ........................................................................ B-17 Rn = PASS Rx ...................................................................... B-18 Rn = Rx AND Ry ................................................................. B-19 Rn = Rx OR Ry .................................................................... B-20 Rn = Rx XOR Ry ................................................................. B-21 ADSP-21065L SHARC DSP Technical Reference v CONTENTS Rn = NOT Rx ...................................................................... B-22 Rn = MIN(Rx, Ry) ................................................................ B-23 Rn = MAX(Rx, Ry) ............................................................... B-24 Rn = CLIP Rx BY Ry ............................................................ B-25 Fn = Fx + Fy ......................................................................... B-26 Fn = Fx – Fy ......................................................................... B-27 Fn = ABS (Fx + Fy) ............................................................... B-28 Fn = ABS (Fx – Fy) ............................................................... B-29 Fn = (Fx + Fy)/2 ................................................................... B-30 COMP(Fx, Fy) ..................................................................... B-31 Fn = –Fx ............................................................................... B-32 Fn = ABS Fx ......................................................................... B-33 Fn = PASS Fx ........................................................................ B-34 Fn = RND Fx ....................................................................... B-35 Fn = SCALB Fx BY Ry .......................................................... B-36 Rn = MANT Fx .................................................................... B-37 Rn = LOGB Fx ..................................................................... B-38 Rn = FIX Fx Rn = TRUNC Fx Rn = FIX Fx BY Ry Rn = TRUNC Fx BY Ry ..................................................... B-39 Fn = FLOAT Rx BY Ry Fn = FLOAT Rx ................................................................. B-41 Fn = RECIPS Fx ................................................................... B-42 Fn = RSQRTS Fx .................................................................. B-44 vi ADSP-21065L SHARC DSP Technical Reference CONTENTS Fn = Fx COPYSIGN Fy ....................................................... B-46 Fn = MIN(Fx, Fy) ................................................................ B-47 Fn = MAX(Fx, Fy)................................................................ B-48 Fn = CLIP Fx BY Fy ............................................................. B-49 Multiplier Operations ................................................................ B-50 Rn = Rx * Ry mod2 MRF = Rx * Ry mod2 MRB = Rx * Ry mod2 ....................................................... B-54 Rn = MRF + Rx * Ry mod2 Rn = MRB + Rx * Ry mod2 MRF = MRF + Rx * Ry mod2 MRB = MRB + Rx * Ry mod2 .......................................... B-55 Rn = MRF – Rx * Ry mod2 Rn = MRB – Rx * Ry mod2 MRF = MRF – Rx * Ry mod2 MRB = MRB – Rx * Ry mod2 .......................................... B-56 Rn = SAT MRF mod1 Rn = SAT MRB mod1 MRF = SAT MRF mod1 MRB = SAT MRB mod1 ................................................... B-57 Rn = RND MRF mod1 Rn = RND MRB mod1 MRF = RND MRF mod1 MRB = RND MRB mod1 .................................................. B-58 MRF = 0 MRB = 0 ......................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    508 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us