ExpertPCBRead.mesa
Copyright Ó 1988 by Xerox Corporation. All rights reserved.
Christophe Cuenod, February 3, 1988 4:50:03 pm PST
This interface gives a primitive to read an Expert .pcb file and retrieve from this file for each part:
the position
the orientation
the number of pins
the library entry number
DIRECTORY
Rope USING [ROPE],
SymTab USING [Ref];
ExpertPCBRead: CEDAR DEFINITIONS
Reading the .PCB file
PCBTable: TYPE = SymTab.Ref;
Part: TYPE = REF PartRep;
PartRep:
TYPE =
RECORD[
x: INT,
y: INT,
orientation: NAT,
libraryEntry: CARD
];
Each entry in the PCBTable uses this type
ReadPCBFile:
PROC [file: Rope.
ROPE]
RETURNS [pCBTable: PCBTable];
Each part in the input file is used as a key in pCBTable to find
x, y, orientation, numberOfPins, libraryEntry.
END.