• 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. How to display the output of a program in a seperate form...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 13671
  • 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

How to display the output of a program in a seperate form?

mvijay
mvijay over 13 years ago

Hi,

I have a small code which finds the coordinates of instances of interest. I intend to put the coordinates obtained from the code in a seperate form for ease of display. It is on the same lines as we see the design hierarchy output form. Look forward to know the function to get the same.

Kind Regards

Vijay

  • Cancel
  • ghost
    ghost over 13 years ago

    Hi Vijay,

    If you are intending just to display the result, there are two options 

     1. use outfile() to write to a file and view.

     2. use Dialog boxes to display the result, ex; hiDisplayAppDBox()

    Regards

    Ajay

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Sarvani
    Sarvani over 13 years ago

    I have some code which is works as you want. First you need to save this in file and load it. And then enter TrShapeReport(cv) in CIW. Hilighted code is for printing output at form(you can write here for your output).

     cv = geGetEditCellView(  )

    procedure( TrShapeReportToPort( cv outport )
    let( ( rectCount polygonCount pathCount miscCount )
    rectCount = polygonCount = pathCount = miscCount = 0

    fprintf(
    outport
    "%s %s %s contains:"
    cv~>libName cv~>cellName cv~>viewName
    )
    ;if u write anything in printf(outport............) format then that will be printed in on output file

    foreach( shape cv~>shapes
    case( shape~>objType
    ( "rect" rectCount++ )
    ( "polygon" polygonCount++ )
    ( "path" pathCount++ )
    ( t miscCount++ )
    ) ; case
    ) ; foreach
    fprintf( outport "\n%-10s %-10d" "Rectangles" rectCount )
    fprintf( outport "\n%-10s %-10d" "Polygons" polygonCount )
    fprintf( outport "\n%-10s %-10d" "Paths" pathCount )
    fprintf( outport "\n%-10s %-10d" "Misc" miscCount )

    ;if u write anything in printf(outport............) format then that will be printed in on output file
    list( cv~>libName cv~>cellName cv~>viewName )
    ) ; let
    ) ; procedure

    ;below procedure is used for showing the form

    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 "Shape Report" )
    ) ; procedure

     

    I hope this will help you.

    Thank you

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mvijay
    mvijay over 13 years ago

     Thanks a lot Ajay,Sarvan. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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