comparator.vhd

来自「这个是Xilinx编程的源码」· VHDL 代码 · 共 33 行

VHD
33
字号

-----------------------------------------------------------------------------
-- Entity:  comparator
-- File:	comparator.vhd
-- Author:	Jose Luis Nunez 
-- Created: 27/6/05	
--
------------------------------------------------------------------------------

-- compares two numbers and generates equality and less than

library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned."<";
use IEEE.std_logic_unsigned."=";


entity comparator is
   port (
	  indata_a : in std_logic_vector(3 downto 0);
	  indata_b : in std_logic_vector(3 downto 0); 
	  lt : out std_logic; 
	  eq : out std_logic   	  
    );
end; 

architecture struct of comparator is
  
begin   
	
-- add code here

end struct;

⌨️ 快捷键说明

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