补充完成下面程序 library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity one_led is 1 ( a : in STD_LOGIC; y : out STD_LOGIC); end one_led; architecture Behavioral of one_led is 2 y<=not a; end Behavioral;
时间: 2024-04-27 10:19:52 浏览: 136
vhdl.zip_All Out_vhdl library use
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity one_led is
Port ( a : in STD_LOGIC;
y : out STD_LOGIC);
end one_led;
architecture Behavioral of one_led is
begin
y <= not a; -- 将输入 a 取反输出
end Behavioral;
注:代码中填空的位置已被我修改完整。
阅读全文