protel电路板设计

源代码在线查看: add.vhd

软件大小: 160 K
上传用户: xiertianya
关键词: protel 电路板设计
下载地址: 免注册下载 普通下载 VIP

相关代码

				LIBRARY IEEE;
				USE IEEE.STD_LOGIC_1164.ALL;
				ENTITY add IS
				  PORT(a:in STD_LOGIC_VECTOR(3 DOWNTO 0);
				       b:in STD_LOGIC_VECTOR(3 DOWNTO 0);
				       cin:in STD_LOGIC;
				       sum:out STD_LOGIC_VECTOR(3 DOWNTO 0);
				       count:out STD_LOGIC
				);
				END add;
				ARCHITECTURE add_arch OF add IS
				SIGNAL C:STD_LOGIC_VECTOR(4 DOWNTO 0);
				begin
				    process(a,b,cin,c)
				begin
				  --
				  c(0)				  for i in 0 to 3 loop
				       sum(i)				       c(i+1)				  end loop;
				count				end process;
				end add_arch;
							

相关资源