ecp5: Copy clock constraints during global promotion

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2018-11-12 13:59:09 +00:00
parent fc5e6bec9a
commit d3ad522bfe

View File

@ -350,6 +350,13 @@ class Ecp5GlobalRouter
place_dcc(dcc.get());
if (net->clkconstr) {
glbnet->clkconstr = std::unique_ptr<ClockConstraint>(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);