GENLIB_REVERSE_PHCON(3)

GENLIB_REVERSE_PHCON3

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.

Overview

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.

Examples

#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();
}

Releases

4 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–8
  2. 9–10

From alliance 5.1.1-3 in Debian 10 (Buster). Parsed by carta from the page's man source.