diff options
author | Maciej Kurc <mkurc@antmicro.com> | 2021-07-22 14:07:35 +0200 |
---|---|---|
committer | Maciej Kurc <mkurc@antmicro.com> | 2021-07-22 14:07:35 +0200 |
commit | 580a45485afe48a77272f44f8aa99875cdd4d441 (patch) | |
tree | cd856761140c200127b61fed5f1268fe079d8405 /fpga_interchange/arch.cc | |
parent | 8fc16a57c9dee5e7e0f83752a62612f70f18a38e (diff) | |
download | nextpnr-580a45485afe48a77272f44f8aa99875cdd4d441.tar.gz nextpnr-580a45485afe48a77272f44f8aa99875cdd4d441.tar.bz2 nextpnr-580a45485afe48a77272f44f8aa99875cdd4d441.zip |
Added an option to disable the LUT mapping cache
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
Diffstat (limited to 'fpga_interchange/arch.cc')
-rw-r--r-- | fpga_interchange/arch.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fpga_interchange/arch.cc b/fpga_interchange/arch.cc index 64eef2ad..3b0572fa 100644 --- a/fpga_interchange/arch.cc +++ b/fpga_interchange/arch.cc @@ -814,10 +814,12 @@ bool Arch::place() archInfoToAttributes(); // Print site LUT mapping caching stats - log_info("Site LUT mapping cache stats:\n"); - log_info(" miss ratio: %.1f%%\n", getCtx()->site_lut_mapping_cache.getMissRatio() * 100.0f); - log_info(" peak size : %zuMB (%zu items)\n", getCtx()->site_lut_mapping_cache.getSizeMB(), - getCtx()->site_lut_mapping_cache.getCount()); + if (!getCtx()->arch_args.disable_lut_mapping_cache) { + log_info("Site LUT mapping cache stats:\n"); + log_info(" miss ratio: %.1f%%\n", getCtx()->site_lut_mapping_cache.getMissRatio() * 100.0f); + log_info(" peak size : %zuMB (%zu items)\n", getCtx()->site_lut_mapping_cache.getSizeMB(), + getCtx()->site_lut_mapping_cache.getCount()); + } getCtx()->check(); |