立即数编码变种-maven3种打包方式中maven-assembly-plugin的使用详解

时间:2021-06-09 17:12:37
【文件属性】:
文件名称:立即数编码变种-maven3种打包方式中maven-assembly-plugin的使用详解
文件大小:3.65MB
文件格式:PDF
更新时间:2021-06-09 17:12:37
risc-v 2.3 立即数编码变种 基于立即数处理,还有额外两种指令格式变种(SB/UJ),如图 2.3所示。 在图 2.3中,每个立即数字段被所生成的立即数值中的位的位置(imm[x])标签,而不 是在指令的立即数字段中的通常位的位置。图 2.4给出了每一种基本指令格式生成的立即数, 并被标签,以显示哪个指令位(inst[y])生成了立即数值中的哪个位。 31 30 25 24 21 20 19 15 14 12 11 8 7 6 0 funct7 rs2 rs1 funct3 rd opcode R类 imm[11:0] rs1 funct3 rd opcode I类 imm[11:5] rs2 rs1 funct3 imm[4:0] opcode S类 imm[12] imm[10:5] rs2 rs1 funct3 imm[4:1] imm[11] opcode SB类 imm[31::12] rd opcode U类 imm[20] imm[10:1] imm[11] imm[19:12] rd opcode UJ类 图 2.3:RISC-V 显示了立即数的基本指令格式 31 30 20 19 12 11 10 5 4 1 0 —inst[31]— inst[30:25] inst[24:21] inst[20] I立即数 —inst[31]— inst[30:25] inst[11:8] inst[7] S立即数 —inst[31]— inst[7] inst[30:25] inst[11:8] 0 B立即数 inst[31] inst[30:20] inst[19:12] —0— U立即数 —inst[31]— inst[19:12] inst[20] inst[30:25] inst[24:21] 0 J立即数 图 2.4:RISC-V 指令生成的立即数。用指令的位标注了用于构成立即数的字段。符号扩展总 是使用 inst[31]。

网友评论