Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ550
Q550DVASIC interview problem

Configure two reusable agents in one environment

TechniquesUVMAgent configurationAnalysis portsEnvironment
DifficultyMedium
TopicUVM Components
LanguageSystemVerilog
Requirements4 checkpoints
01

Problem

Design an environment with two instances of one bus agent, an optional scoreboard, and independently optional coverage subscribers.

Class declarationSystemVerilog
class dual_bus_env extends uvm_env;
  bus_agent a0, a1;
  bus_scoreboard sb;
endclass

Example input and output

Use this case to check your interpretation
Input
a0 is active on vif0; a1 is passive on vif1; scoreboard enabled; coverage only on a1
Output
both monitors publish, only a0 drives, the scoreboard sees both streams, and only cov1 samples
Explanation

Per-instance configuration changes policy without modifying or duplicating the reusable agent class.

02

Requirements (4)

  • Factory-create both agents with distinct instance names.
  • Give each agent its own configuration and virtual interface.
  • Create optional subscribers from environment configuration.
  • Connect monitor analysis ports without leaking protocol details into the environment.