This repository has been archived on 2023-12-21. You can view files and clone it, but cannot push or open issues or pull requests.
cse141L-project/RTL/Definitions.sv

22 lines
492 B
Systemverilog
Raw Normal View History

2022-08-14 23:05:44 +00:00
// Module Name: Definitions
2022-08-13 23:36:00 +00:00
// Project Name: CSE141L
// Description: contains enumerated ALU operations
package Definitions;
typedef enum logic[3:0] {
NOP, // perform a simple value passthrough
INC, // increment by 1
DEC, // decrement by 1
CLB, // clear leading bit
ADD, // addition
SUB, // subtraction
ORR, // bitwise OR
AND, // bitwise AND
LSH, // left shift
RXOR, // reduction xor
2022-08-13 23:36:00 +00:00
XOR // bitwise XOR
} op_mne;
2022-08-13 22:34:01 +00:00
2022-08-13 23:36:00 +00:00
endpackage // definitions