using reset for arrays

Guest
Hi all,
I am not getting clue, how to do this:
I want to make contents of an array to be zero when RESET signal is
high.
I have been doing this in std_logic_vector but dont know how to do in
array !

-------------------------------------------------------------

type resultArray is array (0 to 62) of integer range 511 downto -511;

architecutre....


signal resultMult : resultArray;



begin
shift_reg : process (clock)

begin
if RESET='1' then --asynchronous RESET active High
-- resultMult <= (others => '0'); --THis dont work
---I want to make resultmult=0 at RESET


elsif (clock'event and clock='1') then

.......................
end process

end architecture
 
vedpsingh@gmail.com a écrit :

Hi all,
I am not getting clue, how to do this:
I want to make contents of an array to be zero when RESET signal is
high.
I have been doing this in std_logic_vector but dont know how to do in
array !
[...]
type resultArray is array (0 to 62) of integer range 511 downto -511;
[...]
-- resultMult <= (others => '0'); --THis dont work
---I want to make resultmult=0 at RESET
Hi,

resultArray is an array of integers. So elements are integers. But
'0' is not
an integer!
You should write:
resultmult <= (others => 0);

JD.
 

Welcome to EDABoard.com

Sponsor

Back
Top