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

📄 decoder24.vhd

📁 本程序以XILINX公司的ISE8.2为开发平台
💻 VHD
字号:
------------------------------------------------------------------------------------ Company: -- Engineer: -- -- Create Date:    15:55:46 06/13/2007 -- Design Name: -- Module Name:    decoder24 - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: ---- Dependencies: ---- Revision: -- Revision 0.01 - File Created-- Additional Comments: ------------------------------------------------------------------------------------library IEEE;use IEEE.STD_LOGIC_1164.ALL;use IEEE.STD_LOGIC_ARITH.ALL;use IEEE.STD_LOGIC_UNSIGNED.ALL;---- Uncomment the following library declaration if instantiating---- any Xilinx primitives in this code.--library UNISIM;--use UNISIM.VComponents.all;entity decoder24 is    Port ( a1 : in  STD_LOGIC;           a0 : in  STD_LOGIC;           y : out  STD_LOGIC_VECTOR (3 downto 0));end decoder24;architecture Behavioral of decoder24 issignal inputnum :std_logic_vector(1 downto 0);begin
  inputnum <=a1&a0;  process(inputnum)     begin
	    case inputnum is
		          when "00" =>y<="0001"; 
					 when "01" =>y<="0010"; 
					 when "10" =>y<="0100"; 
					 when "11" =>y<="1000";
                when others =>y<="1111";
       end case;
  end process;		 end Behavioral;

⌨️ 快捷键说明

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