?? upc.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 + -