A simple VHDL question

  • Thread starter jaypt@hotmail.com
  • Start date
J

jaypt@hotmail.com

Guest
Could anyone explain the meaning of

out0 <= (others => '0');

in the following VHDL code

if reset = '1' then
out0 <= (others => '0');
out1 <= (others => '0');
else
out0 <= in0;
out1 <= in1;
end if;

Thanks,

jay
 
Yes, it puts all the signal of out0 to '0', whatever is the width of out0


jaypt@hotmail.com wrote:
Could anyone explain the meaning of

out0 <= (others => '0');

in the following VHDL code

if reset = '1' then
out0 <= (others => '0');
out1 <= (others => '0');
else
out0 <= in0;
out1 <= in1;
end if;

Thanks,

jay
 

Welcome to EDABoard.com

Sponsor

Back
Top