Hi.
I'm trying to get a data from DUT which is sampled positive clock by driver as the below,
Firstly, I generate simple random data and put it into the interface in test.
always @(posedge _if.HCLK) begin
_if.read_DATA <= $urandom;
end
and I implemented to get a generated random data which is sampled by positive clock in a driver as the below,
task run_phase(uvm_phase phase);
forever begin
seq_item_port.get_next_item(req);
$display("Received Data1 : %h", _if.read_DATA);
@(posedge ahb_if.HCLK);
$display("Received Data2 : %h", _if.read_DATA);
seq_item_port.item_done(req);
end
endtask
After Received Data1, I get the Received Data2 but the same value. I thought that they values are must be different. the get_next_item is blocking so next data must be the next cycle's data but it's the same cycle's data.