UVM Barrier
一、uvm_barrier in function
This example is similar to the above example. In this example, multiple processes are of the same task.
module uvm_barrier_ex;
uvm_barrier ba;
task automatic process(input string p_name, int delay);
$display($time," [%s] Strating the process",p_name);
$display($time," [%s] Injecting the delay of %0d",p_name,delay);
#delay;
$display($time," [%s] Before the wait_for",p_name);
ba.wait_for();
$display($time," [%s] After the wait_for",p_name);
endtask
initial begin
ba
UVMBarrier详解
本文深入探讨了UVMBarrier在多进程同步中的应用,包括不同方法的设置与使用,如wait_for、set_threshold、get_threshold、reset、set_auto_reset及cancel等,通过具体实例展示了其在时间阈值、等待进程数及自动重置等方面的灵活性。
订阅专栏 解锁全文
1118

被折叠的 条评论
为什么被折叠?



