Virginia Tech® home

Note on TCF file and Power Estimation

Authors: Hetaswi Vankani and Dr. Dong S. Ha


Tool: RTL Compiler

NOTE: The files downloaded must not be saved or used in .txt format. Please save it in the format as mentioned in the tutorial.

1. Generating TCF file

TCF (Toggle Count Format) is a proprietary format that provides switching information. Toggle attributes such as static probability (time for which net is high to duration) and transition rate (toggle rate to duration) are used to obtain switching information for power estimation. 

Fig 1. Data flow diagram for TCF generation and power estimation.
Fig 1. Data flow diagram for TCF generation and power estimation.

 

  1. This tutorial assumes that the files input and output by tutorial 01 and tutorial 02 are available in work directory. Copy dumptcf.tcl from here: dumptcf.tcl
  2. Type ‘Cadence’ in your work directory to set paths for various Cadence tools and libraries. In case of this tutorial, the directory is ‘tut_65nm’. For remote connection on windows systems, make sure that xming is running. In general, xming is slow, so, it would be best to generate TCF file on CVL machines.
  3. Next, type ‘ncsim worklib.tb_cnt_updown:v –gui’. Worklib.tb_cnt_updown:v is the snapshot of the testbench tb_cnt_updown.v. GUI and console as shown in fig 2 pops up.
Fig 2. NCSim GUI and Console
Fig 2. NCSim GUI and Console
  • In the ncsim console type, ‘source dumptcf.tcl’. This would generate dut.tcf file which is used by RTL Compiler for early power estimation. Once, this script has finished execution, exit the tool.
Fig 3. Source dumptcf.tcl
Fig 3. Source dumptcf.tcl


Comments to: ha@vt.edu