DPGEN_BUFF(3)
π DPGEN_BUFF β the Buffer Macro-Generator π
okay bestie, so this is a page straight outta the Alliance - genlib User's Manual, and it's literally the manual for DPGEN_BUFF π
buckle up, it's cute AND useful.
β¨ NAME β¨
DPGEN_BUFF β the Buffer Macro-Generator π¦ (yes that's the whole name, she's a macro, she generates buffers, iconic)
β¨ SYNOPSIS β¨
#include <genlib.h>
void GENLIB_MACRO (DPGEN_BUFF, char *modelname, long flags, long N, long
drive);
like, that's the whole vibe. one macro call, one buffer, slay β¨
β¨ DESCRIPTION β¨
She generates an N bits buffer with an output power of drive, and the whole thing is named modelname π
Valid drive values are literally just: 2, 3 or 4. that's it. those are the options. don't try to be cute and pass anything else π
π§ TERMINAL NAMES π§
i0: input πq: output πΈvdd: power β‘vss: ground π
π₯ BEHAVIOR π₯
q <= i0
no cap, that's the entire behaviour. input goes in, output comes out, the vibes are immaculate, periodt π
β¨ EXAMPLE β¨
here's her main character moment fr fr:
GENLIB_MACRO( DPGEN_BUFF
, "model_buff_32"
, F_BEHAV|F_PLACE
, 32
, 4
);
GENLIB_LOINS( "model_buff_32"
, "instance1_buff_32"
, "i0[31:0]", "q[31:0]"
, "vdd", "vss", NULL
);
a 32-bit buffer, drive 4, flags F_BEHAV|F_PLACE, and then she gets instantiated with GENLIB_LOINS β 32 bits of i0 in, 32 bits of q out, vdd and vss doing their power-and-ground thing, and a NULL to close it out. obsessed π«Ά
β¨ SEE ALSO β¨
iykyk, go read those next bestie π
ASIM/LIP6 π this one dropped on 30 July 2004, and that's the whole page β bye babes, go build some buffers πβ¨π
π¦ 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