GENLIB_PHREF(3)

GENLIB_PHREF3

Place a physical reference in the current figure at absolute coordinates

Synopsys

#include <genlib.h>
void GENLIB_PHREF(type, name, x, y)
char ∗type, ∗name;
long x, y;

Parameters

type

Type of the reference to be added

name

Name of the reference

x, y

Absolute coordinates of the reference

Overview

PHREF adds a reference in the current layout cell, at the specified coordinates. A reference is an object that allows to symbolicaly name a point for futur use by the designer. They have been mainly used in the past to program decoders, in order to obtain many cells from a unique cell.

The type argument may take the two following legal values:

ref_con

for virtual connectors, see dpr(1) for details.

ref_ref

for any other need from the designer.

Errors

"GENLIB_PHREF 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 reference inside it. you must call DEF_PHFIG before any other layout action.

Examples

#include <genlib.h>
main()
{
	/∗ Create a figure to work on  ∗/
	GENLIB_DEF_PHFIG("cell");
	.
	/∗ Put a reference ∗/
	GENLIB_PHREF("ref_con", "in_a[0]", 102L, 10L);
	.
	.
	GENLIB_DEF_AB(0L, 0L, 0L, 0L);
	/∗ Save 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.