TrickyDicky
Advanced Member level 7
post some example code, so I get what you mean.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if (enable = '0') then
data_count <= 0;
pre_count <= 0;
pre_count_1 <= 0;
pre_count_2 <= 0;
elsif (data_sync(1) = '1') then
pre_count <= 0;
elsif rising_edge(clk) then
pre_count <= pre_count + 1;
end if;