summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorGravatar Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2010-11-06 17:44:56 -0700
committerGravatar Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2010-11-21 16:54:34 -0800
commit0b707f09b7cc465505aebac30146932d10a45b6f (patch)
tree8c67e107e2d7192b93526585e3ea581097a87dd0 /opcodes
parent54aec7dfe21f3ef0684a27f4545d668a20bce1f8 (diff)
[opcodes] generate latex and verilog correctly
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes20
1 files changed, 10 insertions, 10 deletions
diff --git a/opcodes b/opcodes
index 0eaa963..7afa374 100644
--- a/opcodes
+++ b/opcodes
@@ -11,18 +11,18 @@ unimp 31..0=0
j 31..25=0x60 imm25
jal 31..25=0x61 imm25
-lui 31..25=0x71 rd imm20
+jalr.c 31..25=0x62 24..22=0 rd rs1 imm12
+jalr.r 31..25=0x62 24..22=1 rd rs1 imm12
+jalr.j 31..25=0x62 24..22=2 rd rs1 imm12
-jalr.c 31..25=0x72 24..22=0 rd rs1 imm12
-jalr.r 31..25=0x72 24..22=1 rd rs1 imm12
-jalr.j 31..25=0x72 24..22=2 rd rs1 imm12
+beq 31..25=0x63 24..22=0 rs1 rs2 imm12lo imm12hi
+bne 31..25=0x63 24..22=1 rs1 rs2 imm12lo imm12hi
+blt 31..25=0x63 24..22=4 rs1 rs2 imm12lo imm12hi
+bge 31..25=0x63 24..22=5 rs1 rs2 imm12lo imm12hi
+bltu 31..25=0x63 24..22=6 rs1 rs2 imm12lo imm12hi
+bgeu 31..25=0x63 24..22=7 rs1 rs2 imm12lo imm12hi
-beq 31..25=0x73 24..22=0 rs1 rs2 imm12lo imm12hi
-bne 31..25=0x73 24..22=1 rs1 rs2 imm12lo imm12hi
-blt 31..25=0x73 24..22=4 rs1 rs2 imm12lo imm12hi
-bge 31..25=0x73 24..22=5 rs1 rs2 imm12lo imm12hi
-bltu 31..25=0x73 24..22=6 rs1 rs2 imm12lo imm12hi
-bgeu 31..25=0x73 24..22=7 rs1 rs2 imm12lo imm12hi
+lui 31..25=0x71 rd imm20
addi 31..25=0x74 24..22=0 rd rs1 imm12
slti 31..25=0x74 24..22=2 rd rs1 imm12