📄 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 + -