shaiko
Advanced Member level 5
Hello,
Signal x is a 1D array that's defined as follows:
I want to design an array shift register that shift in a vector of '0' every clock. Something like this:
Unfortunately, the above doesn't work.
What's the correct syntax to do the same ?
Signal x is a 1D array that's defined as follows:
Code:
signal x : 1d_array ( 0 to a - 1 ) ( b - 1 downto 0 ) ;
I want to design an array shift register that shift in a vector of '0' every clock. Something like this:
Code:
process ( clock ) is
begin
if rising_edge ( clock ) then
if load = '1' then
x <= input_array ;
else
x <= x ( 1 to a - 1 ) & ( x ( 0 ) ' range => '0' ) ;
end if ;
end if ;
end process ;
Unfortunately, the above doesn't work.
Operator "&" is ambiguous
What's the correct syntax to do the same ?