GENERATE - cascaded

Discussion in 'VHDL' started by ALuPin@web.de, Apr 28, 2008.

  1. Guest

    Hi,

    I have the following GENERATE structure:


    u_cluster : for m in cCLUSTER downto 0 generate

    i_inst : xy
    port map ( xyz_i => ...);

    end generate;


    Now I want to do the following:

    u_cluster : for m in cCLUSTER downto 0 generate

    u_cases: if m=0 or m=2 generate --else : no instantiation
    i_inst : xy
    port map ( xyz_i => ...);

    end generate;

    end generate;

    How do I build that structure correctly ? Thank you for your
    suggestions.

    Rgds,
    Andre
    , Apr 28, 2008
    #1
    1. Advertising

  2. KJ Guest

    On Apr 28, 5:27 am, "" <> wrote:
    > Hi,
    >
    > I have the following GENERATE structure:
    >
    > u_cluster : for m in cCLUSTER downto 0 generate
    >
    > i_inst : xy
    > port map ( xyz_i => ...);
    >
    > end generate;
    >
    > Now I want to do the following:
    >
    > u_cluster : for m in cCLUSTER downto 0 generate
    >
    > u_cases: if m=0 or m=2 generate     --else : no instantiation
    > i_inst : xy
    > port map ( xyz_i => ...);
    >
    > end generate;
    >
    > end generate;
    >
    > How do I build that structure correctly ? Thank you for your
    > suggestions.
    >
    > Rgds,
    > Andre


    What you have shown is correct...try it and see.

    KJ
    KJ, Apr 28, 2008
    #2
    1. Advertising

  3. Guest

    Hi KJ,

    yes you are right. I was facing problems with some projekt files
    making trouble to the compiler.
    It works fine now.

    Thank you.

    Rgds,
    Andre
    , Apr 28, 2008
    #3
    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. Weng Tianxiang
    Replies:
    5
    Views:
    1,308
    Christophe
    Feb 16, 2006
  2. Michael Blackney

    C Preprocessor - Cascaded Macros

    Michael Blackney, Sep 10, 2004, in forum: C Programming
    Replies:
    1
    Views:
    710
    Chris Barts
    Sep 10, 2004
  3. sunny

    cascaded struct members.

    sunny, Oct 16, 2006, in forum: C++
    Replies:
    6
    Views:
    331
  4. Frank

    Cascaded Macros -- Back-Up

    Frank, Nov 22, 2007, in forum: C Programming
    Replies:
    1
    Views:
    324
    Eric Sosman
    Nov 22, 2007
  5. dbuchanan
    Replies:
    6
    Views:
    2,842
    Steven Cheng [MSFT]
    Jun 11, 2008
Loading...

Share This Page