diff options
author | David Shah <dave@ds0.me> | 2018-11-12 13:42:25 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2018-11-12 14:03:58 +0000 |
commit | fc5e6bec9ab8bf2c25b2b943de4013daf727dfb8 (patch) | |
tree | 1f3c4171cb20e3ec8123ceef576c383fa0034d24 /ice40/pack.cc | |
parent | 11579a1046640a21b79aa6a1f579d3464267d0a1 (diff) | |
download | nextpnr-fc5e6bec9ab8bf2c25b2b943de4013daf727dfb8.tar.gz nextpnr-fc5e6bec9ab8bf2c25b2b943de4013daf727dfb8.tar.bz2 nextpnr-fc5e6bec9ab8bf2c25b2b943de4013daf727dfb8.zip |
timing: Add support for clock constraints
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ice40/pack.cc')
-rw-r--r-- | ice40/pack.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc index b9360b74..7a27d505 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -490,6 +490,14 @@ static void insert_global(Context *ctx, NetInfo *net, bool is_reset, bool is_cen } } net->users = keep_users; + + 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->nets[glbnet->name] = std::move(glbnet); ctx->cells[gb->name] = std::move(gb); } |