WIRE2 - place two physical segments in the current figure
#include <genlib.h>
void WIRE2(layer, width, ins1, con1, index1, ins2, con2, index2, x, y)
char layer;
long width;
char *ins1, *con1, *ins2, *con2;
long x, y;
This software belongs to the ALLIANCE CAD system from the CAO-VLSI team at
ASIM/LIP6/UPMC laboratory.
LIP6/ASIM
University P. et M. Curie
4, place Jussieu
75252 PARIS Cedex 05
FRANCE
Fax : {33/0} 1.44.27.62.86
E-mail support : alliance-support@asim.lip6.fr
WIRE2 adds two segments made of the layer level in the current layout cell, the starting point beeing the connector, or reference, con1 of the instance ins1, and the ending point beeing the connector, or reference, con2 of the instance ins1. The first segment is drawn between the coordinates of con1 in the current figure and x, y, and the second one between x, y and the coordinates of con2 in the current figure.
If the endpoints are connectors, the indexes index1 and index2 must respectivly refer to con1 and con2. If they are references, then they are not taked care of. One shall notice that connectors and references of a given model should not share names if WIRE2 is to be used.
The layer argument can take the following legal values :
WIRE2 impossible : missing DEF_PHFIG"
No figure has been yet specified by a call to DEF_PHFIG. So it
isn't possible to place an instance inside it. you must call
DEF_PHFIG before any other layout action.
illegal addphseg : x1, y1, x2, y2"
A symbolic segment must be either vertical or horizontal, so either
x1 = x2, or y1 = y2. Since WIRE2 creates segments from relative
coordinates, care must be taken to follow the previous rule.
WIRE2 impossible : same name conX, for connector and reference in insX"
The model of the instance insX has both a connector and a reference
that matches the conX name. This is not legal since genlib doesn't
know which one to choose as point.
illegal getphins : instance insX does not exist"
The instance called insX does not currently belong to the figure.
#include <genlib.h>
main()
{
/* Create a figure to work on */
DEF_PHFIG("cell");
PLACE("gaci0_b", r_addin_1", NOSYM, 0, 0);
PLACE_TOP("gacin_b", r_addin_2", NOSYM);
PLACE_RIGHT("gapgn_b", pg", NOSYM);
/* Draw a segment */
WIRE2(ALU1, 1, r_addin_1", out", 0L, pg", g", 1L,
GET_CON_X("pg", g", 1L),
GET_CON_Y("r_addin_1", out", 0L));
/* Save that on disk */
SAVE_PHFIG();
}
genlib(1) , DEF_PHFIG(3) , SAVE_PHFIG(3) , COPY_UP_SEG(3) , PHSEG(3) , THRU_H(3) , THRU_CON_H(3) , THRU_V(3) , THRU_CON_V(3) , WIRE1(3) , WIRE3(3) .
This tool is under development at the ASIM/LIP6/UPMC laboratory, cao-vlsi
research team.
We need your feedbak to improve documentation and tools.
If you find bugs, please fill-in the form at
http://asim.lip6.fr/alliance/support/bug-report/
Thanks for doing this.