Compare commits

...

2 Commits

Author SHA1 Message Date
cjh e1578c8319 fix rvc appendix reserved missing 2025-03-31 09:53:49 +08:00
cjh d9ec10bea7 constants_description_added 2025-03-27 13:25:08 +08:00
1 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,13 @@ RVI指令永远判断为合法。
对于RVC指令的判定详细内容参阅20240411的RISCV手册的26\.8节表格列出的指令条件。 对于RVC指令的判定详细内容参阅20240411的RISCV手册的26\.8节表格列出的指令条件。
## 常量说明
| 常量名 | 常量值 | 解释 |
| ---- | ---- | ---- |
| XLEN | 64 | 通用寄存器位宽决定指令扩展时使用rv32还是rv64还是rv128 |
| fLen | 64 | 香山支持d扩展故为64 |
## RVCExpander接口说明 ## RVCExpander接口说明
### 输入接口 ### 输入接口
@ -292,6 +299,8 @@ addi的格式形如\| imm\[11\:0\] \| rs1 \| 000 \| rd \| 0010011 \|
lui指令的格式形如 \| imm[31:12] \| rd \| 0110111 \| lui指令的格式形如 \| imm[31:12] \| rd \| 0110111 \|
当立即数为0时这一字段reserved
当rd为0时为hint也可当作cli进行译码。 当rd为0时为hint也可当作cli进行译码。
当rd为2时为addi16sp指令 当rd为2时为addi16sp指令