diff options
author | Ross Schlaikjer <ross@schlaikjer.net> | 2020-08-30 17:43:29 -0400 |
---|---|---|
committer | Ross Schlaikjer <ross@schlaikjer.net> | 2020-08-30 17:43:29 -0400 |
commit | a8c110b045744626f882e2a31ed8b3364f9a65db (patch) | |
tree | 5c82e78b995de12b65f8e3cea27276673abd1631 /common/nextpnr.h | |
parent | f6d436d58b8206aabe287325fc80da5521ed2e75 (diff) | |
download | nextpnr-a8c110b045744626f882e2a31ed8b3364f9a65db.tar.gz nextpnr-a8c110b045744626f882e2a31ed8b3364f9a65db.tar.bz2 nextpnr-a8c110b045744626f882e2a31ed8b3364f9a65db.zip |
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.
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r-- | common/nextpnr.h | 5 |
1 files changed, 5 insertions, 0 deletions
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) {} // -------------------------------------------------------------- |