Design Automation and Testing for FPGAs
33
With a new composite type, such as a record, we can then create an
array, just as in any standard VHDL type. This requires another type
declaration, of the array type itself.
type data_array is array (natural range <>) of data_array
With these two new types we can simply declare a constant (of
type data_array) that is an array of record values (of type testdata)
that fully describe the data set to be used to test the design. Notice
that the type data_array does not have a default range, but that this
is defined by the declaration in this particular test bench.
constant test_data : data_array := ( (‘0’, ‘0’), (‘0’, ...