• 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. Skill code to find all text labels in a schematic hiera...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 15497
  • 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

Skill code to find all text labels in a schematic hierarchically

DineshBabu
DineshBabu over 12 years ago

Hello,

I would like to search and find all text labels in a schematic hierarchially.

The text labels along with the corresponding cell names should be dumped in a file.

Is it something that could be done with a skill code?

Regards,

Dinesh 

  • Cancel
Parents
  • ebecheto
    ebecheto over 12 years ago

     I made someting like that a moment ago.

    Here is the exemple code. You might modify it to your needs.

     

    ;; _______________study a new library : lib2csv
    defun( lib2csv (@optional (libName "ts018_prim") (row t) (verb t)) let((masterList file pf cv inst cdfgData srow)
    ddLibName=car(setof(lib ddGetLibList() lib~>name==libName))
    if(row srow="_row" srow="")
    cv=dbOpenCellViewByType( "ANALOG_TUT" "tmp" "schematic" "schematic" "w")
    masterList=ddLibName~>cells
    file=strcat( pwd() "/" libName srow ".csv")
    pf=outfile(file)  ; desactive la non creation du fichier, ce n est pas si long que ca.
    when(verb printf("Treating %d-cells" length(masterList)))
    foreach(cell masterList
    when(member("symbol" dbAllCellViews(ddLibName cell~>name))  mast=dbOpenCellViewByType(libName cell~>name "symbol")
    fprintf(pf "%s;%L;" cell~>name mast~>terminals~>name)
    inst=(dbCreateInst cv mast nil 0:0 "R0")
    cdfgData=(cdfGetInstCDF inst)
    foreach(par cdfgData~>parameters
    fprintf(pf "%s;%s;%L;%s;%L;" par~>name par~>prompt par~>value par~>paramType par~>defValue)
    when(row fprintf(pf "\n"))
    );end loop properties
    fprintf(pf "\n")
    printf("%s||%L\n" cell~>name mast~>??)
    ))
    close(pf) sprintf(cmd  "cp %s ~/groupU/RunT2K/." file)
    system(cmd)
    )) ; lib2csv("tsl18fs120") lib2csv("ts018_prim") lib2csv("cmos8rf") lib2csv("cmrf8sf") lib2csv("CORELIB")
    
     

    ++Ed

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • ebecheto
    ebecheto over 12 years ago

     I made someting like that a moment ago.

    Here is the exemple code. You might modify it to your needs.

     

    ;; _______________study a new library : lib2csv
    defun( lib2csv (@optional (libName "ts018_prim") (row t) (verb t)) let((masterList file pf cv inst cdfgData srow)
    ddLibName=car(setof(lib ddGetLibList() lib~>name==libName))
    if(row srow="_row" srow="")
    cv=dbOpenCellViewByType( "ANALOG_TUT" "tmp" "schematic" "schematic" "w")
    masterList=ddLibName~>cells
    file=strcat( pwd() "/" libName srow ".csv")
    pf=outfile(file)  ; desactive la non creation du fichier, ce n est pas si long que ca.
    when(verb printf("Treating %d-cells" length(masterList)))
    foreach(cell masterList
    when(member("symbol" dbAllCellViews(ddLibName cell~>name))  mast=dbOpenCellViewByType(libName cell~>name "symbol")
    fprintf(pf "%s;%L;" cell~>name mast~>terminals~>name)
    inst=(dbCreateInst cv mast nil 0:0 "R0")
    cdfgData=(cdfGetInstCDF inst)
    foreach(par cdfgData~>parameters
    fprintf(pf "%s;%s;%L;%s;%L;" par~>name par~>prompt par~>value par~>paramType par~>defValue)
    when(row fprintf(pf "\n"))
    );end loop properties
    fprintf(pf "\n")
    printf("%s||%L\n" cell~>name mast~>??)
    ))
    close(pf) sprintf(cmd  "cp %s ~/groupU/RunT2K/." file)
    system(cmd)
    )) ; lib2csv("tsl18fs120") lib2csv("ts018_prim") lib2csv("cmos8rf") lib2csv("cmrf8sf") lib2csv("CORELIB")
    
     

    ++Ed

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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