LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cores > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Roberto Ammendola<roberto.ammendola@r...>
    Date: Wed Apr 20 14:56:08 CEST 2005
    Subject: [oc] Operations within a vector
    Top
    A VHDL how-would-you-do-this question (if allowed here).

    Suppose you have a parametric generation of instances of a certain
    component.
    Something like:

    inst_generator: for i in 0 to PARAMETER generate
    my_inst: component_name
    port map(
    a => a(i), -- an in signal, std_logic type
    b => b(i) -- an out signal, std_logic type
    );
    end generate;

    Now suppose that you want to OR (or whatever) a certain out signal of
    the port map of a certain instance with the same signal from all the
    instances; in our case a std_logic_vector(PARAMETER downto 0) global_b
    which would be:

    global_b <= b(0) or b(1) or ... or b(PARAMETER-1) or b(PARAMETER);

    So, how would you calculate global_b, keeping the parametric feature in
    your code?

    And, more complex, what if b is a vector itself?

    greetings
    Roberto

    --
    ______________________________________________________________________

    Roberto Ammendola INFN - Roma II - APE group
    tel: +39-0672594504 email: roberto.ammendola@r... // \
    Via della Ricerca Scientifica 1 - 00133 Roma \\_/ //
    __________________________________________ ''-.._.-''-.._.. -(||)(')
    '''


    Follow upAuthor
    [oc] Operations within a vectorDavid Brochart

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.