From d9b0bac248a12466cd2b62d02ec11b2e60d25019 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 7 Jun 2019 16:11:11 +0200 Subject: Save top level attrs and store current step --- ice40/arch.cc | 2 ++ ice40/pack.cc | 1 + 2 files changed, 3 insertions(+) (limited to 'ice40') diff --git a/ice40/arch.cc b/ice40/arch.cc index b7207ca9..4945f5b3 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -689,12 +689,14 @@ bool Arch::place() tocfg.cellTypes.insert(id_ICESTORM_LC); retVal = timing_opt(getCtx(), tocfg); } + getCtx()->attrs[getCtx()->id("step")] = "place"; archInfoToAttributes(); return retVal; } bool Arch::route() { bool retVal = router1(getCtx(), Router1Cfg(getCtx())); + getCtx()->attrs[getCtx()->id("step")] = "route"; archInfoToAttributes(); return retVal; } diff --git a/ice40/pack.cc b/ice40/pack.cc index 0a62a5ca..ce39c903 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -1421,6 +1421,7 @@ bool Arch::pack() ctx->assignArchInfo(); constrain_chains(ctx); ctx->assignArchInfo(); + ctx->attrs[ctx->id("step")] = "pack"; archInfoToAttributes(); log_info("Checksum: 0x%08x\n", ctx->checksum()); return true; -- cgit v1.2.3