Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. when read =>
  2. if( req = "001") then
  3. next_state <= read;
  4. licz <= '0';
  5. elsif (req = "010") then
  6. next_state <= compare;
  7. licz <= '1';
  8. elsif (req = "100") then
  9. next_state <= write1;
  10. licz <= '0';
  11. else
  12. next_state <= idle;
  13. licz <= '0';
  14. end if;
  15. enable <= "00";
  16. drive <= '1';
  17. creset <= '0';
  18.  
  19.  
  20. when write1 =>
  21. next_state <= write2;
  22. enable <= "01";
  23. licz <= '0';
  24. drive <= '0';
  25. creset <= '1';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement