summaryrefslogtreecommitdiff
path: root/lab_4/SRC/typedef_pkg.sv
blob: 5b3aa5a7c577e94c1f3aae783ba427ac3b8cea35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// [Step 1] Create an enumeration typedef for the four operations: ADD, MULT, OR, and AND.
// Name the typedef operation_t.
package typedef_pkg;

    typedef enum logic [1:0]
    {
        ADD = 2'b00,
        MULT = 2'b01,
        OR = 2'b10,
        AND = 2'b11
    } operation_t;

endpackage : typedef_pkg