diff options
author | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2010-09-13 18:00:08 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2010-09-13 18:00:08 -0700 |
commit | 67bd7134c4583dc8cda7c7253303837b45286d15 (patch) | |
tree | 8fe09974e8ceb69289fed1f65c3044a2068de9d4 | |
parent | 53600108cc24cc14b1c0f04666f27ffc1b3ff681 (diff) | |
download | riscv-opcodes-67bd7134c4583dc8cda7c7253303837b45286d15.zip riscv-opcodes-67bd7134c4583dc8cda7c7253303837b45286d15.tar.gz riscv-opcodes-67bd7134c4583dc8cda7c7253303837b45286d15.tar.bz2 |
[xcc, sim] replaced ble/bleu with bge/bgeu
This will simplify control logic (since every branch has a logical inverse)
-rw-r--r-- | inst.v | 8 | ||||
-rw-r--r-- | instr-table.tex | 14 | ||||
-rw-r--r-- | opcodes | 8 |
3 files changed, 15 insertions, 15 deletions
@@ -4,10 +4,10 @@ `define LUI 32'b1110001_?????_???????????????????? `define BEQ 32'b1110011_?????_?????_000_???????????? `define BNE 32'b1110011_?????_?????_001_???????????? -`define BLT 32'b1110011_?????_?????_010_???????????? -`define BLTU 32'b1110011_?????_?????_011_???????????? -`define BLE 32'b1110011_?????_?????_100_???????????? -`define BLEU 32'b1110011_?????_?????_101_???????????? +`define BLT 32'b1110011_?????_?????_100_???????????? +`define BGE 32'b1110011_?????_?????_101_???????????? +`define BLTU 32'b1110011_?????_?????_110_???????????? +`define BGEU 32'b1110011_?????_?????_111_???????????? `define ADDI 32'b1110100_?????_?????_000_???????????? `define SLTI 32'b1110100_?????_?????_010_???????????? `define SLTIU 32'b1110100_?????_?????_011_???????????? diff --git a/instr-table.tex b/instr-table.tex index 14f731f..8f3e229 100644 --- a/instr-table.tex +++ b/instr-table.tex @@ -146,7 +146,7 @@ \multicolumn{2}{|c|}{1110011} & \multicolumn{1}{c|}{xa} & \multicolumn{1}{c|}{xb} & -\multicolumn{1}{c|}{010} & +\multicolumn{1}{c|}{100} & \multicolumn{4}{c|}{imm} & BLT xa,xb,imm \\ \cline{2-10} @@ -155,8 +155,8 @@ \multicolumn{2}{|c|}{1110011} & \multicolumn{1}{c|}{xa} & \multicolumn{1}{c|}{xb} & -\multicolumn{1}{c|}{011} & -\multicolumn{4}{c|}{imm} & BLTU xa,xb,imm \\ +\multicolumn{1}{c|}{101} & +\multicolumn{4}{c|}{imm} & BGE xa,xb,imm \\ \cline{2-10} @@ -164,8 +164,8 @@ \multicolumn{2}{|c|}{1110011} & \multicolumn{1}{c|}{xa} & \multicolumn{1}{c|}{xb} & -\multicolumn{1}{c|}{100} & -\multicolumn{4}{c|}{imm} & BLE xa,xb,imm \\ +\multicolumn{1}{c|}{110} & +\multicolumn{4}{c|}{imm} & BLTU xa,xb,imm \\ \cline{2-10} @@ -173,8 +173,8 @@ \multicolumn{2}{|c|}{1110011} & \multicolumn{1}{c|}{xa} & \multicolumn{1}{c|}{xb} & -\multicolumn{1}{c|}{101} & -\multicolumn{4}{c|}{imm} & BLEU xa,xb,imm \\ +\multicolumn{1}{c|}{111} & +\multicolumn{4}{c|}{imm} & BGEU xa,xb,imm \\ \cline{2-10} @@ -15,10 +15,10 @@ lui 31..25=0x71 xa imm20 beq 31..25=0x73 14..12=0 xa xb imm bne 31..25=0x73 14..12=1 xa xb imm -blt 31..25=0x73 14..12=2 xa xb imm -bltu 31..25=0x73 14..12=3 xa xb imm -ble 31..25=0x73 14..12=4 xa xb imm -bleu 31..25=0x73 14..12=5 xa xb imm +blt 31..25=0x73 14..12=4 xa xb imm +bge 31..25=0x73 14..12=5 xa xb imm +bltu 31..25=0x73 14..12=6 xa xb imm +bgeu 31..25=0x73 14..12=7 xa xb imm addi 31..25=0x74 14..12=0 xa xb imm slti 31..25=0x74 14..12=2 xa xb imm |