Hello,
I have a dpi function, which I want to sample when there will be new transaction item available. Is there possible to have a sensitivity list inside task, similar to always block, so when the value of items change it will sample the dpi function.
for example:
virtual task run_phase(uvm_phase phase);
super.run_phase(phase);
fork
collect_input_data();
run_rm();
join_none
endtask
...
virtual task collect_input_data();
act_fifo.get(item_1);
item_1_input = item_1.data;
endtask
virtual task run_rm();
forever @ (item_1_input,item_2_input)
begin
dpi_function(item_1_input,item_2_input,output);
end
endtask