DPGEN_SFF(3)
πΈ DPGEN_SFF β Static Flip-Flop Macro-Generator πΈ
okay bestie, welcome to the genlib section of the manual β this one is DPGEN_SFF from the Alliance - genlib User's Manual and it's literally the blueprint for building static flip-flops. periodt. π
β¨ SYNOPSIS β¨
#include <genlib.h>
void GENLIB_MACRO (DPGEN_SFF, char *modelname, long flags, long N);
π¦ DESCRIPTION π¦
So what it does: it generates a N bits static flip-flop named modelname. and when we say static, we mean both latches inside this flip-flop are static β each one is made of two inverters looped together. no cap, that's the whole vibe of it. π₯
How it works :
- wen when set to
'1'enables the writing of the flip-flop.
π TERMINAL NAMES π
here's the full roster of terminals, bestie, all six of them, in order:
- wen : write enable (
1bit). - ck : clock signal (
1bit). - i0 : data input (
Nbits). - q : output (
Nbits). - vdd : power.
- vss : ground.
π EXAMPLE π
okay this is the part where it all comes together, look:
GENLIB_MACRO(DPGEN_SFF, "model_sff_32"
, F_BEHAV|F_PLACE
, 32
);
GENLIB_LOINS( "model_sff_32"
, "instance1_sff_32"
, "wen"
, "ck"
, "i0[31:0]"
, "q[31:0]"
, "vdd", "vss", NULL
);
likeβ¦ it ate. π
32 bits, F_BEHAV|F_PLACE flags, and the instance wired up with wen, ck, i0[31:0], q[31:0], vdd and vss. iconic behaviour honestly.
π SEE ALSO π
ngl if you got this far you're genuinely built different π«Ά go read GENLIB_MACRO(3) next, iykyk.
this page came from ASIM/LIP6, dated 30 July 2004 β yeah it's a vintage icon, it was serving before most of us could walk, and it's still slaying. βπ§π
π¦ 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