

  <refentry id="DPGEN-OR3">
  <?dbhtml filename="man_dpgen_or3.html">

  <refmeta>
    <refentrytitle>DPGEN_OR3</refentrytitle>
    <manvolnum>3</manvolnum>
    <refmiscinfo>ASIM/LIP6</refmiscinfo>
  </refmeta>

  <refnamediv>
    <refname> DPGEN_OR3 </refname>
    <refpurpose> OR3 Macro-Generator </refpurpose>
  </refnamediv>


  <refsynopsisdiv>
    <funcsynopsis>
      <funcsynopsisinfo>#include  &lt;genlib.h&gt;</funcsynopsisinfo>
      <funcprototype>
        <funcdef>void <function>GENLIB_MACRO</function></funcdef>
          <paramdef>DPGEN_OR3</paramdef>
          <paramdef>char *<parameter>modelname</parameter></paramdef>
          <paramdef>long <parameter>flags</parameter></paramdef>
          <paramdef>long <parameter>N</parameter></paramdef>
          <paramdef>long <parameter>drive</parameter></paramdef>
      </funcprototype>
    </funcsynopsis>
  </refsynopsisdiv>

  <refsect1>
    <title> Description </title>

    <para> Generate a &N; bits three inputs OR with an output power of &drive;
    named &modelname;.
    </para>
    <para> Valid &drive; are : 2 or 4.
    </para>

    <refsect2>
      <title> Terminal Names </title>

      <orderedlist>
        <listitem>
          <para> <literal>i2</literal> : input. </para>
        </listitem>
        <listitem>
          <para> <literal>i1</literal> : input. </para>
        </listitem>
        <listitem>
          <para> <literal>i0</literal> : input. </para>
        </listitem>
        <listitem>
          <para> <literal>q</literal> : output. </para>
        </listitem>
        <listitem>
          <para> <literal>vdd</literal> : power. </para>
        </listitem>
        <listitem>
          <para> <literal>vss</literal> : ground. </para>
        </listitem>
      </orderedlist>

    </refsect2>

    <refsect2>
      <title> Behavior </title>

      <literallayout>
q <= i0 or i1 or i2
      </literallayout>

    </refsect2>

  </refsect1>

  <refsect1>
    <title> Example </title>

    <para>
    <programlisting>
GENLIB_MACRO(DPGEN_OR3, "model_or3_32"
                       , F_BEHAV|F_PLACE
                       , 32
                       , 2
                       );

GENLIB_LOINS( "model_or3_32"
            , "instance1_or3_32"
            , "i2[31:0]"
            , "i1[31:0]"
            , "i0[31:0]"
            ,  "q[31:0]"
            , "vdd", "vss", NULL
            );
    </programlisting>
    </para>

  </refsect1>

  &man-dpgen-see-also;

  </refentry>
