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

📄 t52.vhd

📁 Workshop vhdl code from Esperan
💻 VHD
字号:
--
-- This file tests support for Next, Exit Statements inside a while loop.
--
entity TEST is
	port (A : in  bit_vector (7 downto 0);
	      B : in  bit;
	      Z : out bit_vector (7 downto 0));
end TEST;
architecture T52 of TEST is
begin
	process(B, A)
		variable I : integer;
	begin
		I:= -1;
		while true loop
			I := I + 1;
			exit when (I > 7);
			if (A(I) = '0') then
				Z(I) <= '0';
				next;
			end if;
			Z(I) <= B;
		end loop;
	end process;
end T52;			

⌨️ 快捷键说明

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