Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

How to efficiently construct architecture with large amount of identical components

Say an architecture has got 500 ALUs having exactly the same structure. Even if I use COMPONENT in VHDL still I need to instantiate each one of them which is huge amount of labouring...

So what is the efficient way of instantiating the same component for many times?

Thanks a lot!

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Draw yourself a picture and try to figure out an indexing scheme for the nets connecting the components. Once you have that, you can create a 'generate' loop where you instantiate the components.

    As an example, look at the multiplexer posted in this thread:

    http://www.alteraforum.com/forum/showthread.php?t=35540

    There's a PDF showing the indexing scheme and then source showing the implementation. The same concept applies when creating adder-trees, bit-error-rate counters, etc.

    Cheers,

    Dave