Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

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

Altera_Forum
Honored Contributor II
1,203 Views

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;
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
475 Views

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.

0 Kudos
Reply