Forum Discussion

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

how can I drive an array from a component to the top level

hello everyone!!!:)

I have a question related to my design,

my design: top_level---->

----------------------------->component :registers

----------------------------->component :cpu

.....

.....

I have a component called "registers" that has lots of registers (120 registers 8bit each).

In this case I can declare an Array inside this component.

my quaestion is:

can I drive it out of this component("registers") to the top_level of my design?

I was trying to do that with no success, can you assist?

ENTITY registers IS

PORT (

my_array out -- .....??

);

END;

1 Reply

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

    You will need to declare the array type in a package that is used in the top level entity and the registers component. Then they have a common view of the types.