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

📄 equal1.vhd

📁 几个稍微深入的时序逻辑电路和状态机的VHDL代码
💻 VHD
字号:
-- includes Errata 5.2
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all; -- errata 5.2

entity compare is port (
  ina: in std_logic_vector (3 downto 0);
  inb: in std_logic_vector (2 downto 0);
  equal: out std_logic
  );
end compare;

architecture simple of compare is

begin

  equalProc: process (ina, inb) begin
    if (ina = inb ) then
      equal <= '1';
    else
      equal <= '0';
    end if;
  end process;

end simple;

⌨️ 快捷键说明

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