'Power analysis using PTPX

I met a strange problem when I ran the power simulation with Primetime.

I use read_vcd to read switching activity file(.vcd). $top_path is testbench_name/DUT. $vcd_file is vcd-file generated in gate level.

An error occurs: error 81300: unexpected end of file (aborting). I don't know what's wrong with my code. Thanks a lot

report_timing > $report_dir/timing_pt.rpt
# Read switching activity file
if {$sdf_timing } {
 read_vcd $vcd_file -strip_path $top_path
} else {
 read_vcd -zero_delay -strip_path "$top_path" $vcd_file
}
  error  81300: unexpected end of file (aborting)

======================================================================
Summary:
Total number of nets = 10918
Number of annotated nets = 10918 (100.00%)
Total number of leaf cells = 8462
Number of fully annotated leaf cells = 8462 (100.00%)
======================================================================

Error: 0
    Use error_info for more info. (CMD-013)
Information: script 'powersim/pwr.tcl'
    stopped at line 77 due to error. (CMD-081)
Extended error info:
0
    while executing
"read_vcd $vcd_file -strip_path $top_path"
    invoked from within
"if {$sdf_timing } {
 read_vcd $vcd_file -strip_path $top_path
 report_switching_activity
# read_vcd gate_vcd.dump -pipe_exec "testbench/kara_tb/$tb_na..."
 -- End Extended Error Info


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source