DPGEN_AND2(3)
π 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 π«Ά
i1: input.i0: input.q: output.vdd: power.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 πβ¨π¦
π¦ 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