O
Okashii
Guest
I have this package
PACKAGE my_pkg is
type global_array1 is array(0 to 20) of integer;
END my_pkg;
and an entity
ENTITY synthetic2 IS
port(
returnVar_synthetic2 : OUT integer ;
parameter_a: INOUT global_array1;
CLOCK : IN std_logic ;
RESET : IN std_logic ;
.......
Both of these are on the same file. The syntax checking shows no problem,
but when I run a test bench waveform of a synthetic2 in
modelsim, it says
# ** Error: forloopwave.vhw(36): Unknown identifier 'global_array1base'.
ARCHITECTURE testbench_arch OF forloopwave IS
COMPONENT synthetic2
PORT (
returnVar_synthetic2 : Out INTEGER;
parameter_a : InOut global_array1Base (0 To 20);
.......................
It seems that the type for parameter_a, which was global_array1 defined in
the package, has now changed to 'global_array1base' and is unrecognizable.
Is this any way around this problem?
Any help is appreciated!
PACKAGE my_pkg is
type global_array1 is array(0 to 20) of integer;
END my_pkg;
and an entity
ENTITY synthetic2 IS
port(
returnVar_synthetic2 : OUT integer ;
parameter_a: INOUT global_array1;
CLOCK : IN std_logic ;
RESET : IN std_logic ;
.......
Both of these are on the same file. The syntax checking shows no problem,
but when I run a test bench waveform of a synthetic2 in
modelsim, it says
# ** Error: forloopwave.vhw(36): Unknown identifier 'global_array1base'.
ARCHITECTURE testbench_arch OF forloopwave IS
COMPONENT synthetic2
PORT (
returnVar_synthetic2 : Out INTEGER;
parameter_a : InOut global_array1Base (0 To 20);
.......................
It seems that the type for parameter_a, which was global_array1 defined in
the package, has now changed to 'global_array1base' and is unrecognizable.
Is this any way around this problem?
Any help is appreciated!