DPGEN_BUFF(3)

πŸ“¦ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

πŸ’– 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 🧚

  1. i0 : input πŸ‘‘
  2. q : output 🌸
  3. vdd : power ⚑
  4. 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