Skip to main content

Reuse

  • Chapter
  • First Online:
Open Verification Methodology Cookbook
  • 1218 Accesses

Abstract

Building a testbench—designing, coding, debugging, and testing drivers, monitors, and other testbench components—can be quite time-consuming. An obvious place to improve verification productivity is to reuse components. That sounds simple enough, but to make a component truly reusable, some thought must be put into its architecture and construction. The types of things to think about to make a component reusable include how you expect to reuse the component and what degree of freedom the component must support.

The essential means to make a component reusable is to encapsulate all the data and functionality behind a well-defined interface. The interface dictates how you can modify, operate, and interrogate (extract data from) the component. All access is prohibited except that specifically allowed by the interface. We’ll consider four techniques for building reusable testbench elements: function calls, parameterized classes, inheritance, and configuration. Each of these techniques represents a different way of modifying structure or behavior using an interface. In each of these techniques, information is supplied externally to change the structure or behavior of the element. The first three ways to make an element reusable are a recap from Chapter 2, where we discussed object-oriented programming.

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 89.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

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.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mark Glasser .

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer-Verlag New York

About this chapter

Cite this chapter

Glasser, M. (2009). Reuse. In: Open Verification Methodology Cookbook. Springer, New York, NY. https://doi.org/10.1007/978-1-4419-0968-8_6

Download citation

  • DOI: https://doi.org/10.1007/978-1-4419-0968-8_6

  • Published:

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4419-0967-1

  • Online ISBN: 978-1-4419-0968-8

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics