apb_agent_config

class apb_agent_config extends uvm_object

Encapsulates APB agent configuration settings.

The configuration settings include the usual UVC knobs (active mode, coverage collection status) and knobs specific to APB arbitration.  An important part of the configuration instance is a refernce to the APB bus interface.

The configuration instance is to be created during the build phase of the agent’s parent component, which is typically an environment and associated with an agent instance through a keyword lookup in the UVM Configuration DB.

Summary
apb_agent_configEncapsulates APB agent configuration settings.
Variables
apb_ifReference to the physical APB bus interface.
activeIdentifies the usage mode of the agent.
coverageMakes the agent collect the functional coverage.
has_scorecardSets the agent to include an APB RAM based scoreboard.
no_select_linesIdentifies the number of select lines used in the APB bus interface.
apb_indexIdentifies the select line used by an APB slave controlled and/or observed by the APB agent.
start_addressIdentifies the base address of an APB slave controlled and/or observed by the APB agent.
Functions
newConventional constructor for UVM objects.

Variables

apb_if

virtual apb_if APB

Reference to the physical APB bus interface.

active

uvm_active_passive_enum active

Identifies the usage mode of the agent.  In the UVM_ACTIVE state, the agent provides all the components for full control and monitoring of the APB bus.  In the UVM_PASSIVE mode, the agent provides only the bus monitoring functions.

coverage

bit has_functional_coverage

Makes the agent collect the functional coverage.

has_scorecard

Sets the agent to include an APB RAM based scoreboard.

no_select_lines

int no_select_lines

Identifies the number of select lines used in the APB bus interface.

apb_index

int apb_index

Identifies the select line used by an APB slave controlled and/or observed by the APB agent.

start_address

logic[31:0] start_address[15:0]

Identifies the base address of an APB slave controlled and/or observed by the APB agent.

Functions

new

extern function new(string name =  "apb_agent_config")

Conventional constructor for UVM objects.

Parameters

nameName to be associated with the configuration instance in the UVM Configuration DB.
class apb_agent_config extends uvm_object
Encapsulates APB agent configuration settings.
virtual apb_if APB
Reference to the physical APB bus interface.
uvm_active_passive_enum active
Identifies the usage mode of the agent.
bit has_functional_coverage
Makes the agent collect the functional coverage.
int no_select_lines
Identifies the number of select lines used in the APB bus interface.
int apb_index
Identifies the select line used by an APB slave controlled and/or observed by the APB agent.
logic[31:0] start_address[15:0]
Identifies the base address of an APB slave controlled and/or observed by the APB agent.
extern function new(string name =  "apb_agent_config")
Conventional constructor for UVM objects.