Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Configure two reusable agents in one environment

Hardware interview practice

Configure two reusable agents in one environment

MediumUVM ComponentsSystemVerilog

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

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Starting point

Question code

class dual_bus_env extends uvm_env;
  bus_agent a0, a1;
  bus_scoreboard sb;
endclass
Reviewed example

Work through one case

Input
a0 is active on vif0; a1 is passive on vif1; scoreboard enabled; coverage only on a1
Expected output
both monitors publish, only a0 drives, the scoreboard sees both streams, and only cov1 samples

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

What to cover

Requirements

  1. Factory-create both agents with distinct instance names.
  2. Give each agent its own configuration and virtual interface.
  3. Create optional subscribers from environment configuration.
  4. Connect monitor analysis ports without leaking protocol details into the environment.
asic.fyi · Learn silicon end to end.info@asic.fyi