File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,9 +110,10 @@ void
110110VcdCount::incrCounts (VcdTime time, char value)
111111{
112112 // Determine if this time point is within the filter window
113- bool in_window = (filter_start_ < 0 || time >= filter_start_)
114- && (filter_end_ < 0 || time <= filter_end_);
115-
113+ // NOTE: Does not count transitions right at the window boundaries.
114+ bool in_window = (filter_start_ < 0 || time > filter_start_)
115+ && (filter_end_ < 0 || time < filter_end_);
116+
116117 // Initial value does not contribute to transitions or high time.
117118 if (prev_time_ != -1 && in_window) {
118119 if (prev_value_ == ' 1' ) {
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ u_inv/A 0.05 0.500
77Annotated 2 pin activities.
88Pin Name Activity Duty Cycle
99--------------------------------------------------------
10- u_inv/Y 0.1 1.000
11- u_inv/A 0.1 0.000
10+ u_inv/Y 0.0 1.000
11+ u_inv/A 0.0 0.000
1212
1313Annotated 2 pin activities.
1414Pin Name Activity Duty Cycle
1515--------------------------------------------------------
16- u_inv/Y 0.1 0.000
17- u_inv/A 0.1 1.000
16+ u_inv/Y 0.0 0.000
17+ u_inv/A 0.0 1.000
1818
1919Annotated 2 pin activities.
2020Pin Name Activity Duty Cycle
You can’t perform that action at this time.
0 commit comments