• 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. dbCreateLib() vs ddCreateLib()

Stats

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

dbCreateLib() vs ddCreateLib()

tweeks
tweeks over 11 years ago
Sometimes in SKILL, there are two names for the same function object:
eq(getd('type) getd('typep))  => t
Sometimes one is an alias for the other:
        cons(nil listAlias())->xCoord => car
And sometimes it's not at all clear why there are apparently two separate copies of the exact same function:

 

eq(getd('ddCreateLib) getd('dbCreateLib)) => nil
cons(nil listAlias())->ddCreateLib => nil
cons(nil listAlias())->dbCreateLib => nil
 
The interfaces are identical, and they even call the same triggers:
 
1> procedure(myPreCreateLibTrigger(@rest args) printf("myPreCreateLibTrigger%L\n" args))
myPreCreateLibTrigger
1> procedure(myPostCreateLibTrigger(@rest args) printf("myPostCreateLibTrigger%L\n" args))
myPostCreateLibTrigger
1> ddGetTriggerList("precreatelib")
nil
1> ddGetTriggerList("postcreatelib")
(("ddsCreateLibTrigger" t 100) 
    ("_tf_updateLibList" t 150)
)
1> ddRegTrigger("precreatelib" 'myPreCreateLibTrigger 200)
t
1> ddRegTrigger("postcreatelib" 'myPostCreateLibTrigger 200)
t
1> ddGetTriggerList("precreatelib")
(("myPreCreateLibTrigger" t 200))
1> ddGetTriggerList("postcreatelib")
(("ddsCreateLibTrigger" t 100) 
    ("_tf_updateLibList" t 150) 
    ("myPostCreateLibTrigger" t 200)
)
1> ddCreateLib("myDdLib")
myPreCreateLibTrigger("myDdLib" nil)
myPostCreateLibTrigger("myDdLib" "/work/tweeks/cds/myDdLib" dd:0x1612e230)
dd:0x1612e230
1> dbCreateLib("myDbLib")
myPreCreateLibTrigger("myDbLib" nil)
myPostCreateLibTrigger("myDbLib" "/work/tweeks/cds/myDbLib" dd:0x1830af80)
dd:0x1830af80
 
Can anyone please tell me if there is any difference at all between these two except that one apparently lives with the "db" code and the other with the "dd" code?
  • Cancel
  • tweeks
    tweeks over 11 years ago

    Ah, I have noticed one difference:

    > arglist 'dbCreateLib
    (g_general \@optional g_general "gg")
    > arglist 'ddCreateLib
    (t_string \@optional t_string t_string t_string "tttt")
    

    So ddCreateLib() takes more (undocumented) arguments than dbCreateLib()! When I tried passing the third argument, however, it hung my virtuoso... :(

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

    The reason is historical. Both were created during the transition from "dm" to "dd" in the 4.3.4->4.4 timeframe (1995/6). You can use the publicly documented arguments of either - take your pick.

    Regards,

    Andrew.

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

    It's a little scary sometimes how much you know about SKILL... :-o

    Thanks 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