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;
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);
$display("Received Data1 : %h", _if.read_DATA);
$display("Received Data2 : %h", _if.read_DATA);
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.