• 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. How to get the cellviews hierachy

Stats

  • Locked Locked
  • Replies 11
  • Subscribers 144
  • Views 21448
  • 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

How to get the cellviews hierachy

wenckey
wenckey over 6 years ago

In Virtuoso, if I have the target cell name "target", top cell name "top", lib name "mylib", view name "layout". How can I get the hierachy path for the "target" from "top"?

Like hierachy path: top->cellA->cellB->target

  • Cancel
Parents
  • Marben
    Marben over 6 years ago

    Hi wenckey,

    Code below will get all the instance hierarchy path from top level.

    Hope it helps.

    ;procedure(CCFgetInstanceNamesAndCoords(master @optional (transform list(0:0 "R0" 1)) (hierInstPath "/"))
    procedure(ci()
    cvId=geGetWindowCellView()
    csh("touch ./instance_coord.txt")
    outPort = outfile("./instance_coord.txt")
    fprintf(outPort "\n Coordinates of instances of %s with a library %s :\n\n" cvId~>cellName cvId~>libName)
    ctr = 0

    procedure(CCFgetInstanceNamesAndCoords(master @optional (transform list(0:0 "R0" 1)) (hierInstPath "/"))


    foreach(inst master~>instances
    when(inst~>objType=="inst"
    ctr = ctr +1

    printf("%s%s %L\n" hierInstPath inst~>cellName dbTransformPoint(inst~>xy transform))
    fprintf(outPort " %d. %s%s %L\n" ctr hierInstPath inst~>cellName dbTransformPoint(inst~>xy transform))


    CCFgetInstanceNamesAndCoords(

    inst~>master

    dbConcatTransform(inst~>transform transform)

    strcat(hierInstPath inst~>cellName "/")

    )

    ) ;when


    )

    t


    )


    CCFgetInstanceNamesAndCoords(cvId)


    fprintf(outPort " \n\n\n <<<------------------------------------------>>>" )

    fprintf(outPort " \n\n End of instances coordinates list . " )

    fprintf(outPort " \n\n <<<------------------------------------------>>>" )

    close( outPort)
    ;view("./netConnection_layout.txt" list(0:0 500:500) "SCHEMATIC NET CONNECTION")
    ; edit("./netConnection_layout.txt")
    ;hiRegTimer("system("open_net_selected")" 100)
    sleep(3)
    system("gedit ./instance_coord.txt &")

    ; End of outport


    );proc

    Best regards,

    Marben

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • wenckey
    wenckey over 6 years ago in reply to Marben

    THanks a lot~ Very useful

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • wenckey
    wenckey over 6 years ago in reply to Marben

    THanks a lot~ Very useful

    • 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