DPGEN_NAND3(3)
π DPGEN_NAND3 β NAND3 Macro-Generator π
okay bestie, welcome to the DPGEN_NAND3 page from the Alliance - genlib User's Manual π this is the third section of the manual, iykyk, and she's a macro-generator, which is literally so iconic of her.
β¨ NAME β¨
DPGEN_NAND3 β NAND3 Macro-Generator π¦
β¨ SYNOPSIS β¨
#include <genlib.h>
void GENLIB_MACRO (DPGEN_NAND3, char *modelname, long flags, long N,
long drive);
no cap, that's the whole vibe up there β
β¨ DESCRIPTION β¨
She generates a N bits three inputs NAND with an output power of drive named modelname. periodt π
Valid drive are : 1 or 4. that's it. those are the only two. don't try anything else, she will not be serving it π
πΈ TERMINAL NAMES πΈ
i2: input.i1: input.i0: input.nq: output.vdd: power.vss: ground.
six terminals, all of them main characters, all of them doing their little job π«Ά
π BEHAVIOR π
nq <= not(i0 and i1 and i2)
so nq is literally the negation of all three inputs ANDed together. the way that's just a NAND3. obsessed. π
β¨ EXAMPLE β¨
here's how you actually use her, bestie π
GENLIB_MACRO(DPGEN_NAND3, "model_nand3_32"
, F_BEHAV|F_PLACE
, 32
, 1
);
GENLIB_LOINS( "model_nand3_32"
, "instance1_nand3_32"
, "i2[31:0]"
, "i1[31:0]"
, "i0[31:0]"
, "nq[31:0]"
, "vdd", "vss", NULL
);
look at her go π 32 bits, drive of 1, F_BEHAV|F_PLACE flags, and a clean little instantiation right after. chef's kiss, fr fr β¨
β¨ SEE ALSO β¨
π friendly reminder bestie: keep every flag, every terminal, every number exactly as written. the vibe is flexible, the facts are not π
and that's the whole page, babe π¦ this one came from ASIM/LIP6, dated 30 July 2004 β yeah she's vintage, and she still ate π slay, bye bestie π
π¦ 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