vhdl_reference_93:allocator

Allocator

Memory is allocated for the type node . In the first example the default-value of the type node is used for initialization, in the second example the values stated in brackets are used.

NEW node
NEW node'( 15 ns, NULL )
NEW node'( delay => 5 ns,
           next => stack )

By initializing it with “01100010” the width of the allocated object is determined to be 8.

NEW bit_vector'( "01100010" )

The size of the allocated memory range is restricted by the determination of the string width (10).

NEW string( 1 TO 10 )