• 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. clock uncertainty

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 91
  • Views 14925
  • 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

clock uncertainty

iullah
iullah over 11 years ago
Hello All!
How can I define different uncertainty value for different delay corners (i. e WCL_rcworst_-40) in encounter? 
  • Cancel
Parents
  • kazad
    kazad over 11 years ago

     Hi

    Following procedure may help. Basically, you need to provide the SDC file with the new/updated clock uncertainty.

    For examle: 

     updateSDC -view WCL_rcworst_-40 -sdc <sdc_file_with_new_clock_uncertainty>

     

    ################################################################################
    # Procedure to update MMMC constraints
    # Usage: updateSDC -view <all | view_name> -sdc <sdc_file>
    ################################################################################

    proc updateSDC {args} {
       
        # Default
        set view "all"

        # Get mode name
        if {[regexp {\-view} $args]} {
            set view [lindex $args [expr [lsearch $args -view] + 1]]
        }
       
        # Get SDC file name
        if {[regexp {\-sdc} $args]} {
            set newSdcFile [lindex $args [expr [lsearch $args -sdc] + 1]]
        }
      
        # Help
        set helpString "Usage : updateSDC -view <all | view_name> \
                                      \-sdc <sdc_file> \
                                      \-help"
       
        if {[regexp {\-help} $args] || $args == ""} {
     puts $helpString
     return 0
        }
       
        # Main code
        #########################################################################

        # Save existing setup/hold views
        set restore [get_global timing_defer_mmmc_object_updates]
        set active_setup_views [all_setup_analysis_views]
        set active_hold_views [all_hold_analysis_views]

      
        set_global timing_defer_mmmc_object_updates true

        if {$view == "all"} {

     # For all views
     foreach view [all_analysis_views] {
        
         # Check if same file exists; replace if exists
         # otherwise, append it
         set modeName [get_analysis_view $view -constraint_mode]
         set sdcFiles [get_constraint_mode $modeName -sdc_files]
        
         set loc [lsearch -exact $sdcFiles $newSdcFile]
         if {$loc >= 0} {
      set sdcFiles [lreplace $sdcFiles $loc $loc]
         } else {
      lappend sdcFiles $newSdcFile
         }

         # Update
         update_constraint_mode \
      -name $modeName \
      -sdc_files $sdcFiles
     }

        } else {
     
     # For specific view
     
     # Check if same file exists; replace if exists
     # otherwise, append it
     set modeName [get_analysis_view $view -constraint_mode]
     set sdcFiles [get_constraint_mode $modeName -sdc_files]
     
     set loc [lsearch -exact $sdcFiles $newSdcFile]
     if {$loc >= 0} {
         set sdcFiles [lreplace $sdcFiles $loc $loc]
     } else {
         lappend sdcFiles $newSdcFile
     }
     
     # Update
     update_constraint_mode \
         -name $modeName \
         -sdc_files $sdcFiles
        }

        set_analysis_view -setup $active_setup_views -hold $active_hold_views -update_timing
        set_global timing_defer_mmmc_object_updates $restore
    }
     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • kazad
    kazad over 11 years ago

     Hi

    Following procedure may help. Basically, you need to provide the SDC file with the new/updated clock uncertainty.

    For examle: 

     updateSDC -view WCL_rcworst_-40 -sdc <sdc_file_with_new_clock_uncertainty>

     

    ################################################################################
    # Procedure to update MMMC constraints
    # Usage: updateSDC -view <all | view_name> -sdc <sdc_file>
    ################################################################################

    proc updateSDC {args} {
       
        # Default
        set view "all"

        # Get mode name
        if {[regexp {\-view} $args]} {
            set view [lindex $args [expr [lsearch $args -view] + 1]]
        }
       
        # Get SDC file name
        if {[regexp {\-sdc} $args]} {
            set newSdcFile [lindex $args [expr [lsearch $args -sdc] + 1]]
        }
      
        # Help
        set helpString "Usage : updateSDC -view <all | view_name> \
                                      \-sdc <sdc_file> \
                                      \-help"
       
        if {[regexp {\-help} $args] || $args == ""} {
     puts $helpString
     return 0
        }
       
        # Main code
        #########################################################################

        # Save existing setup/hold views
        set restore [get_global timing_defer_mmmc_object_updates]
        set active_setup_views [all_setup_analysis_views]
        set active_hold_views [all_hold_analysis_views]

      
        set_global timing_defer_mmmc_object_updates true

        if {$view == "all"} {

     # For all views
     foreach view [all_analysis_views] {
        
         # Check if same file exists; replace if exists
         # otherwise, append it
         set modeName [get_analysis_view $view -constraint_mode]
         set sdcFiles [get_constraint_mode $modeName -sdc_files]
        
         set loc [lsearch -exact $sdcFiles $newSdcFile]
         if {$loc >= 0} {
      set sdcFiles [lreplace $sdcFiles $loc $loc]
         } else {
      lappend sdcFiles $newSdcFile
         }

         # Update
         update_constraint_mode \
      -name $modeName \
      -sdc_files $sdcFiles
     }

        } else {
     
     # For specific view
     
     # Check if same file exists; replace if exists
     # otherwise, append it
     set modeName [get_analysis_view $view -constraint_mode]
     set sdcFiles [get_constraint_mode $modeName -sdc_files]
     
     set loc [lsearch -exact $sdcFiles $newSdcFile]
     if {$loc >= 0} {
         set sdcFiles [lreplace $sdcFiles $loc $loc]
     } else {
         lappend sdcFiles $newSdcFile
     }
     
     # Update
     update_constraint_mode \
         -name $modeName \
         -sdc_files $sdcFiles
        }

        set_analysis_view -setup $active_setup_views -hold $active_hold_views -update_timing
        set_global timing_defer_mmmc_object_updates $restore
    }
     

    • 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