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 --- ecp5/arch.cc | 2 ++ ecp5/pack.cc | 1 + 2 files changed, 3 insertions(+) (limited to 'ecp5') diff --git a/ecp5/arch.cc b/ecp5/arch.cc index e796c9db..2061bf4a 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -524,6 +524,7 @@ bool Arch::place() } permute_luts(); + getCtx()->attrs[getCtx()->id("step")] = "place"; archInfoToAttributes(); return true; } @@ -560,6 +561,7 @@ bool Arch::route() log_info(" base %d adder %d\n", speed_grade->pip_classes[locInfo(slowest_pip)->pip_data[slowest_pip.index].timing_class].max_base_delay, speed_grade->pip_classes[locInfo(slowest_pip)->pip_data[slowest_pip.index].timing_class].max_fanout_adder); #endif + getCtx()->attrs[getCtx()->id("step")] = "route"; archInfoToAttributes(); return result; } diff --git a/ecp5/pack.cc b/ecp5/pack.cc index 20130aad..4077bfed 100644 --- a/ecp5/pack.cc +++ b/ecp5/pack.cc @@ -2429,6 +2429,7 @@ bool Arch::pack() Ecp5Packer(ctx).pack(); log_info("Checksum: 0x%08x\n", ctx->checksum()); assignArchInfo(); + ctx->attrs[ctx->id("step")] = "pack"; archInfoToAttributes(); return true; } catch (log_execution_error_exception) { -- cgit v1.2.3