⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compare8.vhd

📁 实现电子密码锁的各项功能,经过编译和仿真
💻 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 + -