SHARE
TWEET

multiplekser

a guest Jan 22nd, 2020 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top