In reply to Prawin kumar:
I can see you code, but it is not really simulating. It proceeds only in time but does not issue any uvm_info with the exception of the build_phase.

Lookin to your code I see strange things in your sequence:

    assert (req.randomize());
    req.delay = $urandom_range(1, 20);
    req.int_a = $urandom();
    req.int_b =$urandom();

You are randomizing twice. First with the randomize meothod belonging to the classes, which is fine and then randomizing with $urandom, which is not good.

In reply to Prawin kumar:

I had a deeper look to your code. You do not understand the UVM build process using the different phases: build_phase, connect_phase.
Passing the virtual interface through your environment is a nightmare. TLM components never have a virtual interface!
Watch the UVM related videos in the Verification Academy, then clean-up and run your code.

In reply to chr_sue:

Can you elaborate which is mistake, build phase is very clear and connect phase also

In reply to Prawin kumar:

Please look here:

In reply to chr_sue:

it randomize only frame 0,but we given i<20 .
and what about signal out?

In reply to Prawin kumar:

Your DUT is instantiated, but not connected to the interface.
I did not check all Details. My guess is yout testbench is stucking somewhere in the monitor or the scoreboard.

In reply to chr_sue:

I had a closer look to your code. The clock generation did im module top did not work.
I have fixed this. See

In reply to chr_sue:

ok chr_sue,

Thank you so much for your support.

We generates the stimulus fine but

with this i want verify the DUT? how can i?

In reply to Prawin kumar:

First you have to connect your DUT to the interface in your toplevel module. Then your Environment is complete.
To verify your design you Need sequences and Tests. In your tests you select a certain sequence to verify the features of your design.

In reply to chr_sue:

dut dut1 ( .clk(lpc_if.clk),


i connect the DUT to Vif in top level,

In driver we transfer the stimulus from driver to vif as shown below
vif.int_a = seq.int_a;
vif.int_b = seq.int_b;

from the DUT to monitor am getting an output i.e signal “out”
and scoreboard connection like ‘compare’ not working …

Can you check this …
uvm_gate - EDA Playground

In reply to Prawin kumar:

In the monitor you do not extract a Transaction. You are writing an empty Transaction to the Analysis port.

In reply to chr_sue:

virtual function void write(sequence_item pkt);
monitor.item_collected_port = vif.int_a
monitor.item_collected_port = vif.int_b
$display(“SCB:: Pkt recived”);
endfunction : write

am write the write transaction in scoreboard i.e
from virtual interface int_a and int_b writing into the monitor.

is this write???

In reply to Prawin kumar:

This is wrong. In the write function you have to define what happens with the extracted transaction.
In the run_phase of the monitor you have to assemble your tarnsaction from the values of the virtual interface.

In reply to chr_sue:

OK i understand but in monitor ,

??? = vif.int_a;
??? = vif.int_b;

  from the above code in ??? place what we mentioned ? there is know specific signal to store int_a and int_b;

In your monitor run_phase task you have to declare and construct a Transaction.Assign to the data memebers of this Transaction the corresponding Values from the Virtual interface.
If you have done this you Can write this transaction to the analysis port of your monitor.

In reply to chr_sue:

task run_phase(uvm_phase phase);
logic [2:0]in_a;
logic [2:0]in_b;
sequence_item transaction;
transaction = sequence_item::type_id::create(“transaction”);

in_a = vif.int_a;
in_b = vif.int_b;
 @ (vif.clk);
`uvm_info("AC_LPC_MONITOR", $psprintf("Wrote transaction %s",transaction.convert2string()), UVM_LOW);


Am coded like this, i had take in_a,in_b type of logic from the vif int_a and int_b trasaction to in_a,in_b.

even though scoreboard not compare this values.

In reply to Prawin kumar:

I strongly recommend to watch the videos from the UVM Courses!
You do not understand the TLM - Transaction Level Modelling. But this is key for the UVM.

Your run_phase Task should look like this:

task run_phase(uvm_phase phase);
sequence_item transaction;
transaction = sequence_item::type_id::create("transaction");
forever begin
  @ (vif.clk);
  transaction.in_a = vif.int_a;
  transaction.in_b = vif.int_b;

  `uvm_info("AC_LPC_MONITOR", $psprintf("Wrote transaction %s",transaction.convert2string()), UVM_LOW);

In reply to chr_sue:

Yes, i watched the TLM transaction modeling.

i made the changes as per your suggestions
but scoreboard did not take values from components (MON,DRV).

did i made any mistake.

In reply to Prawin kumar:
You don’t send data from the driver to the scoreboard.
See the solution here:

In reply to chr_sue:

Tq mr chr_sue,

I modified scoreboard with my convince,i want out also with the inputs.
could you please help on this, run the below code and give me some suggestions

uvm_gate - EDA Playground