diff options
author | gatecat <gatecat@ds0.me> | 2021-05-15 14:51:12 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-05-15 14:54:33 +0100 |
commit | 3bb94192d54bfcdbcd58dacd298aa6ff6d9b2bd2 (patch) | |
tree | f99379bfe78a5ec7ab0699f0df8a0e0b059094d0 /common | |
parent | b1e1492dac21f2c790540290e61fdd593126f50c (diff) | |
download | nextpnr-3bb94192d54bfcdbcd58dacd298aa6ff6d9b2bd2.tar.gz nextpnr-3bb94192d54bfcdbcd58dacd298aa6ff6d9b2bd2.tar.bz2 nextpnr-3bb94192d54bfcdbcd58dacd298aa6ff6d9b2bd2.zip |
mistral: Tidying up
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common')
-rw-r--r-- | common/archcheck.cc | 2 | ||||
-rw-r--r-- | common/router2.cc | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/common/archcheck.cc b/common/archcheck.cc index 80d8ef58..f46db95c 100644 --- a/common/archcheck.cc +++ b/common/archcheck.cc @@ -28,7 +28,7 @@ USING_NEXTPNR_NAMESPACE -#ifndef ARCH_CYCLONEV +#ifndef ARCH_MISTRAL // The LRU cache to reduce memory usage during the connectivity check relies on getPips() having some spacial locality, // which the current CycloneV arch impl doesn't have. This may be fixed in the future, though. #define USING_LRU_CACHE diff --git a/common/router2.cc b/common/router2.cc index d189cd68..ebd4e390 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -902,7 +902,8 @@ struct Router2 if ((net_data.fail_count % 3) == 0) { // Every three times a net fails to route, expand the bounding box to increase the search space #ifndef ARCH_MISTRAL - // This patch seems to make thing worse for CycloneV, as it slows down the resolution of TD congestion, disable it + // This patch seems to make thing worse for CycloneV, as it slows down the resolution of TD congestion, + // disable it net_data.bb.x0 = std::max(net_data.bb.x0 - 1, 0); net_data.bb.y0 = std::max(net_data.bb.y0 - 1, 0); net_data.bb.x1 = std::min(net_data.bb.x1 + 1, ctx->getGridDimX()); |