OpenROAD's Doxygen Pages
Compilation of detailed documentation for OpenROAD modules
Loading...
Searching...
No Matches
odb::dbDatabase Class Reference

#include <db.h>

Inheritance diagram for odb::dbDatabase:
Collaboration diagram for odb::dbDatabase:

Public Member Functions

void setDbuPerMicron (uint32_t dbu_per_micron)
uint32_t getDbuPerMicron () const
dbSet< dbAlignmentMarkerRule > getAlignmentMarkerRules () const
dbSet< dbChip > getChips () const
dbChip * findChip (const char *name) const
dbSet< dbProperty > getProperties () const
dbSet< dbChipInst > getChipInsts () const
dbSet< dbChipRegionInst > getChipRegionInsts () const
dbSet< dbChipConn > getChipConns () const
dbSet< dbChipBumpInst > getChipBumpInsts () const
dbSet< dbChipNet > getChipNets () const
dbSet< dbUnfoldedChipInst > getUnfoldedChipInsts () const
dbSet< dbUnfoldedChipRegionInst > getUnfoldedChipRegionInsts () const
dbSet< dbUnfoldedChipBumpInst > getUnfoldedChipBumpInsts () const
dbSet< dbUnfoldedChipConn > getUnfoldedChipConns () const
dbSet< dbUnfoldedChipNet > getUnfoldedChipNets () const
void setHierarchy (bool value)
bool hasHierarchy () const
void setTopChip (dbChip *chip)
dbSet< dbLib > getLibs () const
dbLib * findLib (const char *name) const
dbSet< dbTech > getTechs () const
dbTech * findTech (const char *name) const
dbMaster * findMaster (const char *name) const
int removeUnusedMasters ()
dbChip * getChip () const
void constructUnfoldedModel ()
dbTech * getTech () const
 DEPRECATED.
uint32_t getNumberOfMasters () const
void read (std::istream &f)
void write (std::ostream &file)
void setLogger (utl::Logger *logger)
void clear ()
void report () const
void addObserver (dbDatabaseObserver *observer)
void removeObserver (dbDatabaseObserver *observer)
void triggerPostReadLef (dbTech *tech, dbLib *library)
void triggerPostReadDef (dbBlock *block, bool floorplan)
void triggerPostReadDb ()
void triggerPostRead3Dbx (dbChip *chip)
dbUnfoldedChipInst * findUnfoldedChip (const std::string &path) const

Static Public Member Functions

static void beginEco (dbBlock *block)
static void endEco (dbBlock *block)
static void commitEco (dbBlock *block)
static void undoEco (dbBlock *block)
static bool ecoEmpty (dbBlock *block)
static bool ecoStackEmpty (dbBlock *block)
static void readEco (dbBlock *block, const char *filename)
static void writeEco (dbBlock *block, const char *filename)
static dbDatabase * create ()
static void destroy (dbDatabase *db)
static dbDatabase * getDatabase (uint32_t oid)

Detailed Description

Definition at line 7683 of file db.h.

Member Function Documentation

◆ 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()

dbDatabase * odb::dbDatabase::create ( )
static

Create an instance of a database

◆ destroy()

void odb::dbDatabase::destroy ( dbDatabase * db)
static

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()

dbUnfoldedChipInst * odb::dbDatabase::findUnfoldedChip ( const std::string & path) const

Find an unfolded chip by its full path name (slash-joined chip-inst names). Returns nullptr if no match.

◆ getAlignmentMarkerRules()

dbSet< dbAlignmentMarkerRule > odb::dbDatabase::getAlignmentMarkerRules ( ) const

◆ getChip()

dbChip * odb::dbDatabase::getChip ( ) const

Get the chip of this database. Returns nullptr if no chip has been created.

◆ getChipBumpInsts()

dbSet< dbChipBumpInst > odb::dbDatabase::getChipBumpInsts ( ) const

◆ getChipConns()

dbSet< dbChipConn > odb::dbDatabase::getChipConns ( ) const

◆ getChipInsts()

dbSet< dbChipInst > odb::dbDatabase::getChipInsts ( ) const

◆ getChipNets()

dbSet< dbChipNet > odb::dbDatabase::getChipNets ( ) const

◆ getChipRegionInsts()

dbSet< dbChipRegionInst > odb::dbDatabase::getChipRegionInsts ( ) const

◆ 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()

dbSet< dbUnfoldedChipBumpInst > odb::dbDatabase::getUnfoldedChipBumpInsts ( ) const

◆ getUnfoldedChipConns()

dbSet< dbUnfoldedChipConn > odb::dbDatabase::getUnfoldedChipConns ( ) const

◆ getUnfoldedChipInsts()

dbSet< dbUnfoldedChipInst > odb::dbDatabase::getUnfoldedChipInsts ( ) const

◆ getUnfoldedChipNets()

dbSet< dbUnfoldedChipNet > odb::dbDatabase::getUnfoldedChipNets ( ) const

◆ getUnfoldedChipRegionInsts()

dbSet< dbUnfoldedChipRegionInst > odb::dbDatabase::getUnfoldedChipRegionInsts ( ) const

◆ 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)

links to utl::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