keypad working
This commit is contained in:
parent
55adbcf90a
commit
4855bbc42d
10 changed files with 526 additions and 213 deletions
27
aastructs.sv
27
aastructs.sv
|
@ -1,12 +1,23 @@
|
|||
package structs;
|
||||
|
||||
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;
|
||||
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;
|
||||
|
||||
endpackage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue