📄 compare.vhd
字号:
--**************************
--* 2 Bit Comparator *
--* Filename : COMPARE *
--**************************
library IEEE;
use IEEE.std_logic_1164.all;
entity COMPARE is
port (
A: in STD_LOGIC;
B: in STD_LOGIC;
LARGE: out STD_LOGIC;
EQV: out STD_LOGIC;
SMALL: out STD_LOGIC
);
end COMPARE;
architecture COMPARE_arch of COMPARE is
begin
LARGE <= A and (not B);
EQV <= ((not A) and (not B)) or (A and B);
SMALL <= (not A ) and B;
end COMPARE_arch;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -