From: Luke Kenneth Casson Leighton Date: Wed, 11 Apr 2018 17:31:24 +0000 (+0100) Subject: add cond-code retrofit X-Git-Tag: convert-csv-opcode-to-binary~5700 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=056e814f400d7685fe6dd6e8e96ff3d3b7f11590;p=libreriscv.git add cond-code retrofit --- diff --git a/simple_v_extension.mdwn b/simple_v_extension.mdwn index 8a16b7d38..54ed64650 100644 --- a/simple_v_extension.mdwn +++ b/simple_v_extension.mdwn @@ -345,21 +345,21 @@ There is, in the standard Conditional Branch instruction, more than adequate space to interpret it in a similar fashion: [[!table data = """ -| 31 |30 ..... 25 |24 ... 20 | 19 ... 15 | 14 ...... 12 | 11 ....... 8 | 7 | 6 ....... 0 | -| ----- |----------- |--------- | --------- | ------------ | ------------- | ----- | ----------- | -| imm[12] | imm[10:5] | rs2 | rs1 | funct3 | imm[4:1] | imm[11] | opcode | -| 1 | 6 | 5 | 5 | 3 | 4 | 1 | 7 | -| offset[12,10:5] || src2 | src1 | BE? | offset[11,4:1] || BRANCH | + 31 |30 ..... 25 |24 ... 20 | 19 ... 15 | 14 ...... 12 | 11 ....... 8 | 7 | 6 ....... 0 | + ----- |----------- |--------- | --------- | ------------ | ------------- | ----- | ----------- | + imm[12] | imm[10:5] | rs2 | rs1 | funct3 | imm[4:1] | imm[11] | opcode | + 1 | 6 | 5 | 5 | 3 | 4 | 1 | 7 | + offset[12,10:5] || src2 | src1 | BE? | offset[11,4:1] || BRANCH | """]] This would become: [[!table data = """ -| 31 |30 ..... 25 |24 ... 20 | 19 ... 15 | 14 ...... 12 | 11 ....... 8 | 7 | 6 ....... 0 | -| ----- |----------- |--------- | --------- | ------------ | ------------- | ----- | ----------- | -| imm[12] | imm[10:5] | rs2 | rs1 | funct3 | imm[4:1] | imm[11] | opcode | -| 1 | 6 | 5 | 5 | 3 | 4 | 1 | 7 | -| reserved || src2 | src1 | BE? | predicate rs3 || BRANCH | + 31 |30 ..... 25 |24 ... 20 | 19 ... 15 | 14 ...... 12 | 11 ....... 8 | 7 | 6 ....... 0 | + ----- |----------- |--------- | --------- | ------------ | ------------- | ----- | ----------- | + imm[12] | imm[10:5] | rs2 | rs1 | funct3 | imm[4:1] | imm[11] | opcode | + 1 | 6 | 5 | 5 | 3 | 4 | 1 | 7 | + reserved || src2 | src1 | BE? | predicate rs3 || BRANCH | """]] ## Conclusions