Home > Community > Forums > Custom IC SKILL > SKILL func to expand bus expressions?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 SKILL func to expand bus expressions? 

Last post Fri, Apr 20 2007 3:26 PM by archive. 2 replies.
Started by archive 20 Apr 2007 03:26 PM. Topic has 2 replies and 1825 views
Page 1 of 1 (3 items)
Sort Posts:
  • Fri, Apr 20 2007 3:26 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    SKILL func to expand bus expressions? Reply

    I was going to write my own function, but I was hoping that there was a CADENCE function that already does this:

    Expand bus expressions into a list of individual signal names.

    For example (from Table 2-7 VSUG):

    • <*1>base => (base)
    • <*2>(a,b),c => (a b a b c)
    • <*2>(a,<*2>b) => (a b b a b b)
    • b<3:0:2> => (b<3> b<1>)
    • b<0,1:3:4*1,2:2> => (b<0> b<1> b<2)
    Is there a SKILL function that makes this translation already, from string to list?  Seems like I saw one somewhere, but I cannot find it now.  :-(

    I'd like to avoid reinventing the wheel.

    Thanks!


    Originally posted in cdnusers.org by m27315
    • Post Points: 0
  • Sun, Apr 22 2007 12:35 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: SKILL func to expand bus expressions? Reply

    dbProduceMemName() is the function you want. It takes a string which is an expression as above, and produces a list of member signals, exactly as you're expecting.

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
  • Mon, Apr 23 2007 9:01 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: SKILL func to expand bus expressions? Reply

    That's it! Thanks!!!


    Originally posted in cdnusers.org by m27315
    • Post Points: 0
Page 1 of 1 (3 items)
Sort Posts:
Started by archive at 20 Apr 2007 03:26 PM. Topic has 2 replies.