aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/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 /ecp5/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 'ecp5/archdefs.h')
-rw-r--r--ecp5/archdefs.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/ecp5/archdefs.h b/ecp5/archdefs.h
index c8fdf892..732ea99a 100644
--- a/ecp5/archdefs.h
+++ b/ecp5/archdefs.h
@@ -28,28 +28,6 @@ NEXTPNR_NAMESPACE_BEGIN
typedef int delay_t;
-struct DelayInfo
-{
- delay_t min_delay = 0, max_delay = 0;
-
- delay_t minRaiseDelay() const { return min_delay; }
- delay_t maxRaiseDelay() const { return max_delay; }
-
- delay_t minFallDelay() const { return min_delay; }
- delay_t maxFallDelay() const { return max_delay; }
-
- delay_t minDelay() const { return min_delay; }
- delay_t maxDelay() const { return max_delay; }
-
- DelayInfo operator+(const DelayInfo &other) const
- {
- DelayInfo ret;
- ret.min_delay = this->min_delay + other.min_delay;
- ret.max_delay = this->max_delay + other.max_delay;
- return ret;
- }
-};
-
// -----------------------------------------------------------------------
// https://bugreports.qt.io/browse/QTBUG-80789