Overview
A black box test specification is a document produced as part of a directed-testing methodology. It is authored by the verification engineers based on their understanding of the device under test (DUT) specification, without relying on knowledge of the DUT's internal implementation. The specification aims to fully exercise the functionality described in the DUT specification.
Role in Directed Testing
In the directed-testing flow:
- A separate verification team writes the test specification and a test bench description to provide an independent interpretation of the DUT spec.
- The black box test specification is written from the verification engineers' understanding of the DUT specification.
- The document aims to test fully all of the stated functionality in the DUT spec, and it is from this specification that the directed tests are written.
- The writing of the test specification acts as a thorough review of the DUT spec and can uncover discrepancies or holes in it.
- A complementary test bench specification describes the testbench features so that tests can exercise all of the design features and allow for the implementation of the test specification.
- Both specifications are reviewed jointly by the design and verification teams, who may suggest additional scenarios.
Coverage Considerations
Tests derived from the black box test specification are typically insufficient to reach structural coverage targets such as branch and toggle coverage. Once structural-coverage targets are not met, additional tests are specified and implemented using a white-box approach, in which a designer and verification engineer examine coverage holes and specify specific transaction sequences to hit the previously uncovered holes, resulting in a set of very targeted tests.
Related Techniques
- Directed Testing: The verification methodology within which the black box test specification is produced; the specification is the input from which directed tests are derived.