---
name: "DPGEN_SFF"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/DPGEN_SFF"
---

# DPGEN\_SFF(3)

Static Flip-Flop Macro-Generator

## NAME

DPGEN\_SFF - Static Flip-Flop Macro-Generator

## SYNOPSIS

**#include  \<genlib.h\>**

**void GENLIB\_MACRO (DPGEN\_SFF, char \****modelname***, long** *flags***, long** *N***);**

## DESCRIPTION

Generate a *N* bits static flip-flop named *modelname*. The two latches of this flip-flop are static, i.e. each one is made of two interters looped togethers.

How it works :

- •

  wen when set to '1' enables the writing of the flip-flop.

### TERMINAL NAMES

- 1\.

  wen : write enable (1 bit).

- 2\.

  ck : clock signal (1 bit).

- 3\.

  i0 : data input (*N* bits).

- 4\.

  q : output (*N* bits).

- 5\.

  vdd : power.

- 6\.

  vss : ground.

## EXAMPLE

```
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
            );
```

## SEE ALSO

[**GENLIB\_MACRO**(3)](/GENLIB_MACRO/3.md), [**genlib**(1)](/genlib/1.md)
