From b51308708bf7202c097deb7f70ff83e710e0970c Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 2 Dec 2018 12:01:43 +0000 Subject: timing_opt: Debugging and integration Signed-off-by: David Shah --- ice40/arch.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ice40/arch.cc') 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())); } -- cgit v1.2.3