Advertisement
canezzy

Untitled

Dec 6th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. process(iCLK) begin
  2. if(iCLK'event and iCLK ='1') then
  3. if(inRST = '0') then
  4. sIC <= "00";
  5. else
  6. if(sTCS = "00") then
  7. if( sIC = "00") then
  8. oSEC <= sRES;
  9. sIC <= sIC + 1;
  10. else
  11. oSEC <= "00000000";
  12. sIC <= sIC + 1;
  13. end if;
  14. elsif(sTCS = "01") then
  15. if( sIC = "00" or sIC = "10") then
  16. oSEC <= sRES;
  17. sIC <= sIC + 1;
  18. else
  19. oSEC <= "00000000";
  20. sIC <= sIC + 1;
  21. end if;
  22. elsif(sTCS = "10") then
  23. if( sIC = "00" or sIC = "01" or sIC = "10") then
  24. oSEC <= sRES;
  25. sIC <= sIC + 1;
  26. else
  27. oSEC <= "00000000";
  28. sIC <= sIC + 1;
  29. end if;
  30. elsif(sTCS = "11") then
  31. oSEC <= sRES;
  32. else
  33. oSEC <= sRES;
  34. end if;
  35. end if;
  36. end if;
  37. end process;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement