Posted By

Feb30th1712 on 05/10/08


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

nmobix


2×1 MUX


 / Published in: VHDL
 

Two-to-one multiplexer.

  1. library ieee;
  2. use ieee.std_logic_1164.all;
  3.  
  4. entity MUX is
  5. port(
  6. A: in std_logic;
  7. B: in std_logic;
  8. S: in std_logic;
  9. Z: out std_logic
  10. );
  11. end MUX;
  12.  
  13. architecture main of MUX is
  14. begin
  15. with S select Z <= A when '0', B when '1';
  16. end main;

Report this snippet  

You need to login to post a comment.