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

📄 upc.vhd

📁 学习Xilinx公司开发软件ISE的基础资料
💻 VHD
字号:
library LIB;
use LIB.SYNOPSYS.all; 
use LIB.AMD_PACK.all; 

entity UPC is
  port( OPERATION  : in UPC_OPS; 
	DATA       : in ADDRESS; 
	CARRY_IN   : in BIT; 
	CLOCK      : in BIT; 
	OUTPUT	   : buffer ADDRESS; 
	OUTPUT_BAR : out ADDRESS); 
end UPC; 

architecture UPC_HDL of UPC is 
begin 

  process
  begin 
    wait until (not CLOCK'stable and CLOCK = '1'); 

    if OPERATION = COUNT then 
      OUTPUT <= DATA + CARRY_IN; 
    else 
      OUTPUT <= ADDRESS'(others => '0');
    end if; 
  end process; 

  OUTPUT_BAR <= not OUTPUT; 
end UPC_HDL; 

⌨️ 快捷键说明

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