Burns111
Newbie level 1
Code:
clkloop: process
begin
while not complete loop
clock<=0;wait for 10ns;
clock<=1; wait for 10ns;
end loop;
wait;
end process clkloop;
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.
clkloop: process
begin
while not complete loop
clock<=0;wait for 10ns;
clock<=1; wait for 10ns;
end loop;
wait;
end process clkloop;
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 clkloop: process begin while not complete loop -- start the loop if complete is not true clock <= '0'; -- assign '0' to clock wait for 10ns; -- wait 10 ns clock <= '1'; -- now assign '1' to clock wait for 10ns; -- again wait for 10 ns end loop; -- if complete is still not true, jump to beginning of the loop and restart, clock will toggle between '0' and '1' with period is 20 ns (50 MHz) wait; -- forever -- if end of loop (complete = true) stop the process end process clkloop;