extend the status_code to more formated style

This commit is contained in:
Xianjun Jiao 2023-01-09 14:40:46 +01:00
parent 2747d431f9
commit 6a8818fe5f
2 changed files with 13 additions and 13 deletions

View File

@ -56,20 +56,20 @@ localparam E_WRONG_RSVD = 3;
localparam E_WRONG_TAIL = 4;
// erros in HT-SIGNAL
localparam E_UNSUPPORTED_MCS = 1;
localparam E_UNSUPPORTED_CBW = 2;
localparam E_HT_WRONG_RSVD = 3;
localparam E_UNSUPPORTED_STBC = 4;
localparam E_UNSUPPORTED_FEC = 5;
localparam E_UNSUPPORTED_SGI = 6;
localparam E_UNSUPPORTED_SPATIAL = 7;
localparam E_HT_WRONG_TAIL = 8;
localparam E_HT_AMPDU_WARN = 9;
localparam E_HT_AMPDU_ERROR = 10;
localparam E_WRONG_CRC = 11;
localparam E_UNSUPPORTED_MCS = 8;
localparam E_UNSUPPORTED_CBW = 9;
localparam E_HT_WRONG_RSVD = 10;
localparam E_UNSUPPORTED_STBC = 11;
localparam E_UNSUPPORTED_FEC = 12;
localparam E_UNSUPPORTED_SGI = 13;
localparam E_UNSUPPORTED_SPATIAL = 14;
localparam E_HT_WRONG_TAIL = 15;
localparam E_HT_AMPDU_WARN = 16;
localparam E_HT_AMPDU_ERROR = 17;
localparam E_WRONG_CRC = 18;
// fcs error
localparam E_WRONG_FCS = 1;
localparam E_WRONG_FCS = 31;
localparam EXPECTED_FCS = 32'hc704dd7b;

View File

@ -48,7 +48,7 @@ module dot11 (
// decode status
// (* mark_debug = "true", DONT_TOUCH = "TRUE" *)
output reg [4:0] state,
output reg [3:0] status_code,
output reg [4:0] status_code,
output state_changed,
output reg [31:0] state_history,