L2P(1)
π L2P(1) β the CAO-VLSI Reference Manual, but make it cute π
okay bestie, sit down, we're learning l2p today and honestly? it's giving "print your chip layout and look good doing it". no cap. π¦
β¨ NAME β¨
l2p β creates a PostScript file from a symbolic layout file, or from a physical layout file. periodt. π
πΈ ORIGIN πΈ
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of UniversitΓ© Pierre and Marie CURIE, in Paris, France. iconic academic behavior honestly π
- Web :
http://asim.lip6.fr/recherche/alliance/ - E-mail :
alliance-users@asim.lip6.fr
π«Ά SYNOPSIS π«Ά
l2p [-color] [-drawingsize=<w>x<h>] [-fA3] [-fLETTER] [-fLEGAL]
[-givebwdict] [-givecolordict] [-help] [-noheader]
[-papersize=<x>x<y>x<w>x<h>] [-pages=<x>x<y>] [-tsize=<s>]
[-nrname] [-ncname] [-nrfname] [-niname] [-nsname] [-mfeed]
[-real] [-resol=<x>] [-rflattencatal] [-rflattentrans] [-rotate]
[-scale=<f.f>] [-usedict=<f>] cellname
π DESCRIPTION π
okay so two main kind of cells can be used as inputs for l2p:
- Symbolic layout cells. You can use
l2pto print symbolic layout cells, and the file formats can be.apor.cp. This is given by an environment variableMBK_IN_PHthat gives the appropriate symbolic layout file format. π - Real layout cells. You can also use
l2pto print real layout cells whose file formats can be.cifor.gds. This is given by an environment variableRDS_INthat gives the appropriate real layout file format. π₯
The path to the input file is set up by two environment variables: MBK_WORK_LIB(3) and, if not found, MBK_CATA_LIB(3). π
The output of l2p is a PostScript file in the current directory. The drawing size and the paper size can be specified by the user. So, you can split your drawing in as many pages as wanted. The resulting file can be then used on any adequat Postcript printer. π¨οΈ
l2p will generate in the current directory, either a single file called <cellname>.ps, either several files suffixed by -<x>x<y>.ps, depending on whether you've asked for a monopage plot or for a drawing that will be split on several pages. If you do something like l2p -pages=2x1 cell, it will generate two files called cell-1x1.ps, and cell-2x1.ps. (not me obsessing over file naming conventions π)
β¨ OPTIONS β¨
With no options, l2p generate a 'standard file', with all options off. This is ok for leaf cells, but not for large circuits. π
-colorβ generates a color PostScript file for use with color interpreters. The default value gives a black and white PostCript file. π-drawingsize=<width>x<height>β specifies the drawing area in centh of inch. By default, wide =725and height =1068for french A4 paper. If the drawing size is bigger than the paper area, then the drawing will be split on several pages. π-fA3β The drawing is done on A3 format paper.-fLETTERβ The drawing is done on LETTER format paper.-fLEGALβ The drawing is done on LEGAL format paper.-givebwdictβ give the Black & White internal PostScript dictionary. See below. π-givecolordictβ This option must be unique on the command line. When used as in'l2p -givebwdict',l2pthen gives on the standard output its Black & White internal Postscript dictionary. A PostScript dictionary is a set of macros that will be used during interpretation of your PostScript file. The macros in the internal PostScript dictionnaries ofl2pallows you to control which layer to output, how to plot rectangles, and specify the colors of the rectangles. You get the standard dictionnary by a line of the form'l2p -givecolordict > dict.ps'. You can then edit it, in order to reuse it withl2p, see the'-usedict'option below. π¨-helpβ gives you this man page that explains how to usel2p. bestie behavior fr fr π«Ά-noheaderβ prevents the border and various info, as the cellname and the position of the page in the drawing, from being printed. π-papersize=<x_low_left>x<y_low_left>x<width>x<height>β specifies the paper area in centh of inch. By default,50x50x726x1069for a4 paper.-pages=<number_of_x_pages>x<number_of_y_pages>β specifies the drawing area in pages. It can be useful, instead of having to calculate the size in cenths of inch of the drawing, to give it in numbers of pages. It takes care of the resizing of the paper and whether there is a header. π-tsize=<s>β Available sizes:6,8,10,12,14. The default value is8.-nrnameβ No name at all will be displayed. π€-ncnameβ The external connector's names won't be displayed.-nrfnameβ The references's names won't be displayed.-ninameβ The instances's names won't be displayed.-nsnameβ The segments's names won't be displayed.-mfeedβ Manualfeed: if set, informs the printer that it will be fed by the user himself, for each printing.-realβ uses real file (cif,gds). By default, uses symbolic layout file (ap,cp).-resol=<x>β is the resolution of the file in dots per inch (dpi). This value has been introducted to limitate the size of the generated PostScript files. Each rectangle whose width and height are smaller than the resolution will not be printed. The default value is72dpi. It should only be changed in one specifical case : when you want to produce a plot of several meter large. Usually, you must provide a PostScript file sized for A4 paper with a much better resolution than72dpi. You can then increase that value to up to1000dpi, but be aware that the size of the file will probably be bigger than a44MbSyQuest cartridge that is used in PAO for exchanging data files. π-rflattencatalβ flattens the cell to the catalog level. seecatal(5)for more details on the use of the catalog file. Be careful, this option requires a lot of memory... π-rflattentransβ flattens the cell to the transistor level before printing. Be careful, this option requires a lot more memory... ππ-rotateβ rotate the cell from 90 degree. This is useful if you have a wide cell, and you want to have it printed in landscape mode. π-scale=<f.f>β forces the cell to be printed with a certain scale (a floating-point number). This is very useful, when you are printing a whole library of cells, and you want all cells to be printed to the same scale. You can find at which scale a cell was printed by looking at the beginning of the file :'head n1_y-1x1.ps'will show you a PostScript comment beginning by'%SCALE=3.78435'for example. π§-usedict=<filename>β The output Postcript file contains a Postcript dictionary of macros. There are two standard dictionnaries used byl2pfor black and white or color prints. This allows you to use a PostScript dictionary different from the two internally encoded intol2p. By modifying one of the standardl2pdictionary, you can choose which layer to output, how to fill the rectangles (empty, hashed, filled), which color to choose, ... and lots of other possibilities. The rest of the generated postscript file is mainly orders of drawing rectangles. PostScript is a reverse polish notation language, that is easy to read for simple programs. If you use this functionality, and think that your dictionnaries are worth it, please mail them toalliance-users@asim.lip6.fr, in order to submit them for inclusion in future version ofl2p(Thanks). π
π ENVIRONMENT VARIABLES: π
for symbolic file(s) :
setenv MBK_IN_PH ap
setenv MBK_WORK_LIB .
setenv MBK_CATA_LIB /labo/cells/scr
setenv MBK_CATAL_NAME CATAL
setenv RDS_TECHNO_NAME cmos_1.rds
for real file(s) :
setenv RDS_IN cif
setenv MBK_CATAL_NAME CATAL_ROUT
setenv RDS_TECHNO_NAME prol12_1.rds
π EXAMPLES: π
l2p -color n1_yβ will create a coloredn1_y.psfile in the current directory : the 'standard' way. πl2p -real cellβ will create acell.psfile in the current directory fromcell.ciforcell.gds, depending on theRDS_INenvironment variable.l2p -pages=3x2 na2_yβ size of the created drawing:3horizontal pages,2vertical ones;
β SEE ALSO β
mbk(1), rds(1), MBK_IN_PH(3), MBK_CATA_LIB(3), MBK_WORK_LIB(3), MBK_CATAL_NAME(3), RDS_TECHNO_NAME(3), pageview(1), gs(1), ghostview(1), lpr(1).
π DIAGNOSTICS π
You will not be able to generate more than approximativly 30 pages at the same time (because of the FOPEN_MAX of your environment). In this case, see the option that is not implemented yet. π
The generated PostScript is Level 1 for black & white plots. When you use color, it generates Level 1 with color extensions. It may not run with strict Level 1 interpreters, although it runs here with our Apple Personal LaserWriter, Sun Sparcprinters, and Canon CLC-300-PS. It follows the Adobe Document Structuring Conventions 1, and as there is a fake bitmap image inside each generated files, you can re-use them in your word-processors, or publishing software, because the PostScript is EPSF-1.2 compliant. π
π BUG REPORT π
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools. π«Ά
and that's the whole page bestie, slay β¨
ASIM/LIP6 β October 1, 1997 β L2P(1). yeah the date is giving vintage but the tool still eats. ππ¦π
π¦ where this page comes from
- fedora 43: alliance 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 43: alliance 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms