#include <db.h>
Definition at line 7683 of file db.h.
◆ addObserver()
| void odb::dbDatabase::addObserver |
( |
dbDatabaseObserver * | observer | ) |
|
Used to be notified when lef/def/odb are read.
◆ beginEco()
| void odb::dbDatabase::beginEco |
( |
dbBlock * | block | ) |
|
|
static |
ECO - The following methods implement a simple ECO mechanism for capturing netlist changes. The intent of the ECO mechanism is to support delta changes that occur in a "remote" node that must be applied back to the "master" node. Being as such, the database on the "remote" must be an exact copy of the "master" database, prior to changes. Furthermore, the "master" database cannot change prior to commiting the eco to the block.
WARNING: If these invariants does not hold then the results will be unpredictable. Start collecting ECO changes on the specified block.
◆ clear()
| void odb::dbDatabase::clear |
( |
| ) |
|
Initializes the database to nothing.
◆ commitEco()
| void odb::dbDatabase::commitEco |
( |
dbBlock * | block | ) |
|
|
static |
Commit the last ECO changes on the specified block.
◆ constructUnfoldedModel()
| void odb::dbDatabase::constructUnfoldedModel |
( |
| ) |
|
◆ create()
Create an instance of a database
◆ destroy()
Detroy an instance of a database
◆ ecoEmpty()
| bool odb::dbDatabase::ecoEmpty |
( |
dbBlock * | block | ) |
|
|
static |
Returns true if the current ECO is empty
◆ ecoStackEmpty()
| bool odb::dbDatabase::ecoStackEmpty |
( |
dbBlock * | block | ) |
|
|
static |
Return true if the ECO stack is empty. The ECO stack holds the nested uncommitted ECOs that can still be undone.
◆ endEco()
| void odb::dbDatabase::endEco |
( |
dbBlock * | block | ) |
|
|
static |
Stop collecting ECO changes on the specified block.
◆ findChip()
| dbChip * odb::dbDatabase::findChip |
( |
const char * | name | ) |
const |
◆ findLib()
| dbLib * odb::dbDatabase::findLib |
( |
const char * | name | ) |
const |
Find a specific lib. Returns nullptr if no lib was found.
◆ findMaster()
| dbMaster * odb::dbDatabase::findMaster |
( |
const char * | name | ) |
const |
Find a specific master Returns nullptr if no master is found.
◆ findTech()
| dbTech * odb::dbDatabase::findTech |
( |
const char * | name | ) |
const |
Find a specific tech. Returns nullptr if no tech was found.
◆ findUnfoldedChip()
Find an unfolded chip by its full path name (slash-joined chip-inst names). Returns nullptr if no match.
◆ getAlignmentMarkerRules()
◆ getChip()
| dbChip * odb::dbDatabase::getChip |
( |
| ) |
const |
Get the chip of this database. Returns nullptr if no chip has been created.
◆ getChipBumpInsts()
◆ getChipConns()
| dbSet< dbChipConn > odb::dbDatabase::getChipConns |
( |
| ) |
const |
◆ getChipInsts()
| dbSet< dbChipInst > odb::dbDatabase::getChipInsts |
( |
| ) |
const |
◆ getChipNets()
| dbSet< dbChipNet > odb::dbDatabase::getChipNets |
( |
| ) |
const |
◆ getChipRegionInsts()
◆ getChips()
| dbSet< dbChip > odb::dbDatabase::getChips |
( |
| ) |
const |
◆ getDatabase()
| dbDatabase * odb::dbDatabase::getDatabase |
( |
uint32_t | oid | ) |
|
|
static |
Translate a database-id back to a pointer.
◆ getDbuPerMicron()
| uint32_t odb::dbDatabase::getDbuPerMicron |
( |
| ) |
const |
◆ getLibs()
| dbSet< dbLib > odb::dbDatabase::getLibs |
( |
| ) |
const |
Return the libs contained in the database. A database can contain multiple libs.
◆ getNumberOfMasters()
| uint32_t odb::dbDatabase::getNumberOfMasters |
( |
| ) |
const |
Returns the number of masters
◆ getProperties()
| dbSet< dbProperty > odb::dbDatabase::getProperties |
( |
| ) |
const |
◆ getTech()
| dbTech * odb::dbDatabase::getTech |
( |
| ) |
const |
DEPRECATED.
This is replaced by dbBlock::getTech() or dbLib::getTech(). This is temporarily kept for legacy migration. Get the technology of this database if there is exactly one dbTech. Returns nullptr if no tech has been created.
◆ getTechs()
| dbSet< dbTech > odb::dbDatabase::getTechs |
( |
| ) |
const |
Return the techs contained in the database. A database can contain multiple techs.
◆ getUnfoldedChipBumpInsts()
◆ getUnfoldedChipConns()
◆ getUnfoldedChipInsts()
◆ getUnfoldedChipNets()
◆ getUnfoldedChipRegionInsts()
◆ hasHierarchy()
| bool odb::dbDatabase::hasHierarchy |
( |
| ) |
const |
◆ read()
| void odb::dbDatabase::read |
( |
std::istream & | f | ) |
|
Read a database from this stream. WARNING: This function destroys the data currently in the database. Throws ZIOError..
◆ readEco()
| void odb::dbDatabase::readEco |
( |
dbBlock * | block, |
|
|
const char * | filename ) |
|
static |
Read the ECO changes from the specified file to be applied to the specified block.
◆ removeObserver()
| void odb::dbDatabase::removeObserver |
( |
dbDatabaseObserver * | observer | ) |
|
◆ removeUnusedMasters()
| int odb::dbDatabase::removeUnusedMasters |
( |
| ) |
|
This function is used to delete unused master-cells. Returns the number of unused master-cells that have been deleted.
◆ report()
| void odb::dbDatabase::report |
( |
| ) |
const |
Generates a report of memory usage. Not perfectly byte accurate. Intended for developers.
◆ setDbuPerMicron()
| void odb::dbDatabase::setDbuPerMicron |
( |
uint32_t | dbu_per_micron | ) |
|
◆ setHierarchy()
| void odb::dbDatabase::setHierarchy |
( |
bool | value | ) |
|
◆ setLogger()
| void odb::dbDatabase::setLogger |
( |
utl::Logger * | logger | ) |
|
◆ setTopChip()
| void odb::dbDatabase::setTopChip |
( |
dbChip * | chip | ) |
|
◆ triggerPostRead3Dbx()
| void odb::dbDatabase::triggerPostRead3Dbx |
( |
dbChip * | chip | ) |
|
◆ triggerPostReadDb()
| void odb::dbDatabase::triggerPostReadDb |
( |
| ) |
|
◆ triggerPostReadDef()
| void odb::dbDatabase::triggerPostReadDef |
( |
dbBlock * | block, |
|
|
bool | floorplan ) |
◆ triggerPostReadLef()
| void odb::dbDatabase::triggerPostReadLef |
( |
dbTech * | tech, |
|
|
dbLib * | library ) |
Notify observers when one of these operations is complete. Fine-grained callbacks during construction are not as helpful as knowing when the data is fully loaded into odb.
◆ undoEco()
| void odb::dbDatabase::undoEco |
( |
dbBlock * | block | ) |
|
|
static |
Undo the last ECO changes on the specified block.
◆ write()
| void odb::dbDatabase::write |
( |
std::ostream & | file | ) |
|
Write a database to this stream. Throws ZIOError..
◆ writeEco()
| void odb::dbDatabase::writeEco |
( |
dbBlock * | block, |
|
|
const char * | filename ) |
|
static |
Write the ECO changes to the specified file.
The documentation for this class was generated from the following file:
- openroad/odb/include/odb/db.h