Hi all,
I was using a VHDL code which consists from switches. I used the following code to detect the switch activity:
if (SW = '1') then
When looking at the datasheet of the FPGA board I realized that the pins are connected with pullup resistors and a switch to ground.
Should the code be: if (SW = '0') then ?
If so, why is the program working fine with: if (SW = '1') then ?
Also, what is meant by: (others => '0'); ?
Thanks in advance and sorry for my poor English.
I was using a VHDL code which consists from switches. I used the following code to detect the switch activity:
if (SW = '1') then
When looking at the datasheet of the FPGA board I realized that the pins are connected with pullup resistors and a switch to ground.
Should the code be: if (SW = '0') then ?
If so, why is the program working fine with: if (SW = '1') then ?
Also, what is meant by: (others => '0'); ?
Thanks in advance and sorry for my poor English.