mux.vhd

来自「数字钟的VHDL源程序」· VHDL 代码 · 共 18 行

VHD
18
字号
library ieee;
use ieee.std_logic_1164.all;
entity mux is
port(d0,d1,sel:in bit;
q:out bit);
end mux;
architecture con of mux is
begin
process(d0,d1,sel)
variable t1,t2,t3:bit;
begin
t1:= d0 and sel;
t2:=d1 and (not sel);
t3:=t1 or t2;
q<=t3;
end process;
end con;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?