|
|
|
OR2-9
2- to 9-Input OR Gates with Inverted and Non-Inverted Inputs
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));
|
|
|
|
www.xilinx.com |