In UVM, where and how are the monitor's connections made (both to the DUT…
In UVM, where and how are the monitor's connections made (both to the DUT interface and to the scoreboard)?
Model answer
A uvm_monitor has two distinct connections in a UVM testbench: 1. **Connection to the DUT Signals (via a Virtual Interface)**: - The physical SystemVerilog interface is instantiated in the top-level testbench module ( tb_top ), connected to the DUT ports, and registered in uvm_config_db . - Inside the monitor's ** build_phase ** (or connect_phase ), the monitor retrieves the virtual interface handle from uvm_config_db : 2. **Connection to the Scoreboard / Subscribers (via an Analysis Port)**: - The monitor declares and constructs a uvm_analysis_port #(my_txn) item_collected_port; . - Inside the **environment's connect_phase(uvm_phase phase) **, the monitor's analysis port is connected to the scoreboard's uvm_analysis_imp (or uvm_tlm_analysis_fifo export):