• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Help on getting Library names for all instances on display...

Stats

  • Locked Locked
  • Replies 12
  • Subscribers 143
  • Views 19597
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Help on getting Library names for all instances on display form

venuuuuu
venuuuuu over 13 years ago

 Hi guys,

 I tried some code to  get  Library names for all instances on display form. I get it  But Display form doesnot work properly .

 Error is shown below

 *Error* TrShapeReportToPort: too few arguments (2 expected, 1 given) - (db:246261804)

 

 

 cv = geGetEditCellView()
procedure( TrShapeReportToPort( cv outport )
cv = geGetWindowCellView( cv )
;cv = geGetEditCellView()
librarys=nil
fprintf(
outport
"%s %s %s contains library's:"
cv~>libName cv~>cellName cv~>viewName
)
foreach(libryname cv~>instances~>libName
foreach(singlelib librarys
if(singlelib!=libryname then
librarys=cons(libryname librarys)
)
)
)
foreach(libname librarys
fprintf( outport "\n%-10s %-10s" "Library" libname )
)
list( cv~>libName cv~>cellName cv~>viewName )
)

TrReportBBox = '((120 729) (372 876))
procedure( TrShapeReport( cv )
thePort = outfile( "/tmp/ShapeReport.txt" )
when( thePort
TrShapeReportToPort( cv thePort )
close( thePort )
) ; when
view( "/tmp/ShapeReport.txt" TrReportBBox "Librarys" )
) ; procedure
hiSetBindKey("Layout" "Ctrl<Key>1"      "TrShapeReportToPort(cv)")

  • Cancel
Parents
  • venuuuuu
    venuuuuu over 13 years ago

     hi Andrew,

     I wrote the TrlibraryReport function. It creates a list of librarys that cellview instances contains. But it dosn't working properly.

     cv = geGetEditCellView()
    librarys=nil
    foreach(libryname cv~>instances~>libName
    foreach(singlelib librarys
    if(singlelib!=libryname then
    librarys=cons(libryname librarys)
    )
    )
    )

    In above code, librarys(variable) should contain list of library's in in cellview. But when i enter library's in CIW then it shows "nil". Can u identify what's the problem?

     If it works  then librarys function displays a list of library's in the CIW. And then this function to send the report to a temporary file and to display this file for the user in a Design Framework II text window. Now total code is shown below.

     cv = geGetEditCellView()
    procedure( TrlibraryReportToPort( cv outport )
    librarys=nil
    fprintf(
    outport
    "%s %s %s contains library's:"
    cv~>libName cv~>cellName cv~>viewName
    )
    foreach(libryname cv~>instances~>libName
    foreach(singlelib librarys
    if(singlelib!=libryname then
    librarys=cons(libryname librarys)
    )
    )
    )
    foreach(libname librarys
    fprintf( outport "\n%-10s %-10s" "Library" libname )
    )
    list( cv~>libName cv~>cellName cv~>viewName )
    )

    TrReportBBox = '((120 729) (372 876))
    procedure( TrlibraryReport( cv )
    thePort = outfile( "/tmp/libraryReport.txt" )
    when( thePort
    TrlibraryReportToPort( cv thePort )
    close( thePort )
    ) ; when
    view( "/tmp/libraryReport.txt" TrReportBBox "Librarys" )
    ) ; procedure

     

     Or is there anyway to display librarys in a display?

     

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • venuuuuu
    venuuuuu over 13 years ago

     hi Andrew,

     I wrote the TrlibraryReport function. It creates a list of librarys that cellview instances contains. But it dosn't working properly.

     cv = geGetEditCellView()
    librarys=nil
    foreach(libryname cv~>instances~>libName
    foreach(singlelib librarys
    if(singlelib!=libryname then
    librarys=cons(libryname librarys)
    )
    )
    )

    In above code, librarys(variable) should contain list of library's in in cellview. But when i enter library's in CIW then it shows "nil". Can u identify what's the problem?

     If it works  then librarys function displays a list of library's in the CIW. And then this function to send the report to a temporary file and to display this file for the user in a Design Framework II text window. Now total code is shown below.

     cv = geGetEditCellView()
    procedure( TrlibraryReportToPort( cv outport )
    librarys=nil
    fprintf(
    outport
    "%s %s %s contains library's:"
    cv~>libName cv~>cellName cv~>viewName
    )
    foreach(libryname cv~>instances~>libName
    foreach(singlelib librarys
    if(singlelib!=libryname then
    librarys=cons(libryname librarys)
    )
    )
    )
    foreach(libname librarys
    fprintf( outport "\n%-10s %-10s" "Library" libname )
    )
    list( cv~>libName cv~>cellName cv~>viewName )
    )

    TrReportBBox = '((120 729) (372 876))
    procedure( TrlibraryReport( cv )
    thePort = outfile( "/tmp/libraryReport.txt" )
    when( thePort
    TrlibraryReportToPort( cv thePort )
    close( thePort )
    ) ; when
    view( "/tmp/libraryReport.txt" TrReportBBox "Librarys" )
    ) ; procedure

     

     Or is there anyway to display librarys in a display?

     

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information