Skip to main content

Threads and Interprocess Communication

  • Chapter
Systemverilog for Verification
  • 2849 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 99.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics