diff options
Diffstat (limited to 'common/report.cc')
-rw-r--r-- | common/report.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/common/report.cc b/common/report.cc index f2926c86..1338ade5 100644 --- a/common/report.cc +++ b/common/report.cc @@ -82,9 +82,18 @@ static Json::array report_critical_paths (const Context* ctx) { {"to", toJson}, }); - if (segment.type == CriticalPath::Segment::Type::LOGIC) { + if (segment.type == CriticalPath::Segment::Type::CLK_TO_Q) { + segmentJson["type"] = "clk-to-q"; + } + else if (segment.type == CriticalPath::Segment::Type::SOURCE) { + segmentJson["type"] = "source"; + } + else if (segment.type == CriticalPath::Segment::Type::LOGIC) { segmentJson["type"] = "logic"; } + else if (segment.type == CriticalPath::Segment::Type::SETUP) { + segmentJson["type"] = "setup"; + } else if (segment.type == CriticalPath::Segment::Type::ROUTING) { segmentJson["type"] = "routing"; segmentJson["net"] = segment.net.c_str(ctx); @@ -201,7 +210,7 @@ Report JSON structure: <grid y> ] }, - "type": <path segment type "logic" or "routing">, + "type": <path segment type "clk-to-q", "source", "logic", "routing" or "setup">, "net": <net name (for routing only!)>, "delay": <segment delay [ns]>, "budget": <segment delay budget [ns] (for routing only!)>, |