TrickyDicky
Advanced Member level 7
![Advanced Member level 7](/styles/images/ranks/hlevel4.gif)
yes. If you get a special byte you can just force a reset. somthing like this:
I think you really need to think about how your circuit is working. Have a go at drawing out your circuit on paper before writing VHDL.
Code:
count_proc : process(reset, clk)
begin
if reset = '1' then
count <= 0;
elsif rising_edge(clk) then
if input = speicial_byte then
count <= 0;
else
count <= next_count;
end if;
end if;
end process;
I think you really need to think about how your circuit is working. Have a go at drawing out your circuit on paper before writing VHDL.