Support start/end times during VCD reading for activity annotation#41
Open
stanminlee wants to merge 18 commits intomainfrom
Open
Support start/end times during VCD reading for activity annotation#41stanminlee wants to merge 18 commits intomainfrom
stanminlee wants to merge 18 commits intomainfrom
Conversation
Greptile SummaryThis PR adds Key findings:
Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant TCL as read_vcd (Power.tcl)
participant SWIG as read_vcd_file (Power.i)
participant RVA as ReadVcdActivities
participant VCR as VcdCountReader
participant VCP as VcdParse
participant VCC as VcdCount
TCL->>SWIG: read_vcd_file(filename, scope, start_time, end_time)
SWIG->>RVA: ReadVcdActivities(filename, scope, start_time, end_time, sta)
RVA->>VCR: setTimeWindow(start_time, end_time)
RVA->>VCP: read(filename, &vcd_reader, start_time, end_time)
Note over VCP: Stores start_time_, end_time_
VCP->>VCR: setTimeMin(start_time_) [if start_time >= 0]
loop For each VCD token
VCP->>VCP: parse timestamp #T
alt T >= end_time (proposed fix: >=, current: >)
VCP-->>VCP: break (stop parsing early)
else T inside window
VCP->>VCR: varAppendValue(id, T, value)
VCR->>VCC: incrCounts(T, value, filter_start, filter_end)
Note over VCC: count_interval = (T > filter_start) && (T < filter_end)<br/>accumulate high_time_ and transition_count_
end
end
VCP->>VCR: setTimeMax(end_time_ if set, else time_)
RVA->>VCR: timeMax() / timeMin() / countMap()
RVA->>VCC: highTime(time_max) → duty cycle
RVA->>RVA: setActivities() → power_.setUserActivity(pin, density, duty)
Last reviewed commit: c7f1711 |
Author
|
@greptile please review again |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supporting start and end times for reading VCDs, should populate activity/duty values for value changes within the time window specified.
Changes