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

📄 second.vhd

📁 <CPLDFPGA嵌入式应用开发技术白金手册>配套源代码
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
entity second is
     port(a,b,c,zin,yin:in std_logic;
          dout,eout,fout,gout:out std_logic);
end second;

architecture rtl of second is
begin
   process(a,zin,yin)
     begin
       if(a='1')then
	    dout<='1';
	    eout<=zin;
       else
	    dout<='0';
        eout<=yin;
       end if;
   end process;
   
   process(a,b)
     begin
       if(b='1')then
	     fout<='1';
       else
	     fout<='0';
       end if;
   end process;
   
   process(c,a,b)
     begin
       if(b='1' and a='1' and c='1')then
	     gout<='1';
       else
	     gout<='0';
       end if;
   end process;
end rtl;

⌨️ 快捷键说明

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