初学risc-v,入门了解R-type,I-type,S-type

简介: 初学risc-v,入门了解R-type,I-type,S-type

首先,了解R-type,I-type,S-type等的结构

均为32bit

每部分作用如下

可能会不太懂,没关系,继续往下面看就好!

(记住755357!)

20190525180039428.png


1.R-type

20190525180440144.png

20190525180503775.png


或许还不太懂,下面举个例子:

①首先给出其中两部分的固定值表,只需要根据需要取用即可

20190525180650950.png


②例子来了:

funct7:取自上表add

rs2:x20

rs1:x21

funct3:取自上表add

rd:x9

opcode:取自上表add

操作的结果就是:

x20的值加上x21的值再赋值给x9。

是不是瞬间感觉很简单呢???有木有!

(I,S-type同理,不再细述)

20190525180749803.png


2.I-type

20190525181524454.png


I-type有两种形式,下面给出两个例子

20190525181610529.png

20190525181636429.png


3.S-type

2019052518174585.png

20190525181801787.png


简单命令的类型总结

20190525181836702.png

相关文章
|
9天前
ARM64技术 —— Device Memory Type
ARM64技术 —— Device Memory Type
|
2月前
|
JavaScript 前端开发
type 命令
type 命令
22 0
|
11月前
|
Java
【ES异常】mapper [sortNum] of different type, current_type [long], merged_type [keyword]
【ES异常】mapper [sortNum] of different type, current_type [long], merged_type [keyword]
108 0
|
12月前
|
XML 数据格式
SAP UI5 数据类型(data type) 学习笔记
SAP UI5 数据类型(data type) 学习笔记
|
Swift
Swift中AnyObject、Any、AnyClass、T.self、T.Type、type(of:)、Self的使用和区别
Swift中AnyObject、Any、AnyClass、T.self、T.Type、type(of:)、Self的使用和区别
167 0
|
Scala
TYPE
TYPE
129 0
|
机器学习/深度学习 自然语言处理 算法
TABs(Type Abstraction,类型抽象):Open Relation and Event Type Discovery with Type Abstraction论文解读
传统的“封闭世界”信息提取(IE)方法依赖于人类本体来定义抽取范围。因此,当应用到新的领域时,这种方法就不适用了。这就要求系统能够从给定的语料库中自动推断出新的类型
56 0
|
索引 容器
Type 类型
Type 类型
131 0
SAP WM Movement Type 里的‘Ref.Stor.Type Search’字段用法初探
SAP WM Movement Type 里的‘Ref.Stor.Type Search’字段用法初探
SAP WM Movement Type 里的‘Ref.Stor.Type Search’字段用法初探
‘DebugConfig‘ only refers to a type, but is being used as a value here.
‘DebugConfig‘ only refers to a type, but is being used as a value here.
‘DebugConfig‘ only refers to a type, but is being used as a value here.