blob: a94fb52e0ae92c4be0720b48d6fd46f1ab00d682 [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class usb20_agent extends dv_base_agent #(
.CFG_T (usb20_agent_cfg),
.DRIVER_T (usb20_driver),
.HOST_DRIVER_T (usb20_host_driver),
.DEVICE_DRIVER_T(usb20_device_driver),
.SEQUENCER_T (usb20_sequencer),
.MONITOR_T (usb20_monitor),
.COV_T (usb20_agent_cov)
);
`uvm_component_utils(usb20_agent)
`uvm_component_new
function void build_phase(uvm_phase phase);
super.build_phase(phase);
// get usb20_if handle
if (!uvm_config_db#(virtual usb20_if)::get(this, "", "vif", cfg.vif)) begin
`uvm_fatal(`gfn, "failed to get usb20_if handle from uvm_config_db")
end
endfunction
endclass