add cond-code retrofit
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 11 Apr 2018 17:26:37 +0000 (18:26 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 11 Apr 2018 17:26:37 +0000 (18:26 +0100)
simple_v_extension.mdwn

index e13f1a8039ca8cf5e3385b06aa722500e52de49a..b90f9fcd60affd0413ac0baee38d69b7f0e67422 100644 (file)
@@ -344,11 +344,19 @@ current vector index" instead.
 There is, in the standard Conditional Branch instruction, more than
 adequate space to interpret it in a similar fashion:
 
-|   31    |30       25 |24     20 | 19     15 | 14        12 | 11          8 |      7  | 6         0 |
+|   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      |
+|    offset[12,10:5]  ||    src2  |    src1   |  BE?         |    offset[11,4:1]      || BRANCH      |
+
+This would become:
+
+|   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