本文主要是介绍【System Verilog and UVM基础入门7】事件,旗语,邮箱,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
学如逆水行舟,不进则退!
事件
Anleventis a static object handle to synchronize between two or more concurrently active processes.One process willtrigger the event, and another process waits for the event.
How to trigger and wait for an event?
- Named events can be triggered using -> or ->> operator
- Processes can wait for an event using @ operator or .triggered
// 进程间的同步和通信 //
// event事件`timescale 1ns/1ps
module tb;event e1,e2,e3;task wait_event(event e, string name );$display("@t start waiting event %s", $time,name);@e;$display
这篇关于【System Verilog and UVM基础入门7】事件,旗语,邮箱的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!