aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/archdefs.h
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 /gowin/archdefs.h
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 'gowin/archdefs.h')
-rw-r--r--gowin/archdefs.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/gowin/archdefs.h b/gowin/archdefs.h
index 2efe1437..67ac6521 100644
--- a/gowin/archdefs.h
+++ b/gowin/archdefs.h
@@ -26,33 +26,6 @@ NEXTPNR_NAMESPACE_BEGIN
typedef float delay_t;
-struct DelayInfo
-{
- delay_t minRaise = 0;
- delay_t minFall = 0;
- delay_t maxRaise = 0;
- delay_t maxFall = 0;
-
- delay_t minRaiseDelay() const { return minRaise; }
- delay_t maxRaiseDelay() const { return maxRaise; }
-
- delay_t minFallDelay() const { return minFall; }
- delay_t maxFallDelay() const { return maxFall; }
-
- delay_t minDelay() const { return std::min(minFall, minRaise); }
- delay_t maxDelay() const { return std::max(maxFall, maxRaise); }
-
- DelayInfo operator+(const DelayInfo &other) const
- {
- DelayInfo ret;
- ret.minRaise = this->minRaise + other.minRaise;
- ret.maxRaise = this->maxRaise + other.maxRaise;
- ret.minFall = this->minFall + other.minFall;
- ret.maxFall = this->maxFall + other.maxFall;
- return ret;
- }
-};
-
#ifndef Q_MOC_RUN
enum ConstIds
{