dontcare.vhd

来自「几个简单数字逻辑电路的VHDL代码」· VHDL 代码 · 共 24 行

VHD
24
字号
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity compareDC is port (
  addressBus: in std_logic_vector(31 downto 0);
  addressHit: out std_logic
  );
end compareDC;

architecture wontWork of compareDC is

begin

  compare: process(addressBus) begin
    if (addressBus = "011110101011--------------------") then
      addressHit <= '1';
    else
      addressHit <= '0';
    end if;
  end process compare;

end wontWork;

⌨️ 快捷键说明

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