mirror of
https://github.com/fpganinja/taxi.git
synced 2026-04-08 04:58:43 -07:00
axi: Use SV enums in AXI components
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -100,11 +100,12 @@ if (FIFO_DELAY) begin
|
||||
|
||||
localparam COUNT_W = (FIFO_AW > 8 ? FIFO_AW : 8) + 1;
|
||||
|
||||
localparam [0:0]
|
||||
STATE_IDLE = 1'd0,
|
||||
STATE_WAIT = 1'd1;
|
||||
typedef enum logic [0:0] {
|
||||
STATE_IDLE,
|
||||
STATE_WAIT
|
||||
} state_t;
|
||||
|
||||
logic [0:0] state_reg = STATE_IDLE, state_next;
|
||||
state_t state_reg = STATE_IDLE, state_next;
|
||||
|
||||
logic [COUNT_W-1:0] count_reg = 0, count_next;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user