• 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 can i compare lines after match pattern in skill

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 144
  • Views 13507
  • 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 can i compare lines after match pattern in skill

acom
acom over 9 years ago

Hello ,

I have 1 file which contains 2 parts.One part is the schematic hierachy  tree.Another part is the layout hierachy tree.(looks like below)

Based on this file, how can i compare the schematic hierachy tree VS layout hierachy tree by using skill?

That is, eg . In schematic ,  "BlockA/ Lib2 Cell2 schematic";In layout, it is "BlockA/ Lib2 Cell2_2" layout.How can i check this kind of errors by using the below file?

schematic_layout_tree file:

########################

#CellView BlockA schematic#

########################

subcell: 3 sub cells

    Lib1 Cell1 schematic

    Lib2 Cell2 schematic

    Lib3 Cell3 schematic

########################

#CellView BlockB schematic#

########################

subcell: 2 sub cells

    LibB1 CellB1 schematic

    LibB2 CellB2 schematic

######################## 

#CellView BlockA layout#

########################

subcell: 3 sub cells

    Lib1 Cell1 layout

    Lib2 Cell2_2 layout

    Lib3 Cell3 layout

########################

#CellView BlockB layout#

########################

subcell: 2 sub cells

    LibB1 CellB1 layout

    LibB2 CellB2 layout

  • Cancel
  • fatcat1206
    fatcat1206 over 9 years ago
    Hi acom

    I take a look on the hierarchy tree of schematic/layout.
    The tricky part is that the hierarchical information is shown by the order and indent.

    What I am afraid, is that if you want to make a decent comparison, you need to recreate the hierarchy of schematic and layout while you reading the file.

    By nature of reading the file, you would know the order of the line, and also you can count the how much space is inside the indent.
    So with this information, you can recreate the hierarchical information.
    You can either save them into a disembody proper list, or a structure defined by your self.

    Then you can do the comparison based on these two lists/structures.

    Best Regards

    Yi
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • acom
    acom over 9 years ago
    Hello Yi,

    Thanks for your reply here.I shared the same idea with you :)
    But the difficult part for me is that i don't have a good way to transfer the file into 2 lists/structures.
    There are tens of thounds of lines like this in the file.I have know idea how to do it more efficient.

    Thanks
    Ada
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • fatcat1206
    fatcat1206 over 9 years ago
    Hi Ada

    You can always try with a short list.
    most important thing is to defined your structure format.

    One thing cross my mind, the cell may come from different lib.
    So, unfortunately, you may need to save both lib and cell info for every line you have read.
    Of course, at the some time build up the hierarchy structure.

    Best Regards

    Yi
    • 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