[source]

Class uvm_pkg::uvm_analysis_port

Class

uvm_analysis_port

Broadcasts a value to all subscribers implementing a uvm_analysis_imp.

 class mon extends uvm_component;
   uvm_analysis_port#(trans) ap;

   function new(string name = "sb", uvm_component parent = null);
      super.new(name, parent);
      ap = new("ap", this);
   endfunction

   task run_phase(uvm_phase phase);
       trans t;
       ...
       ap.write(t);
       ...
   endfunction
 endclass
Parameters

Name

Default value

Description

T

int

Constructors

new(string name, uvm_component parent)
Parameters:

Functions

get_type_name()
write(int t)

Method

write

Send specified value to all connected interface

Parameters:

t (int)