• 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 remove the suffix of the textDisplay of all multipliers...

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 144
  • Views 14717
  • 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 remove the suffix of the textDisplay of all multipliers generated from schematic

DesmondLiu
DesmondLiu over 10 years ago

Hi experts,

    I've tried to remove the suffix of  the textDisplay of all multipliers generated from schematic, 

e.g. a device M1 with M=4 the textDisplay shown on layout will be M1.1, M1.2, M1.3 & M1.4.

How do I remove the .* to make all of them M1, M1, M1 & M1?

    I tried to use rexReplace, but it can't recognize theLabel as a string. Is there any suggestion to do this?

Thanks.

  • Cancel
  • ebecheto
    ebecheto over 10 years ago
    foreach(mapcar label list("M1.1" "M1.2" "M1.3" "M1.4") car(parseString(label ".")))
    ;=> ("M1" "M1" "M1" "M1")
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • theopaone
    theopaone over 10 years ago

    The text on a textDisplay object is stored in the attribute 'text. textDispId~>text should return the string.

    Ted

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    If td is the variable containing the textDisplay object, you can find the value it shows by looking at:

    dbGet(td~>owner td~>text)

    Not entirely sure what you're trying to do here, but hopefully this will help!

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DesmondLiu
    DesmondLiu over 10 years ago

    Hi ebecheto,

        Thank you this is exactly what I need. I was trapped in doing this by regExp and I'm not so good at it.

    Wish you a good day.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DesmondLiu
    DesmondLiu over 10 years ago
    Thanks also Ted & Andrew, I'm still confused what's the difference between label & textDisplay.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    A textDisplay simply tells the tools to display the value of a named attribute on an associated object - so if that attribute changes, the textDisplay will too. A label is a fixed piece of text with no association to another object (it can be attached, but it's not directly linked with the value of that other object).

    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