• 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. Method to Add table as a property to the view

Stats

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

Method to Add table as a property to the view

Saikrishna14
Saikrishna14 over 11 years ago
Hi

I have used the function dbCreateProp and i could add strings as properties to the views.By using for loop,i have tried to add the individual key value pairs as properties to the view.I am looking for a way to add an entire association table consisting of key value pairs as a property to the view instead of doing each key value pair as a separate property.Could you suggest a way for me to do so? The main reason for avoiding eack key value pair as property is that the number of key-values in the table is very high and there is also a chance that the values corresponding to the key might be altered/tampered.I want the values to be fixed and unchanged.

I should also be able to access the key value pairs of the table (added as a property) later at some point of time.

Regards!
Sai Krishna
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    You can't store data structures such as tables in a cellView property - they are constrained to int, float, string, time, and list types (there are a couple of others, but these are the main types).

    However, you can effectively serialize the table to a list to store it, and vice versa to restore it.

    Assuming you have a table, myTable - you can do:

    dbCreateProp(cvId  "myTable" "ILList" tableToList(myTable))

    or you could just use:

    cvId~>myTable=tableToList(myTable)

    then to convert it back to a table later, you'd do:

    myTable=makeTable('mytab nil) ; default value as second argument - whatever you used when creating it
    append(myTable cvId~>myTable)

    If you append an assoc list onto a table, it adds them as key-value pairs.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Saikrishna14
    Saikrishna14 over 11 years ago

    Hi Andrew

    Thanks a lot for the prompt reply.I have tried this as soon as you replied and it worked perfectly well.I have been trying to add the property in such a way that in case the user goes to the view and to the properties(Shift+Q), the property should be seen as read only and user shouldnt be able to write/edit the property.In other words, it should be greyed out.I have been  searching for such a function but couldnt get a specific one.Is there a way?

    Regards!
    Sai Krishna

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

    Sai,

    Not sure there is. There isn't anything in the database to do this, but potentially there might be some UI capability to restrict this.

    Is this schematic or layout? Which version of the IC tools are you using?

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Saikrishna14
    Saikrishna14 over 11 years ago

    Hi Andrew

    I am adding properties to the extracted view as soon as it is getting created.I am adding a table after converting it into a list.The main intention here is that the list which is added as property shouldn't be edited/changed.So that is why i want it to be greyed out (or make the value of the property just  "readonly")so that user cannot tamper the list.Not only the property i am adding,but also  other properties like lastSchematicExtraction, calibre, calibreview_setup,connectivityLastUpdated,PinMap property values can be changed.The properties can also be Deleted or Modified.The Property which i am adding shouldn't be changed.

    Regards!
    Sai Krishna

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

    And the version you're using is?

    Andrew

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

    Andrew Beckett said:
    And the version you're using is?

     

    Actually, don't think I need this. I had a quick look in the code for the IC616 edit properties form for layout, and I don't believe this is possible. The properties are all editable and I don't think there's a way to turn that off.

    You'd need to request this as an enhancement via customer support.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Saikrishna14
    Saikrishna14 over 11 years ago

    Hi Andrew

    I'm using IC 616 ISR7.
    Ohh.Is it?Thanks for your time

    Regards,
    Sai Krishna

    • 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