Is there some SKILL procedure to place text note in shematic hierarchicaly in schematics without opening circuits one by one. What I mean: we have skill code difning layout dimesions (width and height) of every cell in the schematic and all this data is written in text file. But now we want the data for every particular cell layout to be written as text note in the corresponding schematic view.
Hi tyanataMay I have a sample of the contents of your text file?Best regardsQuek
The shape of the text file is:
cell_x 23.5 189
amp1 140 135.9
osc_x 27 56
First number is cell layout X second one is cell layout Y dimension.
Of course this type of cell area determination is applicable only for rectangular cells, so it is not accurate for most of the full custom analog cells, but for approximate chip area estimation is fairly enough. If it is very difficult these notes to be included in the schematics of the cells (without opening of the cells) we need at least these notes to be in included in .ps files after plot file command.
The final goal of that task is when we convert ps files to pdf in the page of schematics of each cell to be printed the note with its layout dimensions.
Hi tyanataThe following script should be able to do what you want. Save it as "addnotes.il" in the working directory and load it in ciw. Then execute it using:CCSaddSchNotes("myLib" "myInputFile")where "myLib" is the name of the schematic library and "myInputFile" is the file containing the cellnames and X/Y dimensions.Best regardsQuekprocedure( CCSaddSchNotes(myLib myFile) let( (inPort inLine inLineList myCell xDimen yDimen cv myNote xCoord yCoord) inPort=infile(myFile) while( gets(inLine inPort) inLineList=parseString(inLine) myCell=nth(0 inLineList) xDimen=nth(1 inLineList) yDimen=nth(2 inLineList) cv=dbOpenCellViewByType(myLib myCell "schematic" "" "a") myNote=strcat("Layout estimation: X=" xDimen " Y=" yDimen) xCoord=leftEdge(cv~>bBox) yCoord=bottomEdge(cv~>bBox)-0.2 schCreateNoteLabel(cv xCoord:yCoord myNote "lowerLeft" "R0" "roman" 0.0625 "normalLabel") dbSave(cv) dbClose(cv) ) ;while close(inPort) inPort=nil ) ;let) ;procedure
Thanks for the response I tested it, the proposed solution works perfectly.
Can you say is there way this result instead as note to be included in schematics only to be included in corresponding .ps file before plot to file command, so layout dimensions text note to appear only in final pdf file instead of be included in the schematics.
The only way that I think this could be done would be to modify the PostScript after it was generated (which would be far from trivial), or maybe opening the schematic in "s" (scratch) mode, adding the note, creating the PostScript with schPlot() and then discarding the edits and reverting to read mode afterwards. You'd have to be careful if it was in edit mode to start off with.