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

# GENLIB\_COPY\_UP\_ALL\_CON(3)

copy all physical connectors of an instance face in the current figure

## NAME

GENLIB\_COPY\_UP\_ALL\_CON - copy all physical connectors of an instance face in the current figure

## SYNOPSYS

```
#include <genlib.h>
void GENLIB_COPY_UP_ALL_CON(face, insname, concatenate)
char face, concatenate;
char ∗insname;
```

## PARAMETERS

- *face*

  Face of the instance

- *insname*

  Name of the instance the connector belongs to

- *concatenate*

  Indicates wheter or not to concatenate instance connectors names with instance name

## DESCRIPTION

**COPY\_UP\_ALL\_CON** copies all instance connectors of the face *face* of the placed instance called *insname* into the current layout. The *concatenate* argument may take two values:

- **YES**

  then the resulting name of a connector in the current figure is the concatenation of the *insname* and the *conname*. It warranties the unicity of name at the figure level, and is to be used most of the time.

- **NO**

  implies a direct copy of the connector name. The user must take care of the unicity of connector name by itself.\
   Two behaviour are expected, depending on each of the instance connectors location regarding the *abutment box* of the current figure.

- Connector on the *abutment box*

  The figure connector is place right over the instance connector. The single connector is duplicated.

- Connector inside the *abutment box*

  The instance connector face is computed in the figure, and then, the connector is duplicated *on* the given face, at the right coordinates for this face. Then a wire is drawn between the instance connector and the figure connector in the connector layer.

## ERRORS

**"GENLIB\_COPY\_UP\_ALL\_CON impossible : missing GENLIB\_DEF\_PHFIG"**

No figure has been yet specified by a call to **DEF\_PHFIG**. So it isn't possible to place a connector inside it. you must call **DEF\_PHFIG** before any other layout action.

**"\*\*\* genlib error \*\*\* GENLIB\_COPY\_UP\_ALL\_CON impossible : connector** *conname* **face** *face* **of instance** *insname***,** *current* **figure doesn't exist"**

No connector matches both the *conname* and the *face* arguments.

## EXAMPLE

```
#include <genlib.h>
main()
{
	/∗ Create a figure to work on  ∗/
	GENLIB_DEF_PHFIG("cell");
	.
	.
	GENLIB_PLACE_LEFT("gaer0_f", "insN", SYMXY);
	.
	.
	GENLIB_DEF_AB(0L, 0L, 0L, 0L);
	/∗ Copy all connectors ∗/
	GENLIB_COPY_UP_ALL_CON(NORTH, "insN", YES);
	/∗ Save that on disk ∗/
	GENLIB_SAVE_PHFIG();
}
```

## SEE ALSO

[**genlib**(1)](/genlib/1.md), [**GENLIB\_DEF\_PHFIG**(3)](/GENLIB_DEF_PHFIG/3.md), [**GENLIB\_SAVE\_PHFIG**(3)](/GENLIB_SAVE_PHFIG/3.md), [**GENLIB\_COPY\_UP\_CON**(3)](/GENLIB_COPY_UP_CON/3.md), [**GENLIB\_COPY\_UP\_CON\_FACE**(3)](/GENLIB_COPY_UP_CON_FACE/3.md), [**GENLIB\_PHCON**(3)](/GENLIB_PHCON/3.md), **GENLIB\_THRU\_CON\_H**(3), **GENLIB\_THRU\_CON\_V**(3).
