diff options
author | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2011-04-11 17:09:50 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2011-04-11 17:09:50 -0700 |
commit | 94fb7c49c44d81a1b23af2985a67ba5347eb27fd (patch) | |
tree | ddcc062400cce24f120e57f730cf2149fd331236 | |
parent | fa3c04da6fc1b2a8c0f744c3bfcf25dd45c24e5b (diff) | |
download | riscv-opcodes-94fb7c49c44d81a1b23af2985a67ba5347eb27fd.zip riscv-opcodes-94fb7c49c44d81a1b23af2985a67ba5347eb27fd.tar.gz riscv-opcodes-94fb7c49c44d81a1b23af2985a67ba5347eb27fd.tar.bz2 |
[xcc,sim,opcodes] more rvc instructions and bug fixes
-rw-r--r-- | inst.v | 2 | ||||
-rw-r--r-- | opcodes | 6 | ||||
-rwxr-xr-x | parse-opcodes | 5 |
3 files changed, 10 insertions, 3 deletions
@@ -229,3 +229,5 @@ `define VF 32'b00000_?????_????????????_010_1110011 `define C_ADDI 32'b00000000000000000000000000000000 `define C_LI 32'b00000000000000000000000000000000 +`define C_MOVE 32'b00000000000000000000000000000000 +`define C_J 32'b00000000000000000000000000000000 @@ -317,5 +317,7 @@ setvl rd rs1 21..10=0 9..7=1 6..2=0x1C 1..0=3 vf 31..27=0 rs1 imm12 9..7=2 6..2=0x1C 1..0=3 # compressed instructions -c.addi cimm6 crd5 4..0=0 -c.li cimm6 crd5 4..0=1 +c.addi cimm6 crd 4..0=0 +c.li cimm6 crd 4..0=1 +c.move 15=0 crs1 crd 4..0=2 +c.j 15=1 cimm10 4..0=2 diff --git a/parse-opcodes b/parse-opcodes index a266d44..1777104 100755 --- a/parse-opcodes +++ b/parse-opcodes @@ -24,8 +24,11 @@ arglut['imm12lo'] = (16,10) arglut['shamt'] = (15,10) arglut['shamtw'] = (14,10) -arglut['crd5'] = (9,5) +arglut['crd'] = (9,5) +arglut['crs2'] = (9,5) +arglut['crs1'] = (14,10) arglut['cimm6'] = (15,10) +arglut['cimm10'] = (14,5) typelut = {} # 0=unimp,1=j,2=lui,3=imm,4=r,5=r4,6=ish,7=ishw,10=b typelut[0x03] = 3 |