The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Other CAD Tools >> Entry Tools >> Get portOrder of one cell with skill
https://designers-guide.org/forum/YaBB.pl?num=1364048933

Message started by ywguo on Mar 23rd, 2013, 7:28am

Title: Get portOrder of one cell with skill
Post by ywguo on Mar 23rd, 2013, 7:28am

Hi Guys,

I have a part of skill code that updates the pin orders in CDF. It needs to get portOrder of the cell first. But it fails to get portOrder with the code

cv~>portOrder

It returns nil if I type the code in CIW.

Please look at the complete code in the following.


Code:
procedure( CCSsetTermOrder(LIBRARY CELL)
let( (cv cellId cdfId pinList)
cellId=ddGetObj(LIBRARY CELL)
cv = dbOpenCellViewByType(LIBRARY CELL "symbol")
pinList=cv~>portOrder
almSetTerminalList(LIBRARY CELL pinList ?tool "auCdl")
) ;let
) ;proc


Is portOrder not valid for the symbol view?


Thanks in advance.
Yawei

Title: Re: Get portOrder of one cell with skill
Post by ywguo on Mar 23rd, 2013, 9:17am

That symbol has not the portOrder property if I type in cv~>prop~>name. It is so curious that it lost some important properties including portOrder.

I failed to export CDL of another cell because it lost the properties like 'lastSchematicExtraction' or 'syLastExtraction".

It reports the following ERROR message.

Quote:
Running Artist Hierarchical Netlisting ...
ERROR: Netlister: can't find the date library_name/cell_name/symbol was last extracted. None of the properties 'lastSchematicExtraction' or 'syLastExtraction' was found.



Title: Re: Get portOrder of one cell with skill
Post by bernd on Mar 26th, 2013, 4:27am

Shouldn't it be pinOrder and a cell property, rather than a portOrder and a cellview property.
Try schGetPinOrder(cvId).

*

Title: Re: Get portOrder of one cell with skill
Post by ywguo on Mar 26th, 2013, 6:27am

Hi Bernd,

It works。Thank you very much.

The following is my code.

Code:
cv = dbOpenCellViewByType(LIBRARY CELL "symbol")

;pinList=cv~>portOrder
pinList = schGetPinOrder(cv)

almSetTerminalList(LIBRARY CELL pinList ?tool "UltraSim")
almSetTerminalList(LIBRARY CELL pinList ?tool "auCdl")
almSetTerminalList(LIBRARY CELL pinList ?tool "auLvs")
almSetTerminalList(LIBRARY CELL pinList ?tool "cdsSpice")
almSetTerminalList(LIBRARY CELL pinList ?tool "hspiceD")
almSetTerminalList(LIBRARY CELL pinList ?tool "hspiceS")
almSetTerminalList(LIBRARY CELL pinList ?tool "spectre")
almSetTerminalList(LIBRARY CELL pinList ?tool "spectreS")


To my surprise, some cellviews has the portOrder property, but some cellviews has not that portOrder property. Anyway, your function works.

Best Regards
Yawei

Title: Re: Get portOrder of one cell with skill
Post by ywguo on Mar 26th, 2013, 6:31am


ywguo wrote on Mar 23rd, 2013, 9:17am:
That symbol has not the portOrder property if I type in cv~>prop~>name. It is so curious that it lost some important properties including portOrder.

I failed to export CDL of another cell because it lost the properties like 'lastSchematicExtraction' or 'syLastExtraction".

It reports the following ERROR message.

Quote:
Running Artist Hierarchical Netlisting ...
ERROR: Netlister: can't find the date library_name/cell_name/symbol was last extracted. None of the properties 'lastSchematicExtraction' or 'syLastExtraction' was found.


In my case, the CDL netlisting has nothing to do with term order in CDF. It caused by the lost of the above two properties, 'lastSchematicExtraction' or 'syLastExtraction'. I find a solution there http://www.cadence.com/community/forums/T/2859.aspx

opening the calibre view, and typing:

dbSetConnCurrent(cv=geGetEditCellView())
dbSave(cv)

--Yawei

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.