|
21 | 21 | #include "dbChipConnItr.h" |
22 | 22 | #include "dbChipInst.h" |
23 | 23 | #include "dbChipInstItr.h" |
| 24 | +#include "dbChipNet.h" |
| 25 | +#include "dbChipNetItr.h" |
24 | 26 | // User Code End Includes |
25 | 27 | namespace odb { |
26 | 28 | template class dbTable<_dbChip>; |
@@ -84,6 +86,9 @@ bool _dbChip::operator==(const _dbChip& rhs) const |
84 | 86 | if (conns_ != rhs.conns_) { |
85 | 87 | return false; |
86 | 88 | } |
| 89 | + if (nets_ != rhs.nets_) { |
| 90 | + return false; |
| 91 | + } |
87 | 92 | if (*_prop_tbl != *rhs._prop_tbl) { |
88 | 93 | return false; |
89 | 94 | } |
@@ -205,6 +210,9 @@ dbIStream& operator>>(dbIStream& stream, _dbChip& obj) |
205 | 210 | if (obj.getDatabase()->isSchema(db_schema_chip_region)) { |
206 | 211 | stream >> obj.conns_; |
207 | 212 | } |
| 213 | + if (obj.getDatabase()->isSchema(db_schema_chip_region)) { |
| 214 | + stream >> obj.nets_; |
| 215 | + } |
208 | 216 | if (obj.getDatabase()->isSchema(db_schema_chip_region)) { |
209 | 217 | stream >> *obj.chip_region_tbl_; |
210 | 218 | } |
@@ -241,6 +249,7 @@ dbOStream& operator<<(dbOStream& stream, const _dbChip& obj) |
241 | 249 | stream << obj._top; |
242 | 250 | stream << obj.chipinsts_; |
243 | 251 | stream << obj.conns_; |
| 252 | + stream << obj.nets_; |
244 | 253 | stream << *obj.chip_region_tbl_; |
245 | 254 | // User Code Begin << |
246 | 255 | stream << *obj._block_tbl; |
@@ -530,6 +539,13 @@ dbSet<dbChipConn> dbChip::getChipConns() const |
530 | 539 | return dbSet<dbChipConn>(chip, db->chip_conn_itr_); |
531 | 540 | } |
532 | 541 |
|
| 542 | +dbSet<dbChipNet> dbChip::getChipNets() const |
| 543 | +{ |
| 544 | + _dbChip* chip = (_dbChip*) this; |
| 545 | + _dbDatabase* db = (_dbDatabase*) chip->getOwner(); |
| 546 | + return dbSet<dbChipNet>(chip, db->chip_net_itr_); |
| 547 | +} |
| 548 | + |
533 | 549 | dbChip* dbChip::create(dbDatabase* db_, const std::string& name, ChipType type) |
534 | 550 | { |
535 | 551 | _dbDatabase* db = (_dbDatabase*) db_; |
|
0 commit comments