mirror of https://github.com/YosysHQ/nextpnr.git
ecp5: Copy clock constraints during global promotion
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
fc5e6bec9a
commit
d3ad522bfe
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue