aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index ada78020..5cd55774 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -27,6 +27,7 @@
#include "placer1.h"
#include "router1.h"
#include "util.h"
+#include "timing_opt.h"
NEXTPNR_NAMESPACE_BEGIN
@@ -626,7 +627,13 @@ bool Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, delay
// -----------------------------------------------------------------------
-bool Arch::place() { return placer1(getCtx(), Placer1Cfg(getCtx())); }
+bool Arch::place() {
+ if(!placer1(getCtx(), Placer1Cfg(getCtx())))
+ return false;
+ TimingOptCfg tocfg(getCtx());
+ tocfg.cellTypes.insert(id_ICESTORM_LC);
+ return timing_opt(getCtx(), tocfg);
+}
bool Arch::route() { return router1(getCtx(), Router1Cfg(getCtx())); }