yayacemu/aastructs.sv

24 lines
291 B
Systemverilog
Raw Permalink Normal View History

2024-04-08 06:34:21 +00:00
package structs;
2024-04-15 14:32:48 +00:00
typedef enum {
ADD,
ADDL,
SUB,
SE,
SNE,
OR,
AND,
XOR,
SHR,
SHL
} alu_op;
typedef struct packed {
logic [7:0] operand_a;
logic [7:0] operand_b;
logic [11:0] operand_b_long;
alu_op op;
} alu_input;
2024-04-08 06:34:21 +00:00
endpackage