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

# GENLIB\_REVERSE\_PHCON(3)

reverse the order of physical connectors on a bus.

## NAME

GENLIB\_REVERSE\_PHCON - reverse the order of physical connectors on a bus.

## SYNOPSYS

```
#include <genlib.h>
void GENLIB_REVERSE_PHCON(basename)
char ∗basename;
```

## PARAMETERS

- *basename*

  Radical of the vector to be reversed.

## DESCRIPTION

**REVERSE\_PHCON** will change the indexes of the vector called *basename*, making the greatest values the smallest and so on. Both hard connectors, created by **PHCON**(3) like functions and virtual ones, done with **PHREF**(3), will be taken into account for the reverse operation. This function is mainly useful to implement the **msb0** options of the **Alliance** CAD system module generators, as the whole design can be done with the designer choosen bit ordering, and modified on user demand only before saving.

## EXAMPLE

```
#include <genlib.h>
main()
{
	GENLIB_DEF_PHFIG("rom");
	/∗ Create a figure to work on  ∗/
	.
	.
	.
	/∗ Reverse the bit ordering if needed ∗/
	if (msb0)
		GENLIB_REVERSE_PHCON("adr");
	/∗ Save all that on disk ∗/
	GENLIB_SAVE_PHFIG();
}
```

## SEE ALSO

[**genlib**(1)](/genlib/1.md), [**GENLIB\_PHCON**(3)](/GENLIB_PHCON/3.md), [**GENLIB\_PHREF**(3)](/GENLIB_PHREF/3.md), [**GENLIB\_COPY\_UP\_CON**(3)](/GENLIB_COPY_UP_CON/3.md), [**GENLIB\_COPY\_UP\_ALL\_CON**(3)](/GENLIB_COPY_UP_ALL_CON/3.md), [**GENLIB\_COPY\_UP\_CON\_FACE**(3)](/GENLIB_COPY_UP_CON_FACE/3.md), [**GENLIB\_COPY\_UP\_REF**(3)](/GENLIB_COPY_UP_REF/3.md).
