VHDL--how to invoke 2-dimmension array from another module

Joined
Apr 29, 2008
Messages
3
Reaction score
0
Hello everyone,

I'm doing a Viterbi Decoder Project,met a problem when preparing to invoke a 2-dimmension array from module(A) to module(B).

-------code in module(B):

use.work.my_pack.all;
architecture behavior of TBU is

type TB_array is array(0 to 3, 0 to 14) of integer range 0 to 14;
signal A : TB_array;
-------------------------



This array has been assigned value in module(A).I'd like to invoke it.
So I write a package as follows,but it doesn't work.

package my_pack is
type TB_array is array(0 to 3, 0 to 14) of integer range 0 to 14;
end package;

Please help me figure it out, many thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,918
Members
47,458
Latest member
Chris#

Latest Threads

Top