From 43829e0400f0a7aaccbb1ebefb44a38c41749e77 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 25 Sep 2022 23:21:32 -0600 Subject: Implement shifter decoding --- rtl/core/isa.sv | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'rtl/core/isa.sv') diff --git a/rtl/core/isa.sv b/rtl/core/isa.sv index 1778d33..35610c2 100644 --- a/rtl/core/isa.sv +++ b/rtl/core/isa.sv @@ -52,12 +52,24 @@ `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_SHIFTER [11:0] +`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 // Instrucciones de multiplicación -- cgit v1.2.3