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

# DPGEN\_NUL(3)

Zero Detector Macro-Generator

## NAME

DPGEN\_NUL - Zero Detector Macro-Generator

## SYNOPSIS

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

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

## DESCRIPTION

Generate a *N* bits zero detector named *modelname*.

### TERMINAL NAMES

- 1\.

  i0 : value to check (input, *N* bits).

- 2\.

  q : null flag (output, 1 bit).

- 3\.

  vdd : power.

- 4\.

  vss : ground.

### BEHAVIOR

```
q <= <= '1' WHEN (i0 = X"00000000") ELSE '0';
```

## EXAMPLE

```
GENLIB_MACRO(DPGEN_NUL, "model_nul_32"
                      , F_BEHAV|F_PLACE
                      , 32
                      );
GENLIB_LOINS( "model_nul_32"
            , "instance1_nul_32"
            , "i0[31:0]"
            , "q"  /* Flag null. */
            , "vdd", "vss", NULL
            );
```

## SEE ALSO

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