Previous Section Next Section

12.4 Test Plan

Tests are derived from the test plan. A test plan contains all tests that are to be run to verify the DUT. Typically, a test plan contains an exhaustive list of items to be tested. In e, tests are simply extensions of existing struct and unit definitions that impose additional constraints on these objects. Test files are very small and are easy to write and to maintain.

In this book, we will look at two simple test scenarios as a part of the test plan. Details of these test scenarios will be discussed in the following chapter.

12.4.1 Test Scenario 1 (Distribution of Packets)

Create packets with a certain probability distribution. There should be a mix of packets of different lengths. There should also be a mix of good and bad parity packets.

12.4.2 Test Scenario 2 (Protocol Violation)

Create a test that will make the packet receiver assert the read_enb_X (read_enb_0, read_enb_1 or read_enb_2) more than 30 clock cycles after vld_chan_X (vld_chan_0, vld_chan_1 or vld_chan2) is asserted. This will violate the protocol.

Previous Section Next Section