The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> Circuit Simulators >> Creating schematics automatically with Skill https://designers-guide.org/forum/YaBB.pl?num=1213271252 Message started by analocation on Jun 12th, 2008, 4:47am |
Title: Creating schematics automatically with Skill Post by analocation on Jun 12th, 2008, 4:47am Hi, I would like to convert a Spice net list into a schematic via SKill code. However, I have a problem in connecting transitor terminals, because the command "schCreateWire" requires the explicit coordinates of the terminal to be wired. Is there any command, that returns the coordinates for the bulk, gate , drain and source terminals of a certain transistor or a different command that provides an easy way to connect the terminals? |
Title: Re: Creating schematics automatically with Skill Post by analocation on Jun 13th, 2008, 5:48am found it on page 158 in "VirtuosoŽ Schematic Composer User Guide": list_of_points=nil cv=geGetEditCellView() foreach( inst cv~>instances when( inst~>purpose == "cell" printf( " %L\n" inst~>name ) foreach( instTerm inst~>instTerms printf( " %L\n" instTerm~>name ) foreach( pin instTerm~>term~>pins printf( " %L" pin~>name ) if( pin~>fig then bBox = dbTransformBBox( pin~>fig~>bBox inst~>transform ) a=xCoord(car(bBox)) + (xCoord(cadr(bBox)) - xCoord(car(bBox)))/2 b=yCoord(car(bBox)) + (yCoord(cadr(bBox)) - yCoord(car(bBox)))/2 list_of_points=cons(a:b list_of_points) );if );foreach );foreach );when );foreach |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |