Skip to content

Commit

Permalink
Fix sltu/sltiu note
Browse files Browse the repository at this point in the history
Update SLT(I)(U) RV32I instruction notes to indicate
signed/unsigned comparison instead of zero-extending.

Fixes #17.
  • Loading branch information
jameslzhu committed Nov 11, 2024
1 parent 6628be3 commit 9a263b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tex/base.tex
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ \subsection*{RV32I Base Integer Instructions}
slli & Shift Left Logical Imm & I & 0010011 & 0x1 & imm[5:11]=0x00 & rd = rs1 \verb|<<| imm[0:4] & \\
srli & Shift Right Logical Imm & I & 0010011 & 0x5 & imm[5:11]=0x00 & rd = rs1 \verb|>>| imm[0:4] & \\
srai & Shift Right Arith Imm & I & 0010011 & 0x5 & imm[5:11]=0x20 & rd = rs1 \verb|>>| imm[0:4] & msb-extends \\
slti & Set Less Than Imm & I & 0010011 & 0x2 & & rd = (rs1 < imm)?1:0 & \\
sltiu & Set Less Than Imm (U) & I & 0010011 & 0x3 & & rd = (rs1 < imm)?1:0 & zero-extends \\ \hline
slti & Set Less Than Imm & I & 0010011 & 0x2 & & rd = (rs1 < imm)?1:0 & signed cmp \\
sltiu & Set Less Than Imm (U) & I & 0010011 & 0x3 & & rd = (rs1 < imm)?1:0 & unsigned cmp \\ \hline
lb & Load Byte & I & 0000011 & 0x0 & & rd = M[rs1+imm][0:7] & \\
lh & Load Half & I & 0000011 & 0x1 & & rd = M[rs1+imm][0:15] & \\
lw & Load Word & I & 0000011 & 0x2 & & rd = M[rs1+imm][0:31] & \\
Expand Down

0 comments on commit 9a263b4

Please sign in to comment.