• 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 Design
  3. Need to get routing layers info from tech db

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 12112
  • 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

Need to get routing layers info from tech db

Utkarsh03
Utkarsh03 over 4 years ago

Hi

I am trying to get the routing layers data from a technology file, I have dumped the tech file and the layerRules section, routingDirection section exists inside that. However, when I am executing the below three lines I am getting "nil" as the output for all three.

tf=techGetTechFile(ddGetObj(techLibName))

techIsPrRoutingLayer(tf "M1")

techGetPrRoutingDirection(tf "M1")


techGetPrRoutingLayers(tf)

Can you please let me know what is the issue here.

Thanks in Advance

Utkarsh

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    Hi Utkarsh,

    This article indicates that the techGetPr* functions are for legacy support these days and ideally you should go to the constraintGroups instead: API techGetPrRoutingLayers(tfId) does not work with ITDB

    However, if techGetPrRoutingLayers returns nil, then that means you do not have a LEFDefaulteRouteSpec constraint group, or it doesn't have a validLayers constraint within it. The routing directions information doesn't come from a routingDirections constraint within that constraint group (rather bizarrely) but from the routingDirections specification within the layerRules section (the documentation does say this). The techGetPrRoutingDirection function only retrieves from the routingDirections in layerRules if the LEFDefaultRouteSpec constraint group exists though....

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Utkarsh03
    Utkarsh03 over 4 years ago in reply to Andrew Beckett

    Thank you Andrew for your answer. I just verified that LEFDefaultRouteSpec does not include any validLayers constraint within it. That is why probably I am getting nil. Can you please suggest other method to extract Routing Layers info from the tech db?

    Utkarsh

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to Utkarsh03

    Well, I'm pretty sure  you're going to need validLayers in whichever constraint group you're using for routing (it may not be LEFDefaultRouteSpec). Say it's called something else, you can do this:

    cg=cstFindConstraintGroupIn(tf "LEFDefaultRouteSpec_gpdk045")

    then:

    cstFindFirstConstraint(cg "validLayers")~>value

    cstFindFirstConstraint(cg "routingDirections" list("Metal3"))~>value

    This is assuming that there's validLayers and routingDirections defined within the constraint group in question. 

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Utkarsh03
    Utkarsh03 over 4 years ago in reply to Andrew Beckett

    Got that!! In my techfile we have a contraint group called "default" and valid layers is inside that. Thankyou Andrew, above commands work perfect.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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