aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 5688b6e6..09e64b16 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -671,10 +671,13 @@ bool Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, delay
bool Arch::place()
{
- // if (!placer1(getCtx(), Placer1Cfg(getCtx())))
- // return false;
- if (!placer_heap(getCtx()))
- return false;
+ if (bool_or_default(settings, id("heap_placer"), false)) {
+ if (!placer_heap(getCtx()))
+ return false;
+ } else {
+ if (!placer1(getCtx(), Placer1Cfg(getCtx())))
+ return false;
+ }
if (bool_or_default(settings, id("opt_timing"), false)) {
TimingOptCfg tocfg(getCtx());
tocfg.cellTypes.insert(id_ICESTORM_LC);