diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-10-02 13:23:22 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-10-02 13:23:22 -0600 |
| commit | 63ec42cc245b2da9ab97cc4eef6bbd21e08cde07 (patch) | |
| tree | 1b9fd482a6e3cee3eb2245a9d331669cf5e44b8c /rtl/core/isa.sv | |
| parent | 97bc74277d0e9672a55552ed1cded66ecb7d317e (diff) | |
Split decoding of flexible second operand out of data instructions
Diffstat (limited to 'rtl/core/isa.sv')
| -rw-r--r-- | rtl/core/isa.sv | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/rtl/core/isa.sv b/rtl/core/isa.sv index 35610c2..7f32914 100644 --- a/rtl/core/isa.sv +++ b/rtl/core/isa.sv @@ -21,6 +21,21 @@ `define COND_AL 4'b1110 `define COND_UD 4'b1111 // Indefnido antes de ARMv5 +// Segundo operando de varios grupos de instrucciones + +`define FIELD_SND_ROR8 [11:8] +`define FIELD_SND_IMM8 [7:0] +`define FIELD_SND_SHIFTIMM [11:7] +`define FIELD_SND_RS [11:8] +`define FIELD_SND_ZEROIFREG [7] +`define FIELD_SND_SHIFT [6:5] +`define FIELD_SND_RM [3:0] + +`define SHIFT_LSL 2'b00 +`define SHIFT_LSR 2'b01 +`define SHIFT_ASR 2'b10 +`define SHIFT_ROR 2'b11 + // Instrucciones de salto `define INSN_B 28'b101_0_???????????????????????? @@ -52,24 +67,12 @@ `define GROUP_ALU 28'b00_?_????_?_????_????_???????????? -`define FIELD_DATA_IMM [25] -`define FIELD_DATA_OPCODE [24:21] -`define FIELD_DATA_S [20] -`define FIELD_DATA_RN [19:16] -`define FIELD_DATA_RD [15:12] -`define FIELD_DATA_ROR8 [11:8] -`define FIELD_DATA_IMM8 [7:0] -`define FIELD_DATA_SHIFTIMM [11:7] -`define FIELD_DATA_RS [11:8] -`define FIELD_DATA_ZEROIFREG [7] -`define FIELD_DATA_SHIFT [6:5] -`define FIELD_DATA_REGSHIFT [4] -`define FIELD_DATA_RM [3:0] - -`define SHIFT_LSL 2'b00 -`define SHIFT_LSR 2'b01 -`define SHIFT_ASR 2'b10 -`define SHIFT_ROR 2'b11 +`define FIELD_DATA_IMM [25] +`define FIELD_DATA_OPCODE [24:21] +`define FIELD_DATA_S [20] +`define FIELD_DATA_RN [19:16] +`define FIELD_DATA_RD [15:12] +`define FIELD_DATA_REGSHIFT [4] // Instrucciones de multiplicación |
