DPGEN_NAND4(3)
π DPGEN_NAND4 π
okay bestie, so this is a page from the Alliance - genlib User's Manual β yes, a whole manual, and this is literally the NAND4 Macro-Generator entry. iykyk. sit down, hydrate, we're doing silicon π§β¨
β¨ NAME β¨
DPGEN_NAND4 β the NAND4 Macro-Generator, aka the girl who makes you a four-input NAND. no cap. π
πΈ SYNOPSIS πΈ
#include <genlib.h>
void GENLIB_MACRO (DPGEN_NAND4, char *modelname, long flags, long N,
long drive);
π¦ DESCRIPTION π¦
She generates an N bits four inputs NAND with an output power of drive, and you get to name her modelname. main character behaviour fr fr π
the valid drive values are literally just: 1 or 4. that's the list. that's it. don't get cute with it π
π TERMINAL NAMES π
here's the whole cast, in order, no skips:
i3β input.i2β input.i1β input.i0β input.nqβ output.vddβ power.vssβ ground.
β BEHAVIOR β
nq <= not(i0 and i1 and i2 and i3)
that's the vibe. the whole vibe. π
π₯ EXAMPLE π₯
GENLIB_MACRO(DPGEN_NAND4, "model_nand4_32"
, F_BEHAV|F_PLACE
, 32
, 1
);
GENLIB_LOINS( "model_nand4_32"
, "instance1_nand4_32"
, "i3[31:0]"
, "i2[31:0]"
, "i1[31:0]"
, "i0[31:0]"
, "nq[31:0]"
, "vdd", "vss", NULL
);
she ate that. 32 whole bits of nand. obsessed ππ
π SEE ALSO π
reminder bestie:GENLIB_MACROwantsdriveto be1or4β anything else is not the move. periodt. π
mwah, that's the page π«Ά this gem came from ASIM/LIP6, dated 30 July 2004 β yes she's an elder icon and she still slays πβ¨ bye bestie, go generate some macros πΈ
π¦ where this page comes from
- nixos 26.05: alliance 5.1.1-unstable-2025-02-24
- nixpkgs unstable: alliance 5.1.1-unstable-2025-02-24
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms