library ieee
use ieee.std_logic_1164.all
entity yufei is ---定义实体
port(a,b:in std_logic ---定义两个输入端口
c:out std_logic) ---一输出端口
end entity
architecture art of yufei is--定义结构体
begin
c<=not(a and b) --c=!(a&b)
end art
你好,下面是一个简单的小例子。LIBRARY IEEE
USE IEEE.STD_LOGIC_1164.ALL
USE IEEE.STD_LOGIC_UNSIGNED.ALL
ENTITY threeInNot IS
PORT ( IN0,IN1,IN2:in std_logic
result: OUT STD_LOGIC)
END mux21a
ARCHITECTURE behav OF threeInNot IS
BEGIN
result <= NOT( IN0 and IN1 and IN2)
END behav
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)