VHDL allows to the use of dynamically create objects.
Probably the following link explains a lot to you:
http://mikro.e-technik.uni-ulm.de/vh...ml/node17.html
Egbert Molenkamp
"ALuPin" <> schreef in bericht
news: m...
> Hi,
>
> in "Writing Testbenches" (Second Edition / Janick Bergeron) there is the
following
> VHDL construct : (page 161)
>
>
>
> process
> subtype byte is std_logic_vector(7 downto 0);
> type region_typ is array(0 to 31) of byte;
>
> type list_el_typ;
> type list_el_ptr is access list_el_typ;
> type list_el_typ is record
> base_addr : natural;
> region : region_typ;
> next_region : list_el_ptr;
> end record;
> ...
>
> Some difficulties in understanding:
>
> 1.Why is "type list_el_typ" declared two times ?
>
> 2.What function does "access" have?
>
> 3.I cannot see what type "next_region" has. It has "list_el_ptr". But this
type
> is in turn described with access to the record type ?
>
> I would appreciate some enlightenment.
>
> Rgds
> Andrés V.