From 06b1f6fe49fbcfe887a0b084800a93cffca68d6c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 11 Apr 2018 18:32:29 +0100 Subject: [PATCH] add cond-code retrofit --- simple_v_extension.mdwn | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/simple_v_extension.mdwn b/simple_v_extension.mdwn index 5b8669f49..eb3322c17 100644 --- a/simple_v_extension.mdwn +++ b/simple_v_extension.mdwn @@ -344,20 +344,22 @@ current vector index" instead. 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 | +[[!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 | """]] 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 | +[[!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 | """]] ## Conclusions -- 2.30.2