lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 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 | package cip_base_pkg; |
| 6 | // dep packages |
| 7 | import uvm_pkg::*; |
Srikrishna Iyer | 191408b | 2020-07-23 10:52:32 -0700 | [diff] [blame] | 8 | import bus_params_pkg::*; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 9 | import dv_utils_pkg::*; |
| 10 | import csr_utils_pkg::*; |
| 11 | import dv_lib_pkg::*; |
Weicai Yang | 0408a4e | 2020-06-04 15:03:50 -0700 | [diff] [blame] | 12 | import dv_base_reg_pkg::*; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 13 | import tl_agent_pkg::*; |
Cindy Chen | 12f2f88 | 2020-01-17 16:13:52 -0800 | [diff] [blame] | 14 | import alert_esc_agent_pkg::*; |
Cindy Chen | 49c187f | 2020-12-09 12:25:40 -0800 | [diff] [blame] | 15 | import push_pull_agent_pkg::*; |
Weicai Yang | 6cd8410 | 2020-06-10 19:03:24 -0700 | [diff] [blame] | 16 | import mem_model_pkg::*; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 17 | |
| 18 | // macro includes |
| 19 | `include "uvm_macros.svh" |
| 20 | `include "dv_macros.svh" |
Weicai Yang | db58f64 | 2021-01-27 14:05:45 -0800 | [diff] [blame^] | 21 | `include "cip_macros.svh" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 22 | |
| 23 | // package variables |
| 24 | string msg_id = "cip_base_pkg"; |
Cindy Chen | 78a7a13 | 2020-12-23 15:16:16 -0800 | [diff] [blame] | 25 | parameter uint EDN_BUS_WIDTH = 32; |
| 26 | parameter uint EDN_DATA_WIDTH = EDN_BUS_WIDTH + 1; // 32 bits bus data, 1 bit fips |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 27 | |
Cindy Chen | a72a636 | 2020-09-02 10:11:28 -0700 | [diff] [blame] | 28 | typedef enum { |
| 29 | err_update, |
| 30 | err_storage |
| 31 | } shadow_reg_alert_e; |
| 32 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 33 | // functions |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 34 | // package sources |
| 35 | // base env |
| 36 | `include "cip_base_env_cfg.sv" |
| 37 | `include "cip_base_env_cov.sv" |
| 38 | `include "cip_base_virtual_sequencer.sv" |
| 39 | `include "cip_base_scoreboard.sv" |
| 40 | `include "cip_base_env.sv" |
| 41 | |
| 42 | // sequences |
| 43 | `include "cip_base_vseq.sv" |
| 44 | |
| 45 | // tests |
| 46 | `include "cip_base_test.sv" |
| 47 | |
| 48 | endpackage |