• 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. Compare text files stored as a cell view

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 14721
  • 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

Compare text files stored as a cell view

netbug
netbug over 8 years ago

Dear all,

In my library manager, each cell has two or more views that are pure text. These text views store DRC and LVS results. As the PDK changes, I have to compare each DRC/LVS for the current PDK version against the previous one.

I thought that one way to solve this could be done in a similar way to the unix command "diff". In first place, I should have a GUI where the users enter the 2 views that he/she want to compare. Now the problem starts here. How can I get the location of each view to be able to do the comparison ? After having the files, which is the best way to compare them ? Is it, then, possible to save the result into the library manager as a new view ?

Thanks in advance.

Best regards,

Pedro

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Hi Pedro,

    If the views are just text views, you can find the contents of the file (the path to it) by using ddGetObjReadPath(ddGetObj("lib" "cell" "view" "*")) or ddGetObj("lib" "cell" "view" "*")~>readPath - the "*" indicates that you want the "master" file for the view.

    To compare them, you're probably best using something like the UNIX diff (or tkdiff if you want a nice graphical interface).

    You could use the abOpenTextCellView code in this old comp.cad.cadence post, or essentially the same code in this solution. That will give you a convenient SKILL API to build the new view.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • netbug
    netbug over 8 years ago
    Hi Andrew,
    Thank you very much for your reply, it worked perfectly.
    Best regards,
    Pedro
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • netbug
    netbug over 8 years ago
    Hi Andrew,
    What you've described works perfectly, but now I would like to ask the user to click on the cell views he wants using a GUI and read what the user has selected ?

    Best regards,
    Pedro
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Hi Pedro.

    You'd need to write some code to create a form with (say) a browse button. This post shows some example code which should get you started.

    Regards,

    Andrew.

    • 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