📄 compare8.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
entity compare8 is
port( q1,q2:in std_logic_vector(7 downto 0);
test:in std_logic;
fa:out std_logic;
fb:out std_logic);
end compare8;
architecture three of compare8 is
begin
process(q1,q2)
begin
if test='1' then
if q1=q2 then
fa<='0';fb<='1';
else fa<='1';fb<='0';
end if;
else fa<='0';fb<='0';
end if;
end process;
end three;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -