7.8 Conclusion
Your design is modeled as many independent blocks running in parallel, so your testbench must also generate multiple stimulus streams and check the responses using parallel threads. These are organized into a layered testbench, orchestrated by the top-level environment. SystemVerilog introduces powerful constructs such as fork...join_none and fork...join_any for dynamically creating new threads, in addition to the standard fork...join. These threads communicate and synchronize using events, semaphore, mailboxes, and the classic @ event control and wait statement. Lastly, the disable command is used to terminate threads.
These threads and the related control constructs complement the dynamic nature of OOP. As objects are created and destroyed, they can run in independent threads, allowing you to build a powerful and flexible testbench environment.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Springer Science+Business Media, LLC
About this chapter
Cite this chapter
(2006). Threads and Interprocess Communication. In: Systemverilog for Verification. Springer, Boston, MA. https://doi.org/10.1007/0-387-27038-8_7
Download citation
DOI: https://doi.org/10.1007/0-387-27038-8_7
Publisher Name: Springer, Boston, MA
Print ISBN: 978-0-387-27036-4
Online ISBN: 978-0-387-27038-8
eBook Packages: EngineeringEngineering (R0)