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

📄 ex_4_3_decoder.vhd

📁 This is the course for VHDL programming
💻 VHD
字号:
library IEEE;use IEEE.std_logic_1164.all;entity DECODER isport(ADR : in  STD_LOGIC_VECTOR(2 downto 0);	Y: out STD_LOGIC_VECTOR (7 downto 0));End DECODER;Architecture DF of DECODER isBegin	With ADR select	Y<=	"00000001" when "000",	"00000010" when "001",	"00000100" when "010",	"00001000" when "011",	"00010000" when "100",	"00100000" when "101",	"01000000" when "110",	"10000000" when "111",	"XXXXXXXX" when others;End DF;Architecture BEH_IF of DECODER isBegin	process(ADR)	begin		if 	ADR="000" then Y <= "00000001";		elsif	ADR="001" then Y <= "00000010";		elsif	ADR="010" then Y <= "00000100";		elsif	ADR="011" then Y <= "00001000";		elsif	ADR="100" then Y <= "00010000";		elsif	ADR="101" then Y <= "00100000";		elsif	ADR="110" then Y <= "01000000";		elsif	ADR="111" then Y <= "10000000";		else		       Y <= "XXXXXXXX";		end if;	end process;End BEH_IF;

⌨️ 快捷键说明

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