主权项 |
1. A method for verifying a counter design within a tolerance window within which a race condition occurs between a context event and a design event, comprising:
receiving, by a processor, a plurality of events within the counter design, the plurality of events including the context event and the design event; dynamically determining, by the processor, the tolerance window around the context event by setting a first portion of the tolerance window to precede an occurrence of the context event and by setting a second portion of the tolerance window to follow the context event; and performing, by the processor, a verification by:
determining whether the design event is within the first portion of the tolerance window, and when the design event is within the second portion of the tolerance window, qualifying the design event with a current context and recording the design event in a reference model counter, anddetermining whether the design event is within the second portion of the tolerance window, and when the design event is within the second portion of the tolerance window, qualifying the design event with a previous context and a next context, wherein the next context is a result of the context event. |