Skill Lint: Using global variables, form name

Discussion in 'Cadence' started by Suresh Jeevanandam, Nov 29, 2005.

  1. Hi,
    The skill form is always stored as a global variable, But is there a
    way to tell SKILL Lint that this particular variable is used to store a
    skillForm?

    Thanks in advance,

    regards,
    Suresh
     
    Suresh Jeevanandam, Nov 29, 2005
    #1
  2. Give the form global variable a sensible prefix - (I would use (say) "AB").
    Then in the SKILL Lint form you can specify the prefixes you're using - and it
    will tolerate correctly named global variables.

    Regards,

    Andrew.
     
    Andrew Beckett, Nov 29, 2005
    #2
  3. As far as I'm aware of every form data structure has to
    be stored in a global variable.

    There are a two keyword arguments that I know to tell
    sklint that specific globals are allowed:

    ?prefixes l_prefixList; you can define a list of prefixes for your globals
    ?globals l_globals; list of allowed globals


    I believe the ?prefixes argument is equivalent to the 'Package Prefixes' in
    the SKILL Lint form.

    Bernd
     
    Bernd Fischer, Nov 29, 2005
    #3
  4. But code from you originates from Cadence and therefore you use "ab"?
     
    Svenn Are Bjerkem, Nov 30, 2005
    #4
  5. Svenn,

    I'm a bit naughty, to be honest. I starting writing lots of code before we
    introduced the convention that non-Cadence code should use a prefix which
    begins with a capital letter. I tended to interpret this as "I'm Cadence so
    I can get away with the prefix I always used, 'ab'" - but a stricter
    interpretation of the guidelines would mean that I'd use "Ab" or "AB".

    These days, if I'm writing a solution, I often convert my "ab" prefixed code to
    use "CCS" instead (Cadence Customer Support) as in customer support we have
    some guidelines about SKILL code in solutions.

    Anyway, R&D should not use functions that begin with upper case, so that's
    the reason why we recommend customers using a prefix starting with upper case.

    There you are. Clear as mud ;-)

    Andrew.
     
    Andrew Beckett, Nov 30, 2005
    #5
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.