Return to previous page Advance to next page

OR2-9

2- to 9-Input OR Gates with Inverted and Non-Inverted Inputs
Architectures Supported
OR2, OR2B1, OR2B2, OR3, OR3B1, OR3B2, OR3B3, OR4, OR4B1, OR4B2, OR4B3, OR4B4
Spartan-II, Spartan-IIE
Primitive
Spartan-3
Primitive
Virtex, Virtex-E
Primitive
Virtex-II, Virtex-II Pro, Virtex-II Pro X
Primitive
XC9500, XC9500XV, XC9500XL
Primitive
CoolRunner XPLA3
Primitive
CoolRunner-II
Primitive
OR5, OR5B1, OR5B2, OR5B3, OR5B4, OR5B5
Spartan-II, Spartan-IIE
Primitive
Spartan-3
Primitive
Virtex, Virtex-E
Primitive
Virtex-II, Virtex-II Pro, Virtex-II Pro X
Primitive
XC9500, XC9500XV, XC9500XL
Macro
CoolRunner XPLA3
Macro
CoolRunner-II
Macro
OR6, OR7, OR8, OR9
Spartan-II, Spartan-IIE
Macro
Spartan-3
Macro
Virtex, Virtex-E
Macro
Virtex-II, Virtex-II Pro, Virtex-II Pro X
Macro
XC9500, XC9500XV, XC9500XL
Macro
CoolRunner XPLA3
Macro
CoolRunner-II
Macro

OR Gate Representations

The OR function is performed in the Configurable Logic Block (CLB) function generators for Spartan-II, Spartan-IIE, Spartan-3, Virtex, Virtex-E, Virtex-II, Virtex-II Pro, and Virtex-II Pro X. OR functions of up to five inputs are available in any combination of inverting and non-inverting inputs. OR functions of six to nine inputs are available with only non-inverting inputs. To invert some or all inputs, use external inverters. Since each input uses a CLB resource, replace functions with unused inputs with functions having the necessary number of inputs.

See “OR2-9” for information on additional OR functions for the Spartan-II, Spartan-IIE, Virtex, and Virtex-E.

OR8 Implementation Spartan-II, Spartan-IIE, Virtex, Virtex-E

OR8 Implementation Spartan-3, Virtex-II, Virtex-II Pro, Virtex-II Pro X

Usage

OR2 through OR5 are primitives that can be inferred or instantiated. OR6 through OR9 are macros which can be inferred.

VHDL Instantiation Template for OR5

Following is the VHDL code for OR5. To instantiate OR2, remove I2, I3, and I4. To instantiate OR3, remove I3 and I4, For OR4, remove I4. OR2B1, and OR2B2 have the same code as OR2. OR3B1, 3B2, and 3B3 have the same code as OR3 and so forth.


-- Component Declaration for OR5 should be placed
-- after architecture statement but before begin keyword 

component OR5
   port (O : out STD_ULOGIC;
         I0 : in STD_ULOGIC;
         I1 : in STD_ULOGIC;
         I2 : in STD_ULOGIC;
         I3 : in STD_ULOGIC;
         I4: in STD_ULOGIC);
end component;

-- Component Attribute specification for OR5 
-- should be placed after architecture declaration but 
-- before the begin keyword 

-- Attributes should be placed here

-- Component Instantiation for OR5 should be placed
-- in architecture after the begin keyword 

OR5_INSTANCE_NAME : OR5
      port map (O => user_O,
                I0 => user_I0,
                I1 => user_I1,
                I2 => user_I2,
                I3 => user_I3,

                I4 => user_I4);

Verilog Instantiation Template for OR5


OR5 OR5_instance_name (.O (user_O),
                       .I0 (user_I0),
                       .I1 (user_I1),
                       .I2 (user_I2),
                       .I3 (user_I3),

                       .I4 (user_I4));
Return to previous page Advance to next page

www.xilinx.com
1-800-255-7778