New
Used to dynamically allocate memory for an access type. Given a data type, new allocates storage for a value of that type, and returns a pointer to that value. Optionally, a qualified expression can be used to initialize the newly allocated value.
Syntax
{either}
new DataType
new QualifiedExpression
Where
See Expression
Synthesis
Not synthesizable.
Tips
Use the built in procedure DEALLOCATE(Ptr) to release memory allocated with new.
Example
Link := new Std_logic_vector(7 downto 0);
NewPointer := new Word'(Link, "10000000");
See Also
Access, Type, Qualified Expression, Null
|