The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Mar 29th, 2024, 6:13am
Pages: 1
Send Topic Print
Get portOrder of one cell with skill (Read 7488 times)
ywguo
Community Fellow
*****
Offline



Posts: 943
Shanghai, PRC
Get portOrder of one cell with skill
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
Back to top
 
 
View Profile   IP Logged
ywguo
Community Fellow
*****
Offline



Posts: 943
Shanghai, PRC
Re: Get portOrder of one cell with skill
Reply #1 - 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.


Back to top
 
 
View Profile   IP Logged
bernd
Senior Member
****
Offline



Posts: 229
Munich/Germany
Re: Get portOrder of one cell with skill
Reply #2 - 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).

* bernd
Back to top
 
 

Just another lonesome cad guy
View Profile WWW   IP Logged
ywguo
Community Fellow
*****
Offline



Posts: 943
Shanghai, PRC
Re: Get portOrder of one cell with skill
Reply #3 - 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
Back to top
 
 
View Profile   IP Logged
ywguo
Community Fellow
*****
Offline



Posts: 943
Shanghai, PRC
Re: Get portOrder of one cell with skill
Reply #4 - 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
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.