M
mindentropy
Hi,
I am using a basys2 board and want to display a counter on 4 seven segment LED's. I have 2 processes one which is a counter and the other process the display logic in the same architecture.
The code is as follows:
sectimer: process(clk) is
begin:
if(rising_edge(clk)) then
if(div = someval)
increment counter;
end if;
end process;
seven_seg_proc: process(clk) is
begin:
if(rising_edge(clk)) then
<display logic based on the counter>
end if;
end process;
The problem is the counter does not seem to increment fine. If I decrease the
divider the counter does not increment faster. Can I have 2 processes driving the clock?
I am using a basys2 board and want to display a counter on 4 seven segment LED's. I have 2 processes one which is a counter and the other process the display logic in the same architecture.
The code is as follows:
sectimer: process(clk) is
begin:
if(rising_edge(clk)) then
if(div = someval)
increment counter;
end if;
end process;
seven_seg_proc: process(clk) is
begin:
if(rising_edge(clk)) then
<display logic based on the counter>
end if;
end process;
The problem is the counter does not seem to increment fine. If I decrease the
divider the counter does not increment faster. Can I have 2 processes driving the clock?