- Aug 21, 2005
- 3,888
- 8
- 81
Hey guys,
First off, I'm very new to VHDL. I have a lab assignment that requires some shifting of characters per clock tick (a one hertz pulse). This is the code I came up with, but every time I synthesize I get warnings saying the signals are latching. After I try to program the FPGA, this is apparent and the code doesn't function correctly. I'm not sure how to fix it. Any help/clues?
First off, I'm very new to VHDL. I have a lab assignment that requires some shifting of characters per clock tick (a one hertz pulse). This is the code I came up with, but every time I synthesize I get warnings saying the signals are latching. After I try to program the FPGA, this is apparent and the code doesn't function correctly. I'm not sure how to fix it. Any help/clues?
Code:
shift_char: process(one_Hz_pulse, BTN0, SLIDERSWITCHES, char_temp, chars)
begin
if (one_Hz_pulse = '1') then
if (BTN0 = '1') then
char_temp <= (others => '0');
else
char_temp <= SLIDERSWITCHES;
chars(15 downto 12) <= char_temp;
chars (11 downto 0) <= chars(15 downto 4);
end if;
end if;
end process;
