• 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 Create a Field for Symbol (Symbol Field) in a given...

Stats

  • Locked Locked
  • Replies 11
  • Subscribers 143
  • Views 17191
  • 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 Create a Field for Symbol (Symbol Field) in a given Form !!!

Sonu Chopra
Sonu Chopra over 5 years ago

Hello everyone ,

I have one query regarding the creation of field for symbol in a form  . I am not able to find the corresponding hiCreateField Command for the symbol Field (float , int , string , list , bBox I was able to but not for symbol)

Can Someone Please guide me how to create a field for symbol in a given form ?  or Could you please tell me the corresponding skill command for symbol field?

Regards

Sonu

  • Cancel
Parents
  • mbracht
    mbracht over 5 years ago

    Hi Sonu,

    I don't think there is one - you need to use hiCreateStringField() and then use the stringToSymbol(..) function to turn the string value into a symbol

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to mbracht

    Why do you need this? It seems a little unusual...

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Sonu Chopra
    Sonu Chopra over 5 years ago in reply to Andrew Beckett

    Hello Andrew ,

    The main idea behind is that I want to take an input from User in a field without any Double quotes (like string but without any double quotes For Example :- Chip-Level) . So , Sometimes it also have special symbol like "-" (that's why string to symbol command is not giving correct output) . I have to use this field (after storing in value) to create a text file with some information.

    Hopefully , its clear now. Let me know if its still not clear.

    Regards

    Sonu

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mbracht
    mbracht over 5 years ago in reply to Sonu Chopra

    sorry - I overlooked this explanation of yours! In fact when typing into a string field you don't need to issue quotes - you just type something which is silently turned into a string. The quotes are in fact just the print representation of a string in SKILL. If you surrounded whatever you type in the field with quotes, those quotes become literal characters as part of the string.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to mbracht

    It really sounds as if you're using the resulting string incorrectly - converting to a symbol sounds a really bad approach. Symbols should be used for names of objects - using them to avoid quotation marks just means you're not outputting the data correctly...

    For example, if you have a string read from a field: myStr=myForm->myStrField->value and then do:

    outPort=outfile("./report.txt")
    fprintf(outPort "The field value is: %s\n" myStr)
    close(outPort)

    then it will work fine - no quotation marks will appear (unless you typed them in the field on the form). If you use %L instead of %s, then it will - but you probably shouldn't be doing that if you want the file to have strings without quotation marks!

    Regards,

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Sonu Chopra
    Sonu Chopra over 5 years ago in reply to mbracht

    Hello Max,

    I completely agree with you that for string field you didn't need to mention the double quotes (it turned into string automatically) .

    But in my case I didn't want it to turn into a string. So , May be I am explaining with an example :-

    For Example :- I am creating a form with my_Form as its handle and  creating a string field (with my_Field as its handle)

    So , a = my_Form~>my_Field~>value

           b = stringToSymbol(a)

    In want to use this Variable b to create a text view in virtuoso and append the value of variable b in a text view in virtuoso. In this Text View the value of variable should be without any quotes.

    For Example :- If User enter IP-Validation in Field then the text view also contain the same value IP-Validation.

    Regards

    Sonu

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Sonu Chopra
    Sonu Chopra over 5 years ago in reply to Andrew Beckett

    Hello Andrew,

    Thanks for the help . Yes , I agree with you that it should work fine. I will try it and let you know.

    Thanks Andrew and Max for the all the help.

    Regards

    Sonu

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Sonu Chopra
    Sonu Chopra over 5 years ago in reply to Andrew Beckett

    Hello Andrew,

    Thanks for the help . Yes , I agree with you that it should work fine. I will try it and let you know.

    Thanks Andrew and Max for the all the help.

    Regards

    Sonu

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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