在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例Clojure → The RISC-V Instruction Set Manual Volume I: User-Level ISA Document Version 2.2

The RISC-V Instruction Set Manual Volume I: User-Level ISA Document Version 2.2

Clojure

下载此实例
  • 开发语言:Others
  • 实例大小:0.59M
  • 下载次数:4
  • 浏览次数:36
  • 发布时间:2023-03-09
  • 实例类别:Clojure
  • 发 布 人:xxy27978888888
  • 文件格式:.pdf
  • 所需积分:2
 相关标签: pdf pd sc

实例介绍

【实例简介】The RISC-V Instruction Set Manual Volume I: User-Level ISA Document Version 2.2

【实例截图】

【核心代码】

Contents
Preface i
1 Introduction 1
1.1 RISC-V ISA Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Instruction Length Encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3 Exceptions, Traps, and Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2 RV32I Base Integer Instruction Set, Version 2.0 9
2.1 Programmers’ Model for Base Integer Subset . . . . . . . . . . . . . . . . . . . . . . 9
2.2 Base Instruction Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3 Immediate Encoding Variants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.4 Integer Computational Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5 Control Transfer Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.6 Load and Store Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.7 Memory Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.8 Control and Status Register Instructions . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.9 Environment Call and Breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3 RV32E Base Integer Instruction Set, Version 1.9 27
3.1 RV32E Programmers’ Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.2 RV32E Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.3 RV32E Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
v
vi Volume I: RISC-V User-Level ISA V2.2
4 RV64I Base Integer Instruction Set, Version 2.0 29
4.1 Register State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4.2 Integer Computational Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4.3 Load and Store Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4.4 System Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5 RV128I Base Integer Instruction Set, Version 1.7 33
6 “M” Standard Extension for Integer Multiplication and Division, Version 2.0 35
6.1 Multiplication Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6.2 Division Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
7 “A” Standard Extension for Atomic Instructions, Version 2.0 39
7.1 Specifying Ordering of Atomic Instructions . . . . . . . . . . . . . . . . . . . . . . . 39
7.2 Load-Reserved/Store-Conditional Instructions . . . . . . . . . . . . . . . . . . . . . . 40
7.3 Atomic Memory Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
8 “F” Standard Extension for Single-Precision Floating-Point, Version 2.0 45
8.1 F Register State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
8.2 Floating-Point Control and Status Register . . . . . . . . . . . . . . . . . . . . . . . 47
8.3 NaN Generation and Propagation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
8.4 Subnormal Arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
8.5 Single-Precision Load and Store Instructions . . . . . . . . . . . . . . . . . . . . . . . 49
8.6 Single-Precision Floating-Point Computational Instructions . . . . . . . . . . . . . . 49
8.7 Single-Precision Floating-Point Conversion and Move Instructions . . . . . . . . . . 51
8.8 Single-Precision Floating-Point Compare Instructions . . . . . . . . . . . . . . . . . . 52
8.9 Single-Precision Floating-Point Classify Instruction . . . . . . . . . . . . . . . . . . . 53
9 “D” Standard Extension for Double-Precision Floating-Point, Version 2.0 55
9.1 D Register State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Volume I: RISC-V User-Level ISA V2.2 vii
9.2 NaN Boxing of Narrower Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.3 Double-Precision Load and Store Instructions . . . . . . . . . . . . . . . . . . . . . . 56
9.4 Double-Precision Floating-Point Computational Instructions . . . . . . . . . . . . . . 57
9.5 Double-Precision Floating-Point Conversion and Move Instructions . . . . . . . . . . 57
9.6 Double-Precision Floating-Point Compare Instructions . . . . . . . . . . . . . . . . . 59
9.7 Double-Precision Floating-Point Classify Instruction . . . . . . . . . . . . . . . . . . 59
10 “Q” Standard Extension for Quad-Precision Floating-Point, Version 2.0 61
10.1 Quad-Precision Load and Store Instructions . . . . . . . . . . . . . . . . . . . . . . . 61
10.2 Quad-Precision Computational Instructions . . . . . . . . . . . . . . . . . . . . . . . 62
10.3 Quad-Precision Convert and Move Instructions . . . . . . . . . . . . . . . . . . . . . 62
10.4 Quad-Precision Floating-Point Compare Instructions . . . . . . . . . . . . . . . . . . 63
10.5 Quad-Precision Floating-Point Classify Instruction . . . . . . . . . . . . . . . . . . . 63
11 “L” Standard Extension for Decimal Floating-Point, Version 0.0 65
11.1 Decimal Floating-Point Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
12 “C” Standard Extension for Compressed Instructions, Version 2.0 67
12.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
12.2 Compressed Instruction Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
12.3 Load and Store Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
12.4 Control Transfer Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
12.5 Integer Computational Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
12.6 Usage of C Instructions in LR/SC Sequences . . . . . . . . . . . . . . . . . . . . . . 80
12.7 RVC Instruction Set Listings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
13 “B” Standard Extension for Bit Manipulation, Version 0.0 85
14 “J” Standard Extension for Dynamically Translated Languages, Version 0.0 87
15 “T” Standard Extension for Transactional Memory, Version 0.0 89
viii Volume I: RISC-V User-Level ISA V2.2
16 “P” Standard Extension for Packed-SIMD Instructions, Version 0.1 91
17 “V” Standard Extension for Vector Operations, Version 0.2 93
17.1 Vector Unit State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
17.2 Element Datatypes and Width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
17.3 Vector Configuration Registers (vcmaxw, vctype, vcp) . . . . . . . . . . . . . . . . . 95
17.4 Vector Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
17.5 Rapid Configuration Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
18 “N” Standard Extension for User-Level Interrupts, Version 1.1 101
18.1 Additional CSRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
18.2 User Status Register (ustatus) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
18.3 Other CSRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
18.4 N Extension Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
18.5 Reducing Context-Swap Overhead . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
19 RV32/64G Instruction Set Listings 103
20 RISC-V Assembly Programmer’s Handbook 109
21 Extending RISC-V 113
21.1 Extension Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
21.2 RISC-V Extension Design Philosophy . . . . . . . . . . . . . . . . . . . . . . . . . . 116
21.3 Extensions within fixed-width 32-bit instruction format . . . . . . . . . . . . . . . . 116
21.4 Adding aligned 64-bit instruction extensions . . . . . . . . . . . . . . . . . . . . . . . 118
21.5 Supporting VLIW encodings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
22 ISA Subset Naming Conventions 121
22.1 Case Sensitivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
22.2 Base Integer ISA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
22.3 Instruction Extensions Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Volume I: RISC-V User-Level ISA V2.2 ix
22.4 Version Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
22.5 Non-Standard Extension Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
22.6 Supervisor-level Instruction Subsets . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
22.7 Supervisor-level Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
22.8 Subset Naming Convention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
23 History and Acknowledgments 125
23.1 History from Revision 1.0 of ISA manual . . . . . . . . . . . . . . . . . . . . . . . . . 125
23.2 History from Revision 2.0 of ISA manual . . . . . . . . . . . . . . . . . . . . . . . . . 126
23.3 History for Revision 2.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
23.4 History for Revision 2.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
23.5 Funding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
x Volume I: RISC-V User-Level ISA V2.2
Chapter 1

标签: pdf pd sc

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警