or2_ent.vhd

来自「VHDL source code for test machine.」· VHDL 代码 · 共 25 行

VHD
25
字号
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

--  Uncomment the following lines to use the declarations that are
--  provided for instantiating Xilinx primitive components.
--library UNISIM;
--use UNISIM.VComponents.all;

entity or2_ent is

	port(D_IN : in std_logic_vector(1 downto 0);
		  D_OUT : out std_logic 
		  );
end or2_ent;

architecture Behavioral of or2_ent is

begin

	 	 D_OUT <= D_IN(0) or D_IN(1);

end Behavioral;

⌨️ 快捷键说明

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