This example describes the verification of the hardware stack described in VAL/VHDL in Section 4.3. The hardware stack stores elements of type ElementT and has a maximum depth Depth. The specification and implementation are both written so as to be independent of the particular choice of Depth or ElementT. The functions abstracting the computation of the stack are described in a package StackP. This package defines an internal data type representing the stack, as well as a set of functions (SPush, SPop etc.) operating on the stack. The relationship between the functions (constraints on when the computation occurs) is given in the entity declaration. A set of VAL annotations constrain the order of computation.
Unable to display preview. Download preview PDF.