DPGEN_NOR3(3)
π DPGEN_NOR3 π β the NOR3 Macro-Generator
okay so bestie, we're in the DPGEN_NOR3(3) page from the Alliance - genlib User's Manual, and it's literally about conjuring a NOR3 gate out of thin air. slay. let's get into it β¨
β¨ NAME β¨
DPGEN_NOR3 β the NOR3 Macro-Generator π
πΈ SYNOPSIS πΈ
#include <genlib.h>
void GENLIB_MACRO (DPGEN_NOR3, char *modelname, long flags, long N, long
drive);
π¦ DESCRIPTION π¦
So what it does is it generates a N bits three inputs NOR with an output power of drive, and you get to name it modelname. main character generator energy fr fr π
Valid drive are : 1 or 4. that's the whole list, don't get creative π
π TERMINAL NAMES π
i2: input.i1: input.i0: input.nq: output.vdd: power.vss: ground.
β BEHAVIOR β
nq <= not(i0 or i1 or i2)
the way that's just a NOR doing NOR things π
π EXAMPLE π
GENLIB_MACRO(DPGEN_NOR3, "model_nor3_32"
, F_BEHAV|F_PLACE
, 32
, 1
);
GENLIB_LOINS( "model_nor3_32"
, "instance1_nor3_32"
, "i2[31:0]"
, "i1[31:0]"
, "i0[31:0]"
, "nq[31:0]"
, "vdd", "vss", NULL
);
ngl this is the part where you copy it exactly. no cap. the flags, the numbers, the quotes β all of it stays π«Ά
π SEE ALSO π
and that's the whole vibe check, bestie π this page was brought to you by ASIM/LIP6, dated 30 July 2004, so it's vintage but it still ate πΈβ¨ go forth and generate those NOR3s, periodt π
π¦ 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