compa.vhd

来自「实现电子密码锁的各项功能,经过编译和仿真」· VHDL 代码 · 共 19 行

VHD
19
字号
library ieee;
use ieee.std_logic_1164.all;
entity compa is 
port( q11,q22:in std_logic_vector(7 downto 0);
        police:out std_logic
       );
 end compa;
  architecture compare_arc of compa is
        begin 
            process(q11,q22)
                 begin
                      if q11=q22 then 
                         police<='0';
                      else police<='1';
                     end if;
             end process; 
          end compare_arc;

⌨️ 快捷键说明

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