Generate Statement

Discussion in 'VHDL' started by sridar, Nov 2, 2009.

  1. sridar

    sridar

    Joined:
    Jun 5, 2007
    Messages:
    51
    Hi all, I want to know whether the following approach is correct using for generate statement

    l1: For i in 0 to 5 generate

    l2: For j in 0 to (2**(5-i))-1 generate

    Note that in the loop 2, I am referring loop1's value i.
    sridar, Nov 2, 2009
    #1
    1. Advertising

  2. sridar

    joris

    Joined:
    Jan 29, 2009
    Messages:
    152
    yes that should work fine
    joris, Nov 3, 2009
    #2
    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. Isaac

    Error Generate Statement

    Isaac, Aug 7, 2003, in forum: VHDL
    Replies:
    3
    Views:
    2,386
    Keith Williams
    Aug 7, 2003
  2. Roman Zeilinger

    For Loop Generate Statement

    Roman Zeilinger, Sep 23, 2004, in forum: VHDL
    Replies:
    2
    Views:
    3,344
    Allan Herriman
    Sep 23, 2004
  3. Weng Tianxiang
    Replies:
    5
    Views:
    1,300
    Christophe
    Feb 16, 2006
  4. PengYu.UT@gmail.com
    Replies:
    3
    Views:
    398
    red floyd
    Apr 7, 2006
  5. Harlan Messinger
    Replies:
    2
    Views:
    2,281
    John Bell
    Mar 28, 2010
Loading...

Share This Page