aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/timinginfo.h
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-04-21 17:03:28 -0700
committerEddie Hung <eddie@fpgeh.com>2020-05-14 10:33:56 -0700
commit7146c0339e0b79ec24bc89e7fdf15331436e0e53 (patch)
treecec9a7305b6ed1d46c043f43bdb9fabce07c6553 /kernel/timinginfo.h
parent6c34945371a0446159423b0d70f9f10dbc2c4d07 (diff)
downloadyosys-7146c0339e0b79ec24bc89e7fdf15331436e0e53.tar.gz
yosys-7146c0339e0b79ec24bc89e7fdf15331436e0e53.tar.bz2
yosys-7146c0339e0b79ec24bc89e7fdf15331436e0e53.zip
timinginfo: ignore $specify2 cells if EN is false
Diffstat (limited to 'kernel/timinginfo.h')
-rw-r--r--kernel/timinginfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/timinginfo.h b/kernel/timinginfo.h
index 36908868c..d818e580b 100644
--- a/kernel/timinginfo.h
+++ b/kernel/timinginfo.h
@@ -82,6 +82,9 @@ struct TimingInfo
for (auto cell : module->cells()) {
if (cell->type == ID($specify2)) {
+ auto en = cell->getPort(ID::EN);
+ if (en.is_fully_const() && !en.as_bool())
+ continue;
auto src = cell->getPort(ID::SRC);
auto dst = cell->getPort(ID::DST);
for (const auto &c : src.chunks())