| // Copyright lowRISC contributors. | |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| package usbdev_env_pkg; | |
| // dep packages | |
| import uvm_pkg::*; | |
| import top_pkg::*; | |
| import dv_utils_pkg::*; | |
| import csr_utils_pkg::*; | |
| import tl_agent_pkg::*; | |
| import usb20_agent_pkg::*; | |
| import dv_lib_pkg::*; | |
| import cip_base_pkg::*; | |
| import usbdev_ral_pkg::*; | |
| // macro includes | |
| `include "uvm_macros.svh" | |
| `include "dv_macros.svh" | |
| // parameters | |
| // types | |
| typedef enum { | |
| IntrPktReceived = 0, | |
| IntrPktSent = 1, | |
| IntrDisconnected = 2, | |
| IntrHostLost = 3, | |
| IntrLinkReset = 4, | |
| IntrLinkSuspend = 5, | |
| IntrLinkResume = 6, | |
| IntrAvEmpty = 7, | |
| IntrRxFull = 8, | |
| IntrAvOverflow = 9, | |
| IntrLinkInErr = 10, | |
| IntrRxCrcErr = 11, | |
| IntrRxPidErr = 12, | |
| IntrRxBitstuffErr = 13, | |
| IntrFrame = 14, | |
| IntrConnected = 15, | |
| NumUsbdevInterrupts | |
| } usbdev_intr_e; | |
| // functions | |
| // package sources | |
| `include "usbdev_env_cfg.sv" | |
| `include "usbdev_env_cov.sv" | |
| `include "usbdev_virtual_sequencer.sv" | |
| `include "usbdev_scoreboard.sv" | |
| `include "usbdev_env.sv" | |
| `include "usbdev_vseq_list.sv" | |
| endpackage |