Forum Discussion

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

1 ENTITY and several ARCHITECTURES

I have a question. If I have one entity and several architectures, which are relating to this entity how can I understand which architecture will be used?

3 Replies

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

    It depends on the "configuration".

    The VHDL "configuration" keyword allows you to select which architecture is used by which entity.

    One other possibility is at instantiation, instead of just using the entity name, use entityname.architchecturename
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    When you instantiate the entity, you also specify which behavioral architecture should be used:

    instantiation_label : entity entity_label(architecture_identifier)

    port map (...)