W
walala
Guest
Dear all,
I declared:
Variable Temp: INTEGER RANGE -32768 TO 32767;
Signal x: INTEGER RANGE -128 TO 127;
Signal y: INTEGER RANGE -128 TO 127;
I want to do:
Temp=32*x;
y=Temp(15 downto 8);
The compiler has an error message:
Prefix of a slice must be an array...
Which conversion function shall I use in order to get the higher byte
of the 2-word databus?
Thanks a lot,
-Walala
I declared:
Variable Temp: INTEGER RANGE -32768 TO 32767;
Signal x: INTEGER RANGE -128 TO 127;
Signal y: INTEGER RANGE -128 TO 127;
I want to do:
Temp=32*x;
y=Temp(15 downto 8);
The compiler has an error message:
Prefix of a slice must be an array...
Which conversion function shall I use in order to get the higher byte
of the 2-word databus?
Thanks a lot,
-Walala