hw/ip/prim/rtl/prim_pkg.sv Cov: 100%
1: // Copyright lowRISC contributors.
2: // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3: // SPDX-License-Identifier: Apache-2.0
4: //
5: // Constants for use in primitives
6:
7: package prim_pkg;
8:
9: // Implementation target specialization
10: typedef enum integer {
11: ImplGeneric = 1,
12: ImplXilinx = 0
13: } impl_e;
14:
15: // interface structs for prim_alert_* and prim_esc_*
16: typedef struct packed {
17: logic alert_p;
18: logic alert_n;
19: } alert_tx_t;
20:
21: typedef struct packed {
22: logic ping_p;
23: logic ping_n;
24: logic ack_p;
25: logic ack_n;
26: } alert_rx_t;
27:
28: typedef struct packed {
29: logic esc_p;
30: logic esc_n;
31: } esc_tx_t;
32:
33: typedef struct packed {
34: logic resp_p;
35: logic resp_n;
36: } esc_rx_t;
37:
38: endpackage : prim_pkg
39: