Enforce non-existence
authorEddie Hung <eddie@fpgeh.com>
Tue, 17 Dec 2019 01:06:30 +0000 (17:06 -0800)
committerEddie Hung <eddie@fpgeh.com>
Tue, 17 Dec 2019 01:06:30 +0000 (17:06 -0800)
passes/memory/memory_bram.cc

index 7f551134a7fccfea47d4708e50b993c64b67261d..e0970d19214f19234eea3f16782162b554149686 100644 (file)
@@ -841,6 +841,8 @@ grow_read_ports:;
                                        found = true;
                                        break;
                                }
+                               else if (!exists)
+                                       continue;
                                if (it->second != value)
                                        continue;
                                found = true;
@@ -1165,6 +1167,8 @@ void handle_cell(Cell *cell, const rules_t &rules)
                                                found = true;
                                                break;
                                        }
+                                       else if (!exists)
+                                               continue;
                                        if (it->second != value)
                                                continue;
                                        found = true;