diff options
author | David Shah <davey1576@gmail.com> | 2018-07-17 11:00:18 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-17 11:00:18 +0200 |
commit | 924037129c711cba718927a6a8b1f17cc101f7c1 (patch) | |
tree | b9ac9a8f67740e1435c0fcb39601fdc76c7c16ae /common | |
parent | 6269d974749ff93c9df01a35bf1797116f045a66 (diff) | |
download | nextpnr-924037129c711cba718927a6a8b1f17cc101f7c1.tar.gz nextpnr-924037129c711cba718927a6a8b1f17cc101f7c1.tar.bz2 nextpnr-924037129c711cba718927a6a8b1f17cc101f7c1.zip |
Fix driver finder when net is undriven
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/design_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/design_utils.h b/common/design_utils.h index cb802a1a..95975179 100644 --- a/common/design_utils.h +++ b/common/design_utils.h @@ -73,6 +73,8 @@ template <typename F1> CellInfo *net_driven_by(const Context *ctx, const NetInfo { if (net == nullptr) return nullptr; + if (net->driver.cell == nullptr) + return nullptr; if (cell_pred(ctx, net->driver.cell) && net->driver.port == port) { return net->driver.cell; } else { |