Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. clock_proc : process begin -- sinchrosignal ą valdantis procesas
  2. x1 <= '0';
  3. wait for 8 ns ;
  4. x1 <= '1';
  5. wait for 8 ns ;
  6. end process ;
  7. reset_proc : process begin -- nustatymo i 0 signal ą valdantis procesas
  8. reset <= '0';
  9. wait for 2 ns ;
  10. reset <= '1';
  11. wait ;
  12. end process ;
  13. test_proc : process begin -- trigerio signalus valdantis procesas
  14. x2 <= '0'; x3 <= '0'; x4 <= '0'; -- saugo
  15. wait for 20 ns ;
  16. x2 <= '1'; x3 <= '1'; x4 <= '0'; -- iraso 1
  17. wait for 20 ns ;
  18. x2 <= '0'; x3 <= '0'; x4 <= '0'; -- saugo
  19. wait for 20 ns ;
  20. x2 <= '0'; x3 <= '0'; x4 <= '1'; -- iraso 0
  21. wait for 20 ns ;
  22. x2 <= '0'; x3 <= '0'; x4 <= '0'; -- saugo
  23. wait for 50 ns ;
  24. x2 <= '1'; x3 <= '1'; x4 <= '0'; -- iraso 1
  25. wait for 20 ns ;
  26. x2 <= '0'; x3 <= '0'; x4 <= '1'; -- iraso 0
  27. wait for 20 ns ;
  28. end process ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement