• 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. Digital Implementation
  3. detailRoute vs trialRoute

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 90
  • Views 14238
  • 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

detailRoute vs trialRoute

Rajesh Vembu
Rajesh Vembu over 15 years ago

Is there a way to report the differences/ratio of detail route vs trialroute net wirelengths?

Currently reportWire command reports the ratio of detailRoute vs half-perimeter net wirelengths. However, if trialRoute statistics were also included in this, it would be great.

 Are the net lengths stored as part of the net object in encounter? 

  • Cancel
  • BobD
    BobD over 15 years ago

    Hi Rajesh,

    There's not a way to have reportRoute key off trialRoute differences instead of half-perimeter net wirelengths.  Would you explain a little more the scenario(s) you're seeing that this information would be particularly helpful?  It might give us reason to pursue an enhancement to the tool.

    The net lengths are *not* stored as part of the net object in Encounter.  There are "dbNetLenX" and "dbNetLenY" but if you create a serpentine route you'll notice that it's more of a half-perimeter number that's reported.  Here's a code example I cooked up that leverages dbGet to capture wire coordinates and adds up the total wire length:

    set totalLength 0
    foreach pt [dbGet $net.wires.pts] {
      if {$pt != "0x0"} {
        set a [lindex $pt 0]
        set ax [lindex $a 0]
        set ay [lindex $a 1]
        set b [lindex $pt 1]
        set bx [lindex $b 0]
        set by [lindex $b 1]
        set xlen [expr $bx - $ax]
        set ylen [expr $by - $ay]
        set len [expr abs($xlen) + abs($ylen)]
        set totalLength [expr $totalLength + $len]
      }
    }
    puts "$totalLength"

    Maybe you could use this on your design as a starting point for comparing whether trialRoute vs. detailRoute is more enlightening than half-perimeter vs. detailRoute.  Let us know what you find, and if I can be of further assistance on scripting especially.

    Thanks,
    Bob

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Rajesh Vembu
    Rajesh Vembu over 15 years ago

     Bob,

    Thanks for the script.The only limitation in the script is that trialRoute and detailRoute wirelengths have to be computed in a different databases.If the netlength information is stored as part of net object, we can query it easily.

    Here are some reasons, i feel, why we should have a trialRoute vs detailRoute comparison

    1. In case of multi-fanout nets half-perimeter lengths are way-off compared to the detail route. Trial route might be a good indicator as it is based on steiner route.

    2. Since all the optimizations are based on trialRoute information, it would make sense to have a correlation between trialRoute and detailRoute readily available.

    3. Does layer assignment happen while calculating half-perimeter net lengths?

    If net lengths are not stored as part of net object, does it mean reportWire calculates the wirelength (both detail and half-perimeter) everytime it is invoked. For a larger design with millions of nets this could have a big runtime hit.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • BobD
    BobD over 15 years ago

    Thanks for the feedback on the reasons why trialRoute vs. detaiRoute comparison would be useful.  I will pass this along to our developers.  In parallel with that, I'd encourage you to file an enhancement request with the Cadence support folks you work directly with on an ongoing basis, or on http://support.cadence.com

    You're right that the trialRoute lengths with the script example I shared would need to be stored (via a hash table or a side file) in order to use it to compare to detailRoute.

    Half-perimeter net lengths are (I believe) what are stored in dbNetLenX/dbNetLenY so I don't think it needs to be recalculated on the fly.  I could be wrong on that though.

    I can see there being complexity in implementing what you're requesting from our developer's perspective.  Say for example, someone runs trialRoute and then edits the routes manually.  Then they save the design and exit the tool.  Then they restore the design.  Then later, at some point, they call reportRoute and want it to compare trialRoute to detailRoute.  I can see it being non-trivia for the trialRouted lengths to be accurate and persistent in this scenario.

    I hope this helps understand why this isn't straightforward.  Thanks for raising this issue- even if we don't have this capability straight away, I think it's useful to understand the subject a little better and know what options are/aren't available if you or other users are working in this space.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Rajesh Vembu
    Rajesh Vembu over 15 years ago
    I've already filed a enhancement request CCR - 728057 for the same.

    I wasn't aware that the trialRoutes could be edited manually. I have known users manually editing the routes after the detail Routing rather than after trialRoute

    The tool has to recalculate the exact net length of the detail route anyways before it reports the correct wirelength for the nets.But as far as trialRoutes go, if it can't be modified, it would be easier to store as part of net object.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Khanh
    Khanh over 15 years ago

    Hi,

    I have a question related to this topic and would appreciated if someone could help: I have a design which trialRoute and globalRoute cong map show good congestion and timing. globalDetailRoute however detour a group of signals (about 100) around one memory (where trialRoute just route straight through) which causes 400ps timing difference for this group. "optDesign -postRoute" couldn't bring the timing back to pre-route (~ -100ps WNS). The design still routable. Any comments, suggestions?

    Thanks.

    Khanh 

    • 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