DPGEN_OR4(3)
β¨ DPGEN_OR4 β¨
okay bestie, welcome to the Alliance - genlib User's Manual page for DPGEN_OR4, aka the OR4 Macro-Generator π
this is manual section 3, so it's a library function, not a command β iykyk π
πΈ NAME πΈ
DPGEN_OR4 β the OR4 Macro-Generator π¦
β¨ SYNOPSIS β¨
#include <genlib.h>
void GENLIB_MACRO (DPGEN_OR4, char *modelname, long flags, long N, long
drive);
like yes that's the whole vibe, she's a macro generator, she takes five args, no biggie π
π DESCRIPTION π
okay so what she does is: she generates a N bits four inputs OR with an output power of drive, named modelname. literally that's it, that's the gig π
valid drive values are: 2 or 4. that's the whole list, don't get creative π
π TERMINAL NAMES π
here's the roster, the main character lineup, in order:
i3β input. πi2β input. β¨i1β input. πΈi0β input. π¦qβ output. πvddβ power. β‘vssβ ground. π
π₯ BEHAVIOR π₯
the whole entire personality, in one line:
q <= i0 or i1 or i2 or i3
not me being obsessed with how simple that is π four ins, one out, OR gate energy, periodt π
π EXAMPLE π
here's how you actually call her, copy-paste vibes:
GENLIB_MACRO(DPGEN_OR4, "model_or4_32"
, F_BEHAV|F_PLACE
, 32
, 2
);
GENLIB_LOINS( "model_or4_32"
, "instance1_or4_32"
, "i3[31:0]"
, "i2[31:0]"
, "i1[31:0]"
, "i0[31:0]"
, "q[31:0]"
, "vdd", "vss", NULL
);
so she made a 32-bit wide model called model_or4_32 with drive of 2, and then GENLIB_LOINS wires up an instance of it named instance1_or4_32 with all those [31:0] buses slotted in. slay π«Ά
π SEE ALSO π
go read those too bestie, they're the supporting cast π
and that's the page!! brought to you by ASIM/LIP6, dated 30 July 2004 β yes she's an elder but she still ate, no cap πβ¨ππ¦πΈπ
π¦ 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