t175.vhd
来自「Workshop vhdl code from Esperan」· VHDL 代码 · 共 23 行
VHD
23 行
--
-- This file tests for resource sharing when using
-- identical expressions more than once inside a complex expression.
-- This code should create only one adder if resource sharing is handeled.
--
entity TEST is
port( A,B,C : in integer range 0 to 7;
Y : out integer range 0 to 15);
end TEST;
architecture T175 of TEST is
begin
process(A, B, C)
begin
if (A + B = 0) then
Y <= A;
elsif (A + B < 10) then
Y <= B;
else
Y <= C;
end if;
end process;
end T175;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?