I like this access type example

Discussion in 'VHDL' started by James Unterburger, Aug 7, 2008.

  1. It doesn't really do a whole lot.


    entity e is
    end;

    architecture a of e is
    type ptr;
    type ptr is access ptr;
    begin
    process
    variable p : ptr;
    variable top : ptr;
    begin
    top := new ptr;
    p := top;
    for i in 1 to 100 loop
    p.all := new ptr;
    p := p.all;
    end loop;
    wait;
    end process;
    end;
    James Unterburger, Aug 7, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. heyo
    Replies:
    3
    Views:
    900
    Dan Pop
    Apr 1, 2004
  2. pete
    Replies:
    4
    Views:
    793
    Dan Pop
    Apr 2, 2004
  3. Patrick Kowalzick
    Replies:
    5
    Views:
    469
    Patrick Kowalzick
    Mar 14, 2006
  4. Diego Martins
    Replies:
    5
    Views:
    483
    Diego Martins
    Sep 5, 2006
  5. Sam Roberts
    Replies:
    15
    Views:
    287
    Sam Roberts
    Feb 7, 2005
Loading...

Share This Page