V
vijayant.rutgers@gmail.co
Guest
Hi,
My basic requirement is to have a set of commands for a block. This
has been declared as :
TYPE command IS ARRAY (NATURAL range <> OF NATURAL;
CONSTANT block1_command :command:=
(
-- ('1','0','1',X"0F_0F"),
(16#1F#),
(16#11#),
(16#12#),
(16#15#)
);...follows...
Now I have 5-6 blocks as :
TYPE blocks IS (block1, block2....block5);
I wish to link block1 with block1_command ; block2 with
block2_command.....etc.....i.e. if I pass 'block1' to my entity, it
should get associated with block1_command.
One way of doing this is :
type command_table is array (blocks, command) of blocks; but this
doesnt work since command is not discrete....
Can anyone help me with some other method ?
Help appreciated.
Thanks,
Vijayant
My basic requirement is to have a set of commands for a block. This
has been declared as :
TYPE command IS ARRAY (NATURAL range <> OF NATURAL;
CONSTANT block1_command :command:=
(
-- ('1','0','1',X"0F_0F"),
(16#1F#),
(16#11#),
(16#12#),
(16#15#)
);...follows...
Now I have 5-6 blocks as :
TYPE blocks IS (block1, block2....block5);
I wish to link block1 with block1_command ; block2 with
block2_command.....etc.....i.e. if I pass 'block1' to my entity, it
should get associated with block1_command.
One way of doing this is :
type command_table is array (blocks, command) of blocks; but this
doesnt work since command is not discrete....
Can anyone help me with some other method ?
Help appreciated.
Thanks,
Vijayant