Advertisement
Guest User

lniv

a guest
Nov 12th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. if (rst=0) s<=s0
  2. else if (s=s0) s<=s1
  3. else if (s=s1) s<=s2
  4.  
  5. if (s=s1) then
  6. pc <= pc+1
  7. end
  8.  
  9. if (rst=0) then
  10. pc <= 0
  11. reset <= 0
  12. end
  13.  
  14. if (s=s1) then
  15. adr <= data(7:0)
  16. end
  17.  
  18. if (s=s2) then
  19. adr <= pc
  20. end
  21.  
  22. if (adr=0) data=0x103
  23. else if (adr=1)data=0x804
  24. else if (adr=2)data=0x402
  25. else if (adr=3) data=4
  26. else if (adr=4) data=5
  27.  
  28. if(data(11:8)=4) then
  29. pc <= data(7:0)
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement