Advertisement
Guest User

multiplekser

a guest
Jan 22nd, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. library IEEE;
  2. use IEEE.STD_LOGIC_1164.ALL;
  3.  
  4. entity multiplekser is
  5. Port(U:in STD_LOGIC;
  6. clk10: in STD_LOGIC;
  7. clk1:in STD_LOGIC;
  8. Sl:in STD_LOGIC;
  9. U10:in STD_LOGIC;
  10. x:out STD_LOGIC);
  11. end multiplekser;
  12. architecture multi of multiplekser is
  13. begin
  14. process(Sl,U10)
  15. begin
  16. if (Sl ='1' and U10='0')
  17. then
  18. x<=U;
  19. else if
  20. (Sl='0' and U10='1')
  21. then
  22. x<=clk10;
  23. else
  24. X<=clk1;
  25. end if;
  26. end if;
  27. end process;
  28. end multi;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement