pad.vhd

来自「多个Verilog和vhdl程序例子」· VHDL 代码 · 共 24 行

VHD
24
字号
-- This example shows one how to force
-- a particular pad type for maps to
-- lucent.


library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity adder8 is
        generic (num_bits : integer := 8) ;
        port ( a,b:      in std_logic_vector (num_bits -1 downto 0);
               result:     out std_logic_vector(num_bits -1 downto 0) );
attribute orca_padtype : string;
attribute orca_padtype of a : signal is "IBT";

end adder8;

architecture behave of adder8 is

begin
        result <= a + b;
end;

⌨️ 快捷键说明

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