Skip to main content

Test Benches

  • Chapter
  • First Online:
Quick Start Guide to Verilog
  • 83k Accesses

Abstract

One of the essential components of the modern digital design flow is verifying functionality through simulation. This functional verification is accomplished using a test bench. A test bench is a Verilog model that instantiates the system to be tested as a subsystem, generates the input patterns to drive into the subsystem, and observes the outputs. Test benches are only used for simulation, so they can use abstract modeling techniques that are unsynthesizable to generate the stimulus patterns. Verilog conditional programming constructions and system tasks can also be used to report on the status of a test and also automatically check that the outputs are correct. This chapter provides the details of Verilog’s built-in capabilities that allow test benches to be created and some examples of automated stimulus generation.

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 69.99
Price excludes VAT (USA)
  • Available as EPUB and 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

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

LaMeres, B.J. (2019). Test Benches. In: Quick Start Guide to Verilog. Springer, Cham. https://doi.org/10.1007/978-3-030-10552-5_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-10552-5_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-10551-8

  • Online ISBN: 978-3-030-10552-5

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics