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

📄 t42.vhd

📁 Workshop vhdl code from Esperan
💻 VHD
字号:
--
-- This file tests support for the use of the don't care "----" to perform optimisation.
-- This notation should indicate to your synthesis tool to optimize the logic for the remaining
-- cases of the decoder.
--
library IEEE;
use IEEE.Std_Logic_1164.all;
entity TEST is
	port (	A : in  std_logic_vector(2 downto 0);
		Z : out std_logic_vector(7 downto 0));
end TEST;
architecture T42 of TEST is
begin
	process(A)
	begin
		case A is
			when "000" =>
				 Z <= "11110000";
			when "001" =>
				 Z <= "00001111";
			when "010" =>
				 Z <= "00110011";
			when "100" =>
			         Z <= "11001100";
			when others => 
			 	 Z <= "--------";
		end case;
	end process;
end T42;

⌨️ 快捷键说明

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