Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. elsif rising_edge(BCLK) then
  2. PDL_BUF <= PDL1;
  3. PDR_BUF <= PDR1;
  4. READY <= '1';
  5. VALID <= '1';
  6.  
  7. bitcounter := bitcounter + 1;
  8.  
  9. if bitcounter = 1 then
  10. WSP <= '1';
  11. else
  12. WSP <= '0';
  13.  
  14. end if;
  15.  
  16. if bitcounter >= 0 and bitcounter <= 23 then
  17. WS <= '0';
  18. elsif bitcounter > 24 then -- and bitcounter <= 48
  19. WS <= '1';
  20. WSP <= '0';
  21.  
  22. end if;
  23.  
  24. if WS = '0' then
  25. SD <= PDL_BUF(23);
  26. PDL_BUF <= PDL_BUF(22 downto 0) & '0';
  27. else --if WS = '1' then
  28. SD <= PDR_BUF(23);
  29. PDR_BUF <= PDR_BUF(22 downto 0) & '0';
  30.  
  31. end if;
  32.  
  33. if bitcounter = 48 then
  34. bitcounter := 0;
  35.  
  36. end if;
  37. end if;
  38. end process;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement