diff options
author | David Shah <davey1576@gmail.com> | 2019-02-19 15:24:28 +0000 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2019-02-24 10:28:25 +0100 |
commit | e50ab2106f9342b585377cf20f0b0c09125e3dbc (patch) | |
tree | ccf50f23f241193e74fd8fb29348dc35ae75e2de /common | |
parent | 3b50b57f054dffba29031605a825e244c4b5327c (diff) | |
download | nextpnr-e50ab2106f9342b585377cf20f0b0c09125e3dbc.tar.gz nextpnr-e50ab2106f9342b585377cf20f0b0c09125e3dbc.tar.bz2 nextpnr-e50ab2106f9342b585377cf20f0b0c09125e3dbc.zip |
ecp5: Fixes for litedram
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/design_utils.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/design_utils.cc b/common/design_utils.cc index 8762f068..da170030 100644 --- a/common/design_utils.cc +++ b/common/design_utils.cc @@ -27,6 +27,8 @@ NEXTPNR_NAMESPACE_BEGIN void replace_port(CellInfo *old_cell, IdString old_name, CellInfo *rep_cell, IdString rep_name) { + if (!old_cell->ports.count(old_name)) + return; PortInfo &old = old_cell->ports.at(old_name); PortInfo &rep = rep_cell->ports.at(rep_name); NPNR_ASSERT(old.type == rep.type); |