I have a pcell that I want to modify but dont have the source code. Under the pcell menu is compile-->to skill which will dump the code but I get a warning saying that "the cell has no parameters" and then dumps the code. If you read in the code, it does build the cell but with out the parameters. Its been many years since Ive used this and forgot the procedure to get the complete cell with parameters. How can I get the parameters in the code also? Thanks Rick
rick wrote, on 05/10/10 15:58: Rick, The SKILL function dbDumpPcDefinePcell gives you pretty much what you want (you need to do a little munging to get it back into a form you can define the pcell, but it's got all the info). It's documented and in cdsFinder. There's also dbDumpPcell too. Regards, Andrew.
Hi Andrew - There is also the command dbWriteSkill that does the same thing or at least the files that it dumps almost identical. Here a condensed version of the the write up for your convenience. The last line says do not use "load" or the pcell compiler to rebuild the cell otherwise you will loose the parameters which is true. What other methods are available to rebuild the cell? Converting a Procedural pcell by Writing it to SKILL dbWriteSkill( d_cvId t_fileName t_mode t_release [g_conn] ) => t / nil dbWriteSkill creates a file that contains all the SKILL commands needed to re-create a cellview. dbWriteSkill creates two files for a procedural pcell--one with the cell's design data and the other with the procedure. For example, this code pcell cvId = dbOpenCellViewByType("myLib" "myPcell" "layout") dbWriteSkill(cvId "/tmp/dumpFile.il" "w" "4.4") creates two files in /tmp: dumpFile.il myLib_myPcell_layout_pCell.il dumpFile.il contains design data for the cell. myLib_myPcell_layout_pCell.il contains the pcell procedure. Follow these steps, substituting your names for the example names: 1. Execute dbWriteSkill. 2 Run the SKILL Code Checker on dumpFile.il. 3. Make the necessary changes to myLib_myPcell_layout_pCell.il. 4. Re-create the pcell. Do not use the load command or the pcell compiler to re-create the cell. You lose graphical data if you use load and you lose parameters if you recompile.
rick, Andrew is right, and you too. dbDumpPcDefinePcell and dbWriteSkill all can dump the useful information. But, it's important that you have to modify the skill file (myLib_myPcell_layout_pCell.il you mentioned), cut off the judgements of parameters relative to pcell-cellview and insert the parameter declaration. Thereafter, you can load the new il file after finishing the modification. I tried like this and solve the problem in this way. If you find another better approach, please let us know! YanqingAI