From d3ad522bfe4d6c0f63a455ad5deabc568a50b5f3 Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 12 Nov 2018 13:59:09 +0000 Subject: ecp5: Copy clock constraints during global promotion Signed-off-by: David Shah --- ecp5/globals.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ecp5') diff --git a/ecp5/globals.cc b/ecp5/globals.cc index 06412fef..9b0928a4 100644 --- a/ecp5/globals.cc +++ b/ecp5/globals.cc @@ -350,6 +350,13 @@ class Ecp5GlobalRouter place_dcc(dcc.get()); + if (net->clkconstr) { + glbnet->clkconstr = std::unique_ptr(new ClockConstraint()); + glbnet->clkconstr->low = net->clkconstr->low; + glbnet->clkconstr->high = net->clkconstr->high; + glbnet->clkconstr->period = net->clkconstr->period; + } + ctx->cells[dcc->name] = std::move(dcc); NetInfo *glbptr = glbnet.get(); ctx->nets[glbnet->name] = std::move(glbnet); -- cgit v1.2.3