DPGEN_AND2(3)

πŸ“¦ version 5.1.1, in fedora 43, fedora 44

πŸ’– DPGEN_AND2 πŸ’– β€” the AND2 Macro-Generator, bestie edition

okay so this is a page from the Alliance - genlib User's Manual, and it's all about DPGEN_AND2, the AND2 Macro-Generator. yes it's a manual page, no it does not have to be boring, let's go πŸ¦‹


✨ NAME ✨

DPGEN_AND2 β€” AND2 Macro-Generator 🌸


✨ SYNOPSIS ✨

#include  <genlib.h>

void GENLIB_MACRO (DPGEN_AND2, char *modelname, long flags, long N, long
drive);

✨ DESCRIPTION ✨

so what this does is it generates an N bits two inputs AND with an output power of drive, and you get to name it modelname. that's the whole vibe πŸ’…

the valid drive values are 2 or 4. that's it. those two. no others. πŸŽ€

🫢 TERMINAL NAMES 🫢

  1. i1 : input.
  2. i0 : input.
  3. q : output.
  4. vdd : power.
  5. vss : ground.

πŸ’€ BEHAVIOR πŸ’€

q <= i0 and i1

like literally that's the behavior. iconic. no cap. πŸ‘‘


🌈 EXAMPLE 🌈

GENLIB_MACRO(DPGEN_AND2, "model_and2_32"
                       , F_BEHAV|F_PLACE
                       , 32
                       , 2
                       );

GENLIB_LOINS( "model_and2_32"
            , "instance1_and2_32"
            , "i1[31:0]"
            , "i0[31:0]"
            ,  "q[31:0]"
            , "vdd", "vss", NULL
            );

look at that second block, the spacing on "q[31:0]" is exactly like that, don't come for me, that's the original and we respect the original πŸ™ˆ


🌟 SEE ALSO 🌟


and that's the page!! πŸ’– written under ASIM/LIP6, version dated 30 July 2004, which is lowkey ancient but she still ate. go generate some ANDs, bestie, you've got this πŸŽ€βœ¨πŸ¦‹