Caltech Intermediate Form
Caltech Intermediate Form (CIF) is a file format for describing integrated circuits.[src] CIF provides a limited set of graphics primitives that are useful for describing the two-dimensional shapes on the different layers of a chip.[src] The format allows hierarchical description, which makes the representation concise.[src] In addition, it is a terse but human-readable text format.[src] CIF was created by Ivan Sutherland and Ron Ayres in 1976, with improvements by Carlo H.[src] Séquin, Douglas Fairbairn and Stephen Trimberger.[src] The written specification was later updated by Robert Sproull and Richard Lyon and revised by Stephen Trimberger.[src]
Caltech Intermediate Form (CIF) is a file format for describing integrated circuits.[src] CIF provides a limited set of graphics primitives that are useful for describing the two-dimensional shapes on the different layers of a chip.[src] The format allows hierarchical description, which makes the representation concise.[src] In addition, it is a terse but human-readable text format.[src] CIF was created by Ivan Sutherland and Ron Ayres in 1976, with improvements by Carlo H.[src] Séquin, Douglas Fairbairn and Stephen Trimberger.[src] The written specification was later updated by Robert Sproull and Richard Lyon and revised by Stephen Trimberger.[src] L CC; sets the layer to be the CMOS contact cut (see Fig.[src] B.1 for some typical MOS layer names).[src] The BOX statement (or the letter B ) is the most commonly used way of specifying geometry.[src] It describes a rectangle by giving its length, width, center position, and an optional rotation.[src] The format is as follows: B length width xpos ypos [rotation] ; Without the rotation field, the four numbers specify a box the center of which is at (xpos, ypos) and is length across in x and width tall in y.[src] All numbers in CIF are integers that refer to centimicrons of distance, unless subroutine scaling is specified (described later).[src] The optional rotation field contains two numbers that define a vector endpoint starting at the origin.[src] The default value of this field is (1, 0), which is a right-pointing vector.[src] Thus the rotation clause 10 5 defines a 26.6-degree counterclockwise rotation from the normal.[src] Similarly, 10 -10 will rotate clockwise by 45 degrees.[src] Note that the magnitude of this rotation vector has no meaning.[src] The WIRE statement (or the letter W ) is used to construct a path that runs between a set of points.[src] The path can have a nonzero width and has rounded corners.[src] After the WIRE keyword comes the width value and then an arbitrary number of coordinate pairs that describe the endpoints.[src] Figure B.2 shows a sample wire.[src] Note that the endpoint and corner rounding are implicitly handled.[src] The ROUNDFLASH statement (or the letter R ) draws a filled circle, given the diameter and the center coordinate.[src] For example, the statement: R 20 30 40; will draw a circle that has a radius of 10 (diameter of 20), centered at (30, 40).[src] The POLYGON statement (or the letter P ) takes a series of coordinate pairs and draws a filled polygon from them.[src] Since filled polygons must be closed, the first and last coordinate points are implicitly connected and need not be the same.[src] Polygons can be arbitrarily complex, including concavity and self-intersection.[src] Figure B.3 illustrates a polygon statement.[src] C 4; will cause the box to be drawn on that layer.[src] In addition to simply invoking the subroutine, a CALL statement can include transformations to affect the geometry inside the subroutine.[src] Three transformations can be applied to a subroutine in CIF: translation, rotation, and mirroring.[src] Translation is specified as the letter T followed by an x, y offset.[src] These offsets will be added to all coordinates in the subroutine, to translate its graphics across the mask.[src] Rotation is specified as the letter R followed by an x, y vector endpoint that, much like the rotation clause in the BOX statement, defines a line to the origin.[src] The unrotated line has the endpoint (1, 0), which points to the right.[src] Mirroring is available in two forms: MX to mirror in x and MY to mirror in y.[src] Mirroring is a bit confusing, because MX causes a negation of the x coordinate, which effectively mirrors about the y axis.[src] Any number of transformations can be applied to an object and their listed order is the sequence that will be used to apply them.[src] Figure B.4 shows some examples, illustrating the importance of ordering the transformations (notice that Figs.[src] B.4c and B.4d produce different results by rearranging the transformations).[src] Defining subroutines for use in a CALL statement is quite simple.[src] The statements to be packaged are enclosed between DS (definition start) and DF (definition finish) statements.[src] Arguments to the DS statement are the subroutine number and a subroutine scaling factor.[src] There are no arguments to the DF statement.[src] The scaling factor for a subroutine consists of a numerator followed by a denominator that will be applied to all values inside the subroutine.[src] This scaling allows large numbers to be expressed with fewer digits and allows ease of rescaling a design.[src] The scale factor cannot be changed for each invocation of the subroutine since it is applied to the definition.[src] As an example, the subroutine of Fig.[src] B.4 can be described formally as follows: DS 10 20 2; B10 20 5 5; W1 5 5 10 15; DF; Note that the scale factor is 20/2, which allows the trailing zero to be dropped from all values inside the subroutine.[src] Arbitrary depth of hierarchy is allowed in CIF subroutines.[src] Forward references are allowed provided that a subroutine is defined before it is used.[src] Thus the sequence: DS 10; ...[src] C 11; DF; DS 11; ...[src] DF; C 10; is legal, but the sequence: C 11; DS 11; ...[src] DF; is not.[src] This is because the actual invocation of subroutine 11 does not occur until after its definition in the first example.[src] ===BNF grammar=== The following is the grammar for the CIF format with cifFile being the top level grammar node.[src] cifFile ::= (blank* command?[src] semi)* endCommand blank* command ::= primCommand | defDeleteCommand | defStartCommand semi (blank* primCommand?[src] semi)* defFinishCommand primCommand ::= polygonCommand | boxCommand | roundFlashCommand | wireCommand | layerCommand | callCommand | userExtensionCommand | commentCommand polygonCommand ::= "P" path boxCommand ::= "B" integer sep integer sep point (sep point)?[src] roundFlashCommand ::= "R" integer sep point wireCommand ::= "W" integer sep path layerCommand ::= "L" blank* shortname defStartCommand ::= "D" blank* "S" integer (sep integer sep integer)?[src] defFinishCommand ::= "D" blank* "F" defDeleteCommand ::= "D" blank* "D" integer callCommand ::= "C" integer transformation userExtensionCommand ::= digit userText commentCommand ::= "(" commentText ")" endCommand ::= "E" transformation ::= (blank* ("T" point |"M" blank* "X" |"M" blank* "Y" |"R" point)*)* path ::= point (sep point)* point ::= sInteger sep sInteger sInteger ::= sep* "-"?[src] integerD integer ::= sep* integerD integerD ::= digit+ shortname ::= c c?[src] c?[src] c?[src] c ::= digit | upperChar userText ::= userChar* commentText ::= commentChar* | commentText "(" commentText ")" commentText semi ::= blank* ";" blank* sep ::= upperChar | blank digit ::= "0" | "1" | ...[src] | "9" upperChar ::= "A" | "B" | ...[src] | "Z" blank ::= any ASCII character except digit, upperChar, "-", "(", ")", or ";" userChar ::= any ASCII character except ";" commentChar ::= any ASCII character except "(" or ")" ==See also== GDS II stream format OASIS (Open Artwork System Interchange Standard) EDIF, a vendor neutral file format made in 90s[src]
76 sentences · 76 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Caltech Intermediate Form." encyclopegia.org, 2025, https://encyclopegia.org/wiki/caltech-intermediate-form. Accessed 29 November 2026.
Chicago
"Caltech Intermediate Form." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/caltech-intermediate-form.
APA
encyclopegia.org. (2025). Caltech Intermediate Form. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/caltech-intermediate-form
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON