• 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. Logic Design
  3. Problem occurs when reading vcd in RTL Compiler

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 63
  • Views 17084
  • 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

Problem occurs when reading vcd in RTL Compiler

rexnyu
rexnyu over 12 years ago

Dear all,

I need to analyze the power consumption using RTL Compiler based on the VCD file generated by ModelSim. I have two files:

gcm.v (This is the main circuit. Module name is "gcm")

tb.v (This is the testbench. Module name is "tb", and "gcm" is instantiated as "gcm_tb")

 

The command to generate vcd file is in tb.v as below:

  $dumpfile ("testb. vcd");

  $dumpvars (1, testbench.gcm_tb);

 

Here is my script for RTL compiler:

 

set_attribute lib_search_path /opt/cadence/local/FreePDK45/osu_soc/lib/files

set_attribute library {gscl45nm.lib}

read_hdl -v2001 tb.v

elaborate

synthesize -to_mapped 

read_vcd -vcd_module gcm_tb -module gcm -static testb.\ vcd

write -mapped > gcm_synth.v

report power > power.txt

exit

 

 RTL compiler gives me the same power numbers with and without the VCD file. What is the reason for this? 

 

 Thank you!

 

  • Cancel
Parents
  • rexnyu
    rexnyu over 12 years ago

    Sorry. I changed the hdl input file, here is the command I used

    read_hdl -v2001 gcm.v

     

    I also change the script according to what you suggest as below:

     

    elaborate

    read_vcd -vcd_module gcm_tb -module gcm -static testb.\ vcd

    synthesize -to_mapped

    write -mapped > gcm_synth.v

    report power -tcf_summary > power.txt

     

    In power.txt, I still get the same power number with and without VCD file. Here is the summary:

    ============================================================

      Generated by:           Encounter(r) RTL Compiler v07.10-p004_1

      Generated on:           Mar 28 2013  12:34:49 PM

      Module:                 gcm

      Technology library:     gscl45nm

      Operating conditions:   typical (balanced_tree)

      Wireload mode:          enclosed

    ============================================================


                         Leakage    Dynamic     Total

      Instance   Cells  Power(nW)  Power(nW)  Power(nW)

    ----------------------------------------------------

    gcm           4318 103161.839 784254.990 887416.829

      add_258_11   127   6038.327  16897.719  22936.046

      GFM            0      0.000  11282.948  11282.948

      aes_inst       0      0.000  52656.175  52656.175


    -------------------------------------------------------

    Total nets in design            : 5347 (100.00%)

    Nets asserted                   : 0 (0.00%)

    Nets computed                   : 5344 (99.94%)

    Default nets                    : 0 (0.00%)

    Clock nets                      : 0 (0.00%)

    Constant nets                   : 3 (0.06%)

    Net does not have TCF asserted  : 5347 (100.00%)

    -------------------------------------------------------

     

     The VCD file I used works fine with Xilinx power analyzer. Do I need to regenerate it using cadence ncsim?

     BTW: When I generate the VCD file, do I need to tell ModelSim the library that I am going to use in RTL Compiler?

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • rexnyu
    rexnyu over 12 years ago

    Sorry. I changed the hdl input file, here is the command I used

    read_hdl -v2001 gcm.v

     

    I also change the script according to what you suggest as below:

     

    elaborate

    read_vcd -vcd_module gcm_tb -module gcm -static testb.\ vcd

    synthesize -to_mapped

    write -mapped > gcm_synth.v

    report power -tcf_summary > power.txt

     

    In power.txt, I still get the same power number with and without VCD file. Here is the summary:

    ============================================================

      Generated by:           Encounter(r) RTL Compiler v07.10-p004_1

      Generated on:           Mar 28 2013  12:34:49 PM

      Module:                 gcm

      Technology library:     gscl45nm

      Operating conditions:   typical (balanced_tree)

      Wireload mode:          enclosed

    ============================================================


                         Leakage    Dynamic     Total

      Instance   Cells  Power(nW)  Power(nW)  Power(nW)

    ----------------------------------------------------

    gcm           4318 103161.839 784254.990 887416.829

      add_258_11   127   6038.327  16897.719  22936.046

      GFM            0      0.000  11282.948  11282.948

      aes_inst       0      0.000  52656.175  52656.175


    -------------------------------------------------------

    Total nets in design            : 5347 (100.00%)

    Nets asserted                   : 0 (0.00%)

    Nets computed                   : 5344 (99.94%)

    Default nets                    : 0 (0.00%)

    Clock nets                      : 0 (0.00%)

    Constant nets                   : 3 (0.06%)

    Net does not have TCF asserted  : 5347 (100.00%)

    -------------------------------------------------------

     

     The VCD file I used works fine with Xilinx power analyzer. Do I need to regenerate it using cadence ncsim?

     BTW: When I generate the VCD file, do I need to tell ModelSim the library that I am going to use in RTL Compiler?

     

    • 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