DPGEN_OR3(3)
π DPGEN_OR3 β the OR3 Macro-Generator
okay bestie, so this one lives in the Alliance - genlib User's Manual (section 3, the library functions girlies π) and it's literally called DPGEN_OR3 β yes, the OR3 Macro-Generator, no cap.
β¨ SYNOPSIS β¨
#include <genlib.h>
void GENLIB_MACRO (DPGEN_OR3, char *modelname, long flags, long N, long
drive);
that's the whole vibe up there ^^ π
πΈ DESCRIPTION πΈ
Not me generating a N bits three inputs OR with an output power of drive named modelname?? π Like, that's the entire job. That's what she does.
Valid drive are : 2 or 4. That's it. Those are the options, bestie, don't try to be cute and pass a 3. π
π¦ TERMINAL NAMES π¦
the whole friend group, in order:
i2: input.i1: input.i0: input.q: output.vdd: power.vss: ground.
three inputs, one output, and the power couple at the end. iconic. β
π BEHAVIOR π
q <= i0 or i1 or i2
literally it. OR, but make it three-wide. slay. π₯
π EXAMPLE π
here's how you actually call her:
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
);
32 bits, drive of 2, behavior + place flags, and then GENLIB_LOINS comes in and wires the whole thing up. the way that she just works π«Άβ¨
π SEE ALSO π
go read those too, iykyk π
β οΈ quick vibe check: this page is from the Alliance - genlib User's Manual, and she was written by ASIM/LIP6 back on 30 July 2004 β an absolute icon of a date. periodt. π πΈ
π¦ where this page comes from
- fedora 43: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 43: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms