• 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. Gated flop count

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 92
  • Views 14966
  • 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

Gated flop count

kazad
kazad over 14 years ago

Hi

I am trying to get the no. of gated flop count within Encounter.

Can anyone throw any idea/procedure on this?

Thanks

Khandaker

  • Cancel
  • Vishnu Chada
    Vishnu Chada over 14 years ago
    sizeof_collection [get_cells -hier -filter " is_integrated_clock_gating_cell == true"]
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • grasshopper
    grasshopper over 14 years ago

     Hi Khandaker,

     

    I think this is what you want

        unset -nocomplain designMetrics

       dbForEachCellInst [dbHeadTopCell] inst {

            if {[dbIsInstStdCell $inst] && [dbIsCellSequential $cell]} {
                set designMetrics(seqArea) [expr $designMetrics(seqArea) + ${instArea}]
                incr designMetrics(seqCount)
            }
        }

     

    good luck,

    gh-

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Vishnu Chada
    Vishnu Chada over 14 years ago

    proc GateFlopCnt { } {
    set x  [get_cells -hier  -filter  " is_integrated_clock_gating_cell == true"]
    set cnt 0
    foreach_in_collection y $x {
           set inst [filter_collection [all_fanout -from [get_object_name $y]/Q -endpoints_only] { is_integrated_clock_gating_cell == true }]
            foreach_in_collection i $inst {
                     incr cnt
                  }
          }
    puts "$cnt"
    }


    Misread the question earlier sorry about that.Let me know if you think the logic is skewed.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kazad
    kazad over 14 years ago

    Hi Gh

    This gives all the sequential elements in the design. But I after the flops those clock nets are coming from the clock-gating cell outputs.

    Thanks

    Khandaker

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Vishnu Chada
    Vishnu Chada over 14 years ago
    Minor modification : instead of "set inst [filter_collection [all_fanout -from [get_object_name $y]/Q -endpoints_only] { is_integrated_clock_gating_cell == true }] " we should be using as the above was assigning only the clock gating cell. set inst [filter_collection [all_fanout -from [get_object_name $y]/Q -only_cells] { is_integrated_clock_gating_cell == false && is_sequential == true }]
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kazad
    kazad over 14 years ago

    Hi Vinshu

    Thanks very much for the procedure. It really helped my need.

    Cheers

    Khandaker

    • 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