没有合适的资源?快使用搜索试试~ 我知道了~
Introduction to the MIPS64_IB
需积分: 0 0 下载量 177 浏览量
2012-09-29
12:54:36
上传
评论
收藏 892KB PDF 举报
温馨提示
试读
96页
MIPS® Architecture For Programmers Volume I-B: Introduction to the microMIPS64® Architecture
资源详情
资源评论
资源推荐
Document Number: MD00743
Revision 3.02
March 21, 2011
MIPS Technologies, Inc.
955 East Arques Avenue
Sunnyvale, CA 94085-4521
Copyright © 2001-2003,2005,2008-2011 MIPS Technologies Inc. All rights reserved.
MIPS® Architecture For Programmers
Volume I-B: Introduction to the
microMIPS64® Architecture
MIPS® Architecture For Programmers Volume I-B: Introduction to the microMIPS64® Architecture, Revision 3.02
Copyright © 2001-2003,2005,2008-2011 MIPS Technologies Inc. All rights reserved.
Template: nB1.03, Built with tags: 2B ARCH FPU_PS FPU_PSandARCH MIPS64
Copyright © 2001-2003,2005,2008-2011 MIPS Technologies, Inc. All rights reserved.
Unpublished rights (if any) reserved under the copyright laws of the United States of America and other countries.
This document contains information that is proprietary to MIPS Technologies, Inc. ("MIPS Technologies"). Any copying, reproducing, modifying or use of
this information (in whole or in part) that is not expressly permitted in writing by MIPS Technologies or an authorized third party is strictly prohibited. At a
minimum, this information is protected under unfair competition and copyright laws. Violations thereof may result in criminal penalties and fines.
Any document provided in source format (i.e., in a modifiable form such as in FrameMaker or Microsoft Word format) is subject to use and distribution
restrictions that are independent of and supplemental to any and all confidentiality restrictions. UNDER NO CIRCUMSTANCES MAY A DOCUMENT
PROVIDED IN SOURCE FORMAT BE DISTRIBUTED TO A THIRD PARTY IN SOURCE FORMAT WITHOUT THE EXPRESS WRITTEN
PERMISSION OF MIPS TECHNOLOGIES, INC.
MIPS Technologies reserves the right to change the information contained in this document to improve function, design or otherwise. MIPS Technologies does
not assume any liability arising out of the application or use of this information, or of any error or omission in such information. Any warranties, whether
express, statutory, implied or otherwise, including but not limited to the implied warranties of merchantability or fitness for a particular purpose, are excluded.
Except as expressly provided in any written license agreement from MIPS Technologies or an authorized third party, the furnishing of this document does not
give recipient any license to any intellectual property rights, including any patent rights, that cover the information in this document.
The information contained in this document shall not be exported, reexported, transferred, or released, directly or indirectly, in violation of the law of any
country or international law, regulation, treaty, Executive Order, statute, amendments or supplements thereto. Should a conflict arise regarding the export,
reexport, transfer, or release of the information contained in this document, the laws of the United States of America shall be the governing law.
The information contained in this document constitutes one or more of the following: commercial computer software, commercial computer software
documentation or other commercial items. If the user of this information, or any related documentation of any kind, including related technical data or manuals,
is an agency, department, or other entity of the United States government ("Government"), the use, duplication, reproduction, release, modification, disclosure,
or transfer of this information, or any related documentation of any kind, is restricted in accordance with Federal Acquisition Regulation 12.212 for civilian
agencies and Defense Federal Acquisition Regulation Supplement 227.7202 for military agencies. The use of this information by the Government is further
restricted in accordance with the terms of the license agreement(s) and/or applicable contract terms and conditions covering this information from MIPS
Technologies or an authorized third party.
MIPS, MIPS I, MIPS II, MIPS III, MIPS IV, MIPS V, MIPS-3D, MIPS16, MIPS16e, MIPS32, MIPS64, MIPS-Based, MIPSsim, MIPSpro, MIPS Technologies
logo, MIPS-VERIFIED, MIPS-VERIFIED logo, 4K, 4Kc, 4Km, 4Kp, 4KE, 4KEc, 4KEm, 4KEp, 4KS, 4KSc, 4KSd, M4K, M14K, 5K, 5Kc, 5Kf, 24K, 24Kc,
24Kf, 24KE, 24KEc, 24KEf, 34K, 34Kc, 34Kf, 74K, 74Kc, 74Kf, 1004K, 1004Kc, 1004Kf, R3000, R4000, R5000, ASMACRO, Atlas, "At the core of the
user experience.", BusBridge, Bus Navigator, CLAM, CorExtend, CoreFPGA, CoreLV, EC, FPGA View, FS2, FS2 FIRST SILICON SOLUTIONS logo, FS2
NAVIGATOR, HyperDebug, HyperJTAG, JALGO, Logic Navigator, Malta, MDMX, MED, MGB, microMIPS, OCI, PDtrace, the Pipeline, Pro Series, SEAD,
SEAD-2, SmartMIPS, SOC-it, System Navigator, and YAMON are trademarks or registered trademarks of MIPS Technologies, Inc. in the United States and
other countries.
All other trademarks referred to herein are the property of their respective owners.
MIPS® Architecture For Programmers Volume I-B: Introduction to the microMIPS64® Architecture, Revision 3.02 3
Copyright © 2001-2003,2005,2008-2011 MIPS Technologies Inc. All rights reserved.
Contents
Chapter 1: About This Book ..................................................................................................................9
1.1: Typographical Conventions......................................................................................................................... 9
1.1.1: Italic Text............................................................................................................................................ 9
1.1.2: Bold Text.......................................................................................................................................... 10
1.1.3: Courier Text ..................................................................................................................................... 10
1.2: UNPREDICTABLE and UNDEFINED ....................................................................................................... 10
1.2.1: UNPREDICTABLE........................................................................................................................... 10
1.2.2: UNDEFINED .................................................................................................................................... 11
1.2.3: UNSTABLE ...................................................................................................................................... 11
1.3: Special Symbols in Pseudocode Notation................................................................................................. 11
1.4: For More Information................................................................................................................................. 14
Chapter 2: The MIPS Architecture: An Introduction..........................................................................15
2.1: MIPS Instruction Set Overview.................................................................................................................. 15
2.1.1: Historical Perspective....................................................................................................................... 15
2.1.2: Architectural Evolution ..................................................................................................................... 16
2.1.3: Architectural Changes Relative to the MIPS I through MIPS V Architectures.................................. 19
2.2: Compliance and Subsetting....................................................................................................................... 19
2.3: Components of the MIPS Architecture ...................................................................................................... 21
2.3.1: MIPS Instruction Set Architecture (ISA)........................................................................................... 21
2.3.2: MIPS Privileged Resource Architecture (PRA) ................................................................................ 22
2.3.3: MIPS Application Specific Extensions (ASEs) ................................................................................. 22
2.3.4: MIPS User Defined Instructions (UDIs)............................................................................................ 22
2.4: Architecture Versus Implementation.......................................................................................................... 22
2.5: Relationship between the MIPSr3 Architectures ....................................................................................... 22
2.6: Pipeline Architecture.................................................................................................................................. 24
2.6.1: Pipeline Stages and Execution Rates.............................................................................................. 24
2.6.2: Parallel Pipeline ............................................................................................................................... 25
2.6.3: Superpipeline ................................................................................................................................... 25
2.6.4: Superscalar Pipeline ........................................................................................................................ 26
2.7: Load/Store Architecture............................................................................................................................. 26
2.8: Programming Model .................................................................................................................................. 27
2.8.1: CPU Data Formats........................................................................................................................... 27
2.8.2: FPU Data Formats ........................................................................................................................... 27
2.8.3: Coprocessors (CP0-CP3) ................................................................................................................ 28
2.8.4: CPU Registers ................................................................................................................................. 28
2.8.5: FPU Registers.................................................................................................................................. 30
2.8.6: Byte Ordering and Endianness ........................................................................................................ 35
2.8.7: Memory Access Types..................................................................................................................... 37
2.8.8: Implementation-Specific Access Types ........................................................................................... 38
2.8.9: Cacheability and Coherency Attributes and Access Types.............................................................. 38
2.8.10: Mixing Access Types ..................................................................................................................... 38
2.8.11: Instruction Fetches......................................................................................................................... 39
Chapter 3: Application Specific Extensions ......................................................................................45
3.1: Description of ASEs................................................................................................................................... 45
3.2: List of Application Specific Instructions ..................................................................................................... 46
4 MIPS® Architecture For Programmers Volume I-B: Introduction to the microMIPS64® Architecture, Revision 3.02
Copyright © 2001-2003,2005,2008-2011 MIPS Technologies Inc. All rights reserved.
3.2.1: The MDMX™ Application Specific Extension to the microMIPS64 Architectures............................ 46
3.2.2: The MIPS-3D® Application Specific Extension to the microMIPS Architecture............................... 46
3.2.3: The SmartMIPS® Application Specific Extension to the microMIPS32 Architecture ....................... 46
3.2.4: The MIPS® DSP Application Specific Extension to the MIPS Architecture ..................................... 46
3.2.5: The MIPS® MT Application Specific Extension to the MIPS Architecture ....................................... 46
3.2.6: The MIPS® MCU Application Specific Extension to the MIPS Architecture .................................... 47
Chapter 4: Overview of the CPU Instruction Set ...............................................................................49
4.1: CPU Instructions, Grouped By Function.................................................................................................... 49
4.1.1: CPU Load and Store Instructions..................................................................................................... 49
4.1.2: Computational Instructions............................................................................................................... 53
4.1.3: Jump and Branch Instructions.......................................................................................................... 58
4.1.4: Miscellaneous Instructions............................................................................................................... 61
4.1.5: Coprocessor Instructions ................................................................................................................. 64
4.1.6: CPU Instruction Restrictions ............................................................................................................ 65
Chapter 5: Overview of the FPU Instruction Set................................................................................67
5.1: Binary Compatibility................................................................................................................................... 67
5.2: Enabling the Floating Point Coprocessor .................................................................................................. 68
5.3: IEEE Standard 754.................................................................................................................................... 68
5.4: FPU Data Types........................................................................................................................................ 68
5.4.1: Floating Point Formats..................................................................................................................... 68
5.4.2: Fixed Point Formats......................................................................................................................... 72
5.5: Floating Point Register Types ................................................................................................................... 73
5.5.1: FPU Register Models....................................................................................................................... 73
5.5.2: Binary Data Transfers (32-Bit and 64-Bit)........................................................................................ 73
5.5.3: FPRs and Formatted Operand Layout............................................................................................. 74
5.6: Floating Point Control Registers (FCRs) ................................................................................................... 75
5.6.1: Floating Point Implementation Register (FIR, CP1 Control Register 0)........................................... 75
5.6.2: Floating Point Control and Status Register (FCSR, CP1 Control Register 31)................................ 77
5.6.3: Floating Point Condition Codes Register (FCCR, CP1 Control Register 25)................................... 80
5.6.4: Floating Point Exceptions Register (FEXR, CP1 Control Register 26) ............................................ 80
5.6.5: Floating Point Enables Register (FENR, CP1 Control Register 28)................................................. 81
5.7: Formats of Values Used in FP Registers .................................................................................................. 82
5.8: FPU Exceptions......................................................................................................................................... 82
5.8.1: Exception Conditions ....................................................................................................................... 83
5.9: FPU Instructions........................................................................................................................................ 85
5.9.1: Data Transfer Instructions................................................................................................................ 86
5.9.2: Arithmetic Instructions...................................................................................................................... 87
5.9.3: Conversion Instructions.................................................................................................................... 89
5.9.4: Formatted Operand-Value Move Instructions .................................................................................. 90
5.9.5: Conditional Branch Instructions ....................................................................................................... 91
5.9.6: Miscellaneous Instructions............................................................................................................... 91
5.10: Valid Operands for FPU Instructions....................................................................................................... 92
5.11: FPU Instruction Formats.......................................................................................................................... 94
Appendix B: Revision History .............................................................................................................95
MIPS® Architecture For Programmers Volume I-B: Introduction to the microMIPS64® Architecture, Revision 3.02 5
Copyright © 2001-2003,2005,2008-2011 MIPS Technologies Inc. All rights reserved.
Figures
Figure 2-1: MIPS Architectures............................................................................................................................... 16
Figure 2-2: Relationship of the Binary Representations of MIPSr3 Architectures................................................... 23
Figure 2-3: Relationships of the Assembler Source Code Representations of the MIPSr3 Architectures.............. 24
Figure 2-4: One-Deep Single-Completion Instruction Pipeline ............................................................................... 25
Figure 2-5: Four-Deep Single-Completion Pipeline ................................................................................................ 25
Figure 2-6: Four-Deep Superpipeline...................................................................................................................... 26
Figure 2-7: Four-Way Superscalar Pipeline............................................................................................................ 26
Figure 2-8: CPU Registers...................................................................................................................................... 30
Figure 2-9: FPU Registers for a 32-bit FPU............................................................................................................ 32
Figure 2-10: FPU Registers for a 64-bit FPU if Status
FR
is 1 ................................................................................ 33
Figure 2-11: FPU Registers for a 64-bit FPU if Status
FR
is 0 ................................................................................. 34
Figure 2-12: Big-Endian Byte Ordering................................................................................................................... 35
Figure 2-13: Little-Endian Byte Ordering................................................................................................................. 35
Figure 2-14: Big-Endian Data in Doubleword Format ............................................................................................. 36
Figure 2-15: Little-Endian Data in Doubleword Format........................................................................................... 36
Figure 2-16: Big-Endian Misaligned Word Addressing ........................................................................................... 37
Figure 2-17: Little-Endian Misaligned Word Addressing......................................................................................... 37
Figure 2-18: Three instructions placed in a 64-bit wide, little-endian memory........................................................ 39
Figure 2-19: Three instructions placed in a 64-bit wide, big-endian memory.......................................................... 40
Figure 3-1: microMIPS ISAs and ASEs................................................................................................................... 45
Figure 5-1: Single-Precisions Floating Point Format (S)......................................................................................... 69
Figure 5-2: Double-Precisions Floating Point Format (D) ....................................................................................... 69
Figure 5-3: Paired Single Floating Point Format (PS)............................................................................................. 70
Figure 5-4: Word Fixed Point Format (W)............................................................................................................... 72
Figure 5-5: Longword Fixed Point Format (L) ......................................................................................................... 72
Figure 5-6: FPU Word Load and Move-to Operations ........................................................................................... 74
Figure 5-7: FPU Doubleword Load and Move-to Operations.................................................................................. 74
Figure 5-8: Single Floating Point or Word Fixed Point Operand in an FPR ........................................................... 74
Figure 5-9: Double Floating Point or Longword Fixed Point Operand in an FPR ................................................... 75
Figure 5-10: Paired-Single Floating Point Operand in an FPR ............................................................................... 75
Figure 5-11: FIR Register Format .......................................................................................................................... 75
Figure 5-12: FCSR Register Format ...................................................................................................................... 78
Figure 5-13: FCCR Register Format ...................................................................................................................... 80
Figure 5-14: FEXR Register Format ...................................................................................................................... 81
Figure 5-15: FENR Register Format ...................................................................................................................... 81
剩余95页未读,继续阅读
whizer
- 粉丝: 135
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 多机调度问题贪心算法:理论探索与实践应用.zip
- 探索tecreate:软件开发的未来之星.zip
- 打标机项目C#源码连接扫码
- 基于SSM的房屋租赁系统的设计与实现
- xyctf:从入门到精通的实用指南.zip
- mmqrcode1714153659780.png
- Screenshot_2024-04-27-06-08-58-486_com.baidu.xin.aiqicha.jpg
- 基于Javaweb+Tomcat+MySQL的大学生公寓管理系统+sql文件.zip
- 实训作业基于javaweb的订单管理系统源码+数据库+实训报告.zip
- 多机调度问题贪心算法基于最小堆和贪心算法求解多机调度问题.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0