Hierarchy list

Discussion in 'Cadence' started by Seagull, Jun 23, 2007.

  1. Seagull

    Seagull Guest

    Hi All,

    I have a skill code which dumps the cdf parameters of all the
    instances in the current view

    foreach(cv~>instances
    fprintf(outPort " %s\n" inst~>name)
    foreach(param cdfGetInstCDF(inst)~>parameters
    fprintf(outPort " %s: %L\n" param~>name
    param~>value)
    ) ;foreach
    );foreach


    Can anybody tell me how to get the cdf parameters of all the instances
    for an hierarchy viewlist

    Thanks and Regards

    Murali
     
    Seagull, Jun 23, 2007
    #1
  2. Seagull

    Risky Guest

    Get the master of each instance and run the same code on it.

    Here is a basic coding example (warning: recursive), it needs some
    LINT to work properly no doubt.

    procedure(SEAGULLcdfGetInstCDF(cv)
    foreach(inst cv~>instances
    SEAFULLcdfGetInstCDF(inst~>master)
    fprintf(outPort " %s\n" inst~>name)
    foreach(param cdfGetInstCDF(inst)~>parameters
    fprintf(outPort " %s: %L\n"
    param~>name param~>value)
    ) ;foreach
    )
    )
     
    Risky, Jun 23, 2007
    #2
  3. Seagull

    Risky Guest

    Get the master of each instance and run the same code on it.

    Here is a basic coding example (warning: recursive), it needs some
    LINT to work properly no doubt.

    procedure(SEAGULLcdfGetInstCDF(cv)
    foreach(inst cv~>instances
    SEAFULLcdfGetInstCDF(inst~>master)
    fprintf(outPort " %s\n" inst~>name)
    foreach(param cdfGetInstCDF(inst)~>parameters
    fprintf(outPort " %s: %L\n"
    param~>name param~>value)
    ) ;foreach
    )
    )

    If you mean you already have a list you want to run it on, what is the
    format of the list?
     
    Risky, Jun 23, 2007
    #3
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.