vcd transition count

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2022-11-02 08:32:42 -07:00
parent aff6342435
commit a48bb7dbe5
1 changed files with 2 additions and 1 deletions

View File

@ -190,7 +190,8 @@ ReadVcdActivities::findVarActivity(const VcdValues &var_values,
}
if (prev_value == '1')
high_time += time - prev_time;
transition_count++;
if (value != prev_value)
transition_count++;
prev_time = time;
prev_value = value;
}