- 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.
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.