diff options
author | David Shah <davey1576@gmail.com> | 2018-11-15 11:26:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 11:26:08 +0000 |
commit | 9472b6d78f68544d430feeae6d75dbd2dc43019d (patch) | |
tree | 0ab6b20c90d4a93cd9e2d0c14bdadb296e159cdc /ecp5/globals.cc | |
parent | d3b2065cd7d2470a132c055f4bd88d270e1e8fe1 (diff) | |
parent | 9f9b242cf0a3b587df8f5b0eb542ca7256ca0eb9 (diff) | |
download | nextpnr-9472b6d78f68544d430feeae6d75dbd2dc43019d.tar.gz nextpnr-9472b6d78f68544d430feeae6d75dbd2dc43019d.tar.bz2 nextpnr-9472b6d78f68544d430feeae6d75dbd2dc43019d.zip |
Merge pull request #103 from YosysHQ/timingapi
Timing constraints API, multiple clock domains
Diffstat (limited to 'ecp5/globals.cc')
-rw-r--r-- | ecp5/globals.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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<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); |