用with-select-when语句描述4个16位至一个16位输出的4选1多路选择器
用with-select-when语句描述4个16位至一个16位输出的4选1多路选择器
日期:2013-05-30 20:55:10 人气:1
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity mux4 is
port(d0,d1,d2,d3 :in std_logic;
a0,a1 :in std_logic;
q :out std_logic);
end mux4;