Guest
Sorry about the vague title, I couldn't think of a better way to phrase
this one.
Basically, I made a binary counter in VHDL. My working code is
essentially-
process(clock,delay)
begin
if rising_edge(clock) then
delay<=delay+1;
if delay=3686400 then
delay<=1;
locleds<=locleds+1;
end if;
end if;
end process;
and this works - but
process(clock,delay)
begin
if rising_edge(clock) then
delay<=delay+1;
end if;
if delay=3686400 then
delay<=1;
locleds<=locleds+1;
end if;
end process;
doesnt, it just leaves my LED's all blank. The 3686400, BTW, is because
I'm using a 3.686400Mhz osc.
I'm a bit stumped here.. can anyone help?
Thanks - Alan.
this one.
Basically, I made a binary counter in VHDL. My working code is
essentially-
process(clock,delay)
begin
if rising_edge(clock) then
delay<=delay+1;
if delay=3686400 then
delay<=1;
locleds<=locleds+1;
end if;
end if;
end process;
and this works - but
process(clock,delay)
begin
if rising_edge(clock) then
delay<=delay+1;
end if;
if delay=3686400 then
delay<=1;
locleds<=locleds+1;
end if;
end process;
doesnt, it just leaves my LED's all blank. The 3686400, BTW, is because
I'm using a 3.686400Mhz osc.
I'm a bit stumped here.. can anyone help?
Thanks - Alan.