report: Handle new segment types
This commit is contained in:
parent
4488d42368
commit
3b7fec8c4f
@ -79,7 +79,11 @@ static Json::array json_report_critical_paths(const Context *ctx)
|
||||
auto segmentJson =
|
||||
Json::object({{"delay", Json::array({minDelay, maxDelay})}, {"from", fromJson}, {"to", toJson}});
|
||||
|
||||
if (segment.type == CriticalPath::Segment::Type::CLK_TO_Q) {
|
||||
if (segment.type == CriticalPath::Segment::Type::CLK2CLK) {
|
||||
segmentJson["type"] = "clk-to-clk";
|
||||
} else if (segment.type == CriticalPath::Segment::Type::CLK_SKEW) {
|
||||
segmentJson["type"] = "clk-skew";
|
||||
} else 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";
|
||||
|
Loading…
Reference in New Issue
Block a user