mirror of
https://github.com/fpganinja/taxi.git
synced 2026-04-07 04:38:42 -07:00
stats: Use SV enums in statistics logic
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -71,11 +71,12 @@ localparam CNT_W = $clog2(CNT);
|
||||
localparam PERIOD_CNT_W = $clog2(UPDATE_PERIOD+1);
|
||||
localparam ACC_W = INC_W+CNT_W+1;
|
||||
|
||||
localparam [0:0]
|
||||
STATE_READ = 1'd0,
|
||||
STATE_WRITE = 1'd1;
|
||||
typedef enum logic [0:0] {
|
||||
STATE_READ,
|
||||
STATE_WRITE
|
||||
} state_t;
|
||||
|
||||
logic [0:0] state_reg = STATE_READ, state_next;
|
||||
state_t state_reg = STATE_READ, state_next;
|
||||
|
||||
logic [STAT_INC_W-1:0] m_axis_stat_tdata_reg = '0, m_axis_stat_tdata_next;
|
||||
logic [STAT_ID_W-1:0] m_axis_stat_tid_reg = '0, m_axis_stat_tid_next;
|
||||
|
||||
Reference in New Issue
Block a user