Creating a hash from a database object

Discussion in 'Cadence' started by Guenther Sohler, Apr 14, 2008.

  1. In order to implement new functionality in virtuoso,
    I see the need to calculate a hash, or at least a string representation
    from a shape or instance in layout.

    Properties to be included into the hash should be all its attributes(layer,
    points, size,shape, orientation, but not the cellview where there are used
    in.

    Does such a function exist in skill, or how can i best code it .

    Additionally i need to store these hashes into a binary tree for effective
    searching time. Does the makeTable function in skill provide my needs
    there ?

    I generally intend to use skill for that, because i dont have access to
    CDB in C(i would rather use C)

    Thank you for your comments
     
    Guenther Sohler, Apr 14, 2008
    #1
  2. Guenther Sohler

    Riad KACED Guest

    Hi Guenther,

    You can do almost everything with list in Skill.
    If you are looking for something that looks like hashes, I think it's
    worth giving a look at the Skill documentation's DATA STRUCTURES
    chapter :

    SKILL Language User Guide, chapter 4.
    You can find out in this chapter about :
    1. Disembodied Property Lists
    2. Association Tables
    3. Association Lists
    And more ...

    For having used hashes in Perl, I think these data structures are the
    more close to what you're looking for.

    Riad.
     
    Riad KACED, Apr 16, 2008
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.