blob: 46a35fa61ee9a96c6fb4cf3993bf8fc30325e7ba [file] [log] [blame]
// 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 dv_base_reg_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
// alerts
parameter uint NUM_ALERTS = 1;
parameter string LIST_OF_ALERTS[] = {"fatal_fault"};
// 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,
IntrPowered = 15,
IntrLinkOutErr = 16,
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