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

# locap(3)

mbk logical capacitor

## NAME

locap - mbk logical capacitor

## DESCRIPTION

The **locap** is used to describe a logical capacitor. Please note, this description is different from the RCN description and has a different purpose: the created capacitor is a functional logical capacitor, not a parasitic capacitor. For the time being, only MIM (i.e. metal/metal) and POLY/NWELL capacitors type are supported.

The declarations needed to work on **locap** are available in the header file *"/labo/include/mlo.h"*.

The following C structure supports the description of the logical capacitor :

```
typedef struct locap
	{
	  struct locap	∗NEXT ;
	  struct locon	∗TCON ;
	  struct locon	∗BCON ;
	  char	∗NAME ;
	  double	CAPA  ;
	  char	TYPE  ;
	  struct ptype	∗USER ;
	} locap_list	      ;
```

- *NEXT*

  Pointer to the next **locap** of the list.

- *TCON*

  Pointer to the tcon (top plate) connector of the capacitor. This connector is, of course unique. See [**locon**(3)](/locon/3.md) for details.

- *BCON*

  Pointer to the bcon (bottom plate) connector of the capacitor. This connector is, of course unique. See [**locon**(3)](/locon/3.md) for details.

- *NAME*

  Capacitor instance name

- *CAPA*

  Capacitance value

- *TYPE*

  Layer type of the capacitor. Two legal values are available :

  - **CAPMIM**

    Metal/metal capacitor. The top plate and the bottom plate are in different metal layers.

  - **CAPPNWELL**

    Poly/NWELL capacitor. The top plate layer is POLY, the bottom plate layer is NWELL. Note: this capacitor type is technological dependent and is not available for any technology.

- *USER*

  Pointer to a ptype list, see [**ptype**(3)](/ptype/3.md) for details,  that is a general purpose pointer used to share informations on the capacitor. This field is used with the **LOCAP\_INFO**(3) ptype to store physical informations.

## SEE ALSO

**mbk**(1), [**addlocap**(3)](/addlocap/3.md), [**getlocap**(3)](/getlocap/3.md), [**dellocap**(3)](/dellocap/3.md), [**setlocap**(3)](/setlocap/3.md), [**locon**(3)](/locon/3.md), [**lofig**(3)](/lofig/3.md), [**ptype**(3)](/ptype/3.md).
