aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-01-28 14:59:13 +0000
committerD. Shah <dave@ds0.me>2021-01-28 14:59:13 +0000
commit6ecf7f86c8356cc9b386e017ac0ff1ce4c9c19c9 (patch)
tree83bcc4a10a5da7d3b2ebd4c2660b931a45d293d5 /ecp5
parent0d9790421699a22fc6a5962b41910c3b7d089353 (diff)
downloadnextpnr-6ecf7f86c8356cc9b386e017ac0ff1ce4c9c19c9.tar.gz
nextpnr-6ecf7f86c8356cc9b386e017ac0ff1ce4c9c19c9.tar.bz2
nextpnr-6ecf7f86c8356cc9b386e017ac0ff1ce4c9c19c9.zip
cleanup: Remove dead/unused code
Note that some '#if 0' code that might still be useful for debugging in the future has been retained. Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/arch.cc25
1 files changed, 0 insertions, 25 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index 8ebb7425..74a1b17f 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -615,31 +615,6 @@ bool Arch::route()
log_error("ECP5 architecture does not support router '%s'\n", router.c_str());
}
-#if 0
- std::vector<std::pair<WireId, int>> fanout_vector;
- std::copy(wire_fanout.begin(), wire_fanout.end(), std::back_inserter(fanout_vector));
- std::sort(fanout_vector.begin(), fanout_vector.end(), [](const std::pair<WireId, int> &a, const std::pair<WireId, int> &b) {
- return a.second > b.second;
- });
- for (size_t i = 0; i < std::min(size_t(20), fanout_vector.size()); i++)
- log_info(" fanout %s = %d\n", getWireName(fanout_vector[i].first).c_str(this), fanout_vector[i].second);
- log_break();
- PipId slowest_pip;
- delay_t slowest_pipdelay = 0;
- for (auto pip : pip_to_net) {
- if (pip.second) {
- delay_t dly = getPipDelay(pip.first).maxDelay();
- if (dly > slowest_pipdelay) {
- slowest_pip = pip.first;
- slowest_pipdelay = dly;
- }
- }
- }
- log_info(" slowest pip %s = %.02f ns\n", getPipName(slowest_pip).c_str(this), getDelayNS(slowest_pipdelay));
- log_info(" fanout %d\n", wire_fanout[getPipSrcWire(slowest_pip)]);
- log_info(" base %d adder %d\n", speed_grade->pip_classes[locInfo(slowest_pip)->pip_data[slowest_pip.index].timing_class].max_base_delay,
- speed_grade->pip_classes[locInfo(slowest_pip)->pip_data[slowest_pip.index].timing_class].max_fanout_adder);
-#endif
getCtx()->settings[getCtx()->id("route")] = 1;
archInfoToAttributes();
return result;