aboutsummaryrefslogtreecommitdiffstats
path: root/common/report.cc
diff options
context:
space:
mode:
authorMaciej Kurc <mkurc@antmicro.com>2021-09-29 10:16:45 +0200
committerMaciej Kurc <mkurc@antmicro.com>2021-09-29 10:16:45 +0200
commit76f5874ffcd57f69808e0df752622dfe13759538 (patch)
tree6867d16a4c338fd1b734a13a4e392ea7659dee35 /common/report.cc
parent1ed692aca90a9a103fc5e15aeeae31b515072035 (diff)
downloadnextpnr-76f5874ffcd57f69808e0df752622dfe13759538.tar.gz
nextpnr-76f5874ffcd57f69808e0df752622dfe13759538.tar.bz2
nextpnr-76f5874ffcd57f69808e0df752622dfe13759538.zip
Brought back printout of critical path source file references, added clk-to-q, source and setup segment types
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Diffstat (limited to 'common/report.cc')
-rw-r--r--common/report.cc13
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!)>,