From a8c110b045744626f882e2a31ed8b3364f9a65db Mon Sep 17 00:00:00 2001 From: Ross Schlaikjer Date: Sun, 30 Aug 2020 17:43:29 -0400 Subject: Add option to print critical path source code In order to make debugging the critical path easier, add an option that will log the location each net was defined, if known. If the file that contains the definition is known, and is readable, also print the part of the source HDL responsible for the signal definition. --- common/nextpnr.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/nextpnr.h') diff --git a/common/nextpnr.h b/common/nextpnr.h index 4d481d06..fc5e7c46 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -861,6 +861,11 @@ struct Context : Arch, DeterministicRNG bool debug = false; bool force = false; + // Print verilog sources for nets in critical path? + bool print_critical_path_source = false; + // Max line count to print for critical path sources + int critical_path_source_max_lines = 8; + Context(ArchArgs args) : Arch(args) {} // -------------------------------------------------------------- -- cgit v1.2.3 From cba4753c22f07173b1992a2dee08cc5a4a3c971e Mon Sep 17 00:00:00 2001 From: Ross Schlaikjer Date: Sun, 30 Aug 2020 18:19:41 -0400 Subject: Only print filenames for now, default on --- common/nextpnr.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'common/nextpnr.h') diff --git a/common/nextpnr.h b/common/nextpnr.h index fc5e7c46..f9376fea 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -861,10 +861,8 @@ struct Context : Arch, DeterministicRNG bool debug = false; bool force = false; - // Print verilog sources for nets in critical path? - bool print_critical_path_source = false; - // Max line count to print for critical path sources - int critical_path_source_max_lines = 8; + // Should we disable printing of the location of nets in the critical path? + bool disable_critical_path_source_print = false; Context(ArchArgs args) : Arch(args) {} -- cgit v1.2.3