• 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. Comparison of the formated list and print in the specific...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 12835
  • 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

Comparison of the formated list and print in the specific format

varun kumar D
varun kumar D over 10 years ago

hello,

I have the list  given below in this format  , which is saved in the variable BigList . In this list only first few string are  unmatched  and rest strings are  the same  .  I want to create new Biglist in which repeat element should removed and the  unmatched component  in the list  should be present in the new biglist.

BigList=

("P2_JTAGTE" "route_I644" "I689" "P10_IN" "P14_OUT"
"P19_IN" "P18_IN" "P20_OUT" "P17_IN" "I671"
"I670" "route_I615" "I669" "route_I616" "P13_IN"
"P12_OUT" "P11_IN" "I668" "route_I518" "I672"
"route_I519" "P1_JTAGCLK" "P3_JTAGTDI" "P4_JTAGOUT" "P15_IN"
"P23_IN" "P24_OUT" "P62_OUT" "P61_OUT" "P63_OUT"
"P64_OUT" "route_I632" "P8_INOUT" "P7_OUT" "P9_OUT"
"route_I641" "I743" "I687"
)
("P4_JTAGOUT" "P15_IN" "route_I644" "I689" "P10_IN"
"P14_OUT" "P19_IN" "P18_IN" "P20_OUT" "P17_IN"
"I671" "I670" "route_I615" "I669" "route_I616"
"P13_IN" "P12_OUT" "P11_IN" "I668" "route_I518"
"I672" "route_I519" "P1_JTAGCLK" "P3_JTAGTDI" "P2_JTAGTE"
"P23_IN" "P24_OUT" "P62_OUT" "P61_OUT" "P63_OUT"
"P64_OUT" "route_I632" "P8_INOUT" "P7_OUT" "P9_OUT"
"route_I641" "I743" "I687"
)
("P15_IN" "P4_JTAGOUT" "route_I644" "I689" "P10_IN"
"P14_OUT" "P19_IN" "P18_IN" "P20_OUT" "P17_IN"
"I671" "I670" "route_I615" "I669" "route_I616"
"P13_IN" "P12_OUT" "P11_IN" "I668" "route_I518"
"I672" "route_I519" "P1_JTAGCLK" "P3_JTAGTDI" "P2_JTAGTE"
"P23_IN" "P24_OUT" "P62_OUT" "P61_OUT" "P63_OUT"
"P64_OUT" "route_I632" "P8_INOUT" "P7_OUT" "P9_OUT"
"route_I641" "I743" "I687"
)
("P23_IN" "P13_IN" "P12_OUT" "P11_IN" "route_I644"
"I689" "P10_IN" "P14_OUT" "P19_IN" "P18_IN"
"P20_OUT" "P17_IN" "I671" "I670" "route_I615"
"I669" "route_I616" "I668" "route_I518" "I672"
"route_I519" "P1_JTAGCLK" "P3_JTAGTDI" "P2_JTAGTE" "P4_JTAGOUT"
"P15_IN" "P24_OUT" "P62_OUT" "P61_OUT" "P63_OUT"
"P64_OUT" "route_I632" "P8_INOUT" "P7_OUT" "P9_OUT"
"route_I641" "I743" "I687"
)

Intended Output:

("P2_JTAGTE" "P4_JTAGOUT" "P15_IN",P23_IN" "P13_IN" "P12_OUT" "P11_IN, "route_I644" "I689" "P10_IN" "P14_OUT"
"P19_IN" "P18_IN" "P20_OUT" "P17_IN" "I671"
"I670" "route_I615" "I669" "route_I616" "P13_IN"
"P12_OUT" "P11_IN" "I668" "route_I518" "I672"
"route_I519" "P1_JTAGCLK" "P3_JTAGTDI" "P4_JTAGOUT" "P15_IN"
"P23_IN" "P24_OUT" "P62_OUT" "P61_OUT" "P63_OUT"
"P64_OUT" "route_I632" "P8_INOUT" "P7_OUT" "P9_OUT"
"route_I641" "I743" "I687"
)




  • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Again, this is really unclear. I don't know what you're talking about by "first few strings are unmatched and rest strings are the same". Or "unmatched component". If you are talking about taking a list of lists of strings and producing a list of the unique strings across the sub-lists, then it would be something like this:

    procedure(CCFwildGuess(listOfLists)
      let(((unique makeTable('unique nil)))
        foreach(outer listOfLists
            foreach(inner outer
                unique[inner]=t
            )
        )
        unique->?
      )
    )

    CCFwildGuess(bigList)

    which produces:

    ("P2_JTAGTE" "P7_OUT" "P15_IN" "P20_OUT" "P63_OUT"
        "I687" "route_I519" "P12_OUT" "P14_OUT" "P61_OUT"
        "I689" "P10_IN" "route_I641" "P1_JTAGCLK" "route_I615"
        "P18_IN" "P4_JTAGOUT" "I668" "route_I518" "P11_IN"
        "route_I644" "P8_INOUT" "P13_IN" "P17_IN" "P3_JTAGTDI"
        "I671" "P62_OUT" "route_I616" "P23_IN" "route_I632"
        "I672" "I669" "P24_OUT" "P64_OUT" "I743"
        "I670" "P19_IN" "P9_OUT"
    )

    I made no attempt to keep these in any specific order (they are just in "hash" order) - because your question was so unclear I don't know if I've understood you correctly. Your example output has some repeated names in it - so it's hard to know what you really wanted. These were repeated in your output list:

    "P13_IN"
    "P12_OUT"
    "P11_IN"
    "P4_JTAGOUT"
    "P15_IN"
    "P23_IN"

    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