DPGEN_NAND2(3)
π DPGEN_NAND2(3) π
ok so bestie, this is the DPGEN_NAND2 page from the Alliance - genlib User's Manual, and honestly? it's giving iconic macro-generator energy and you're gonna eat this up. let's go β¨
πΈ NAME πΈ
DPGEN_NAND2 β the NAND2 Macro-Generator π
β¨ SYNOPSIS β¨
#include <genlib.h>
void GENLIB_MACRO (DPGEN_NAND2, char *modelname, long flags, long N,
long drive);
like, that's the whole summoning ritual. write it exactly like that or the compiler will simply not know what you want from it π
π¦ DESCRIPTION π¦
bestie, this one makes you a N bits two inputs NAND, with an output power of drive, and you get to name it modelname. yes you get to name it. main character moment fr fr.
Valid drive values are: 1 or 4. that's it. those are the only two that are valid, don't try to be creative with it π
π₯ TERMINAL NAMES π₯
i1β input. yes. an input. πi0β input. the other input. twin vibes.nqβ output. this is where the result leaves the building β¨vddβ power. she's fed.vssβ ground. she's grounded (literally).
π BEHAVIOR π
lowkey the whole personality in one line:
nq <= not(i0 and i1)
that's it. that's the vibe check. NAND. no cap.
π EXAMPLE π
ok here's what it looks like when you actually use it, copy this energy:
GENLIB_MACRO(DPGEN_NAND2, "model_nand2_32"
, F_BEHAV|F_PLACE
, 32
, 1
);
GENLIB_LOINS( "model_nand2_32"
, "instance1_nand2_32"
, "i1[31:0]"
, "i0[31:0]"
, "nq[31:0]"
, "vdd", "vss", NULL
);
see how it's a 32 bit nand2 and the drive is 1? obsessed. and then GENLIB_LOINS wires her up all pretty π«Ά
π SEE ALSO π
iykyk, go read those too, they're part of the lore π
and that's the page bestie!! this lil masterpiece comes to you from ASIM/LIP6, and the date on it is 30 July 2004 β yeah, she's vintage, she's classic, she's still slaying π β¨ 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