aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-02-20 10:51:57 +0000
committerGitHub <noreply@github.com>2021-02-20 10:51:57 +0000
commit6672f17d0a546054412c3ecad29a5414ffdcd971 (patch)
treee0976dd397edf50fe89b5108751c5fb3a7ace896 /common/nextpnr.cc
parent130c5cc76882c2f07836b97040e6bc1d93e4efe9 (diff)
parente571c707b50a601787590b9752205336ee1c3f6d (diff)
downloadnextpnr-6672f17d0a546054412c3ecad29a5414ffdcd971.tar.gz
nextpnr-6672f17d0a546054412c3ecad29a5414ffdcd971.tar.bz2
nextpnr-6672f17d0a546054412c3ecad29a5414ffdcd971.zip
Merge pull request #592 from YosysHQ/gatecat/rework-delay
Replace DelayInfo with DelayPair and DelayQuad
Diffstat (limited to 'common/nextpnr.cc')
-rw-r--r--common/nextpnr.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/nextpnr.cc b/common/nextpnr.cc
index 11acf991..9a73affc 100644
--- a/common/nextpnr.cc
+++ b/common/nextpnr.cc
@@ -656,9 +656,9 @@ void Context::check() const
void BaseCtx::addClock(IdString net, float freq)
{
std::unique_ptr<ClockConstraint> cc(new ClockConstraint());
- cc->period = getCtx()->getDelayFromNS(1000 / freq);
- cc->high = getCtx()->getDelayFromNS(500 / freq);
- cc->low = getCtx()->getDelayFromNS(500 / freq);
+ cc->period = DelayPair(getCtx()->getDelayFromNS(1000 / freq));
+ cc->high = DelayPair(getCtx()->getDelayFromNS(500 / freq));
+ cc->low = DelayPair(getCtx()->getDelayFromNS(500 / freq));
if (!net_aliases.count(net)) {
log_warning("net '%s' does not exist in design, ignoring clock constraint\n", net.c_str(this));
} else {