Implement RL r instruction
Some groundwork on rotation operations
This commit is contained in:
@@ -55,6 +55,17 @@ package cpu_pkg;
|
||||
ALU_OP_INCR = 5'h11 // Increment register instead of a
|
||||
} alu_op_t;
|
||||
|
||||
typedef enum logic [2:0] {
|
||||
ROT_OP_RLC = 3'h00,
|
||||
ROT_OP_RRC = 3'h01,
|
||||
ROT_OP_RL = 3'h02,
|
||||
ROT_OP_RR = 3'h03,
|
||||
ROT_OP_SLA = 3'h04,
|
||||
ROT_OP_SRA = 3'h05,
|
||||
ROT_OP_SLL = 3'h06,
|
||||
ROT_OP_SRL = 3'h07
|
||||
} rot_op_t;
|
||||
|
||||
typedef enum logic [1:0] {
|
||||
ALU16_OP_ADD = 2'h00,
|
||||
ALU16_INC = 2'h01,
|
||||
|
||||
Reference in New Issue
Block a user