fuyongqi.vhd

来自「一些很好的FPGA设计实例」· VHDL 代码 · 共 13 行

VHD
13
字号
library ieee;
use ieee.std_logic_1164.all;
entity fuyongqi is
 port( a,b,c,d,s0,s1 :in std_logic;
       y: out std_logic);
 end fuyongqi;
architecture purelogic of fuyongqi is
begin 
y <= (a and not s1 and not s0) or
     (b and not s1 and s1)or
     (c and s1 and not s0)or
     (d and s1 and s0);
end  purelogic ;

⌨️ 快捷键说明

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