-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathmci_pkg.sv
More file actions
59 lines (51 loc) · 2.01 KB
/
mci_pkg.sv
File metadata and controls
59 lines (51 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
`ifndef MCI_PKG
`define MCI_PKG
package mci_pkg;
localparam KB = 1024;
localparam KB_BASE0 = KB - 1;
localparam MB = KB * 1024;
localparam MB_BASE0 = MB - 1;
localparam MCI_MBOX_DATA_W = 32; //not configurable
localparam MCI_MBOX_ECC_DATA_W = 7; //not configurable
// Assert reset for 10 cycles then deassert
// to facilitate the hitless update
parameter MCI_MCU_UPDATE_RESET_CYLES = 10;
parameter MCI_WDT_TIMEOUT_PERIOD_NUM_DWORDS = 2;
localparam MCI_WDT_TIMEOUT_PERIOD_W = MCI_WDT_TIMEOUT_PERIOD_NUM_DWORDS * 32;
typedef enum logic [3:0] {
BOOT_IDLE = 4'b0000,
BOOT_FABRIC = 4'b0001,
BOOT_OTP_FC = 4'b0010,
BOOT_LCC = 4'b0011,
BOOT_MCU = 4'b0100,
BOOT_PLL = 4'b0101,
BOOT_WAIT_CPTRA = 4'b0110,
BOOT_CPTRA = 4'b0111,
BOOT_WAIT_UPDATE = 4'b1000,
BOOT_RST_MCU = 4'b1001
} mci_boot_fsm_state_e;
typedef enum logic [2:0] {
TRANSLATOR_RESET = 3'd0,
TRANSLATOR_IDLE = 3'd1,
TRANSLATOR_NON_DEBUG = 3'd2,
TRANSLATOR_UNPROV_DEBUG = 3'd3,
TRANSLATOR_MANUF_NON_DEBUG = 3'd4,
TRANSLATOR_MANUF_DEBUG = 3'd5,
TRANSLATOR_PROD_NON_DEBUG = 3'd6,
TRANSLATOR_PROD_DEBUG = 3'd7
} mci_state_translator_fsm_state_e;
endpackage
`endif /*MCI_PKG*/