DPGEN_DFF(3)
π DPGEN_DFF β the Dynamic Flip-Flop Macro-Generator β¨
ok so this is a page from the Alliance - genlib User's Manual, and bestie, it's literally about making dynamic flip-flops. let's get into it π«Ά
πΈ NAME πΈ
DPGEN_DFF β the Dynamic Flip-Flop Macro-Generator. that's it, that's the name, iconic behavior π
β¨ SYNOPSIS β¨
#include <genlib.h>
void GENLIB_MACRO (DPGEN_DFF, char *modelname, long flags, long N);
π DESCRIPTION π
okay so what this does is generate a N bits dynamic flip-flop named modelname. and when we say dynamic, we mean it fr fr β both of the two latches in this flip-flop are dynamic, which means the data is stored in a capacitor. no cap, it's literally just vibing in a capacitor π¦
How it works :
wenwhen set to'1'enables the writing of the flip-flop.
that's the whole mechanic bestie, that's the tea β
π TERMINAL NAMES π
wen: write enable (1 bit).ck: clock signal (1 bit).i0: data input (N bits).q: output (N bits).vdd: power.vss: ground.
six terminals, all accounted for, we love a complete roster π
π₯ EXAMPLE π₯
here's the moment you've been waiting for, the demo, the main character energy:
GENLIB_MACRO(DPGEN_DFF, "model_dff_32"
, F_BEHAV|F_PLACE
, 32
);
GENLIB_LOINS( "model_dff_32"
, "instance1_dff_32"
, "wen"
, "ck"
, "i0[31:0]"
, "q[31:0]"
, "vdd", "vss", NULL
);
a 32-bit dynamic flip-flop getting born and then immediately getting instantiated. it's giving glow up β¨
π SEE ALSO π
quick vibe check: those terminal names are not optional and that wen signal is the whole personality of this macro, so pls don't sleep on it π
and that's the page!! written up by ASIM/LIP6, dated 30 July 2004 β yes bestie, this manual page is older than most of us and still serving π mwah, go build some dynamic flip-flops π¦β¨
π¦ 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