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

#include <db.h>

Inheritance diagram for odb::dbLib:
Collaboration diagram for odb::dbLib:

Public Member Functions

std::string getName () const
const char * getConstName () const
int getDbUnitsPerMicron () const
dbTech * getTech () const
dbSet< dbMaster > getMasters () const
dbMaster * findMaster (const char *name) const
dbSet< dbSite > getSites () const
dbSite * findSite (const char *name) const
int getLefUnits () const
void setLefUnits (int units)
char getHierarchyDelimiter () const
void setBusDelimiters (char left, char right)
void getBusDelimiters (char &left, char &right) const

Static Public Member Functions

static dbLib * create (dbDatabase *db, const char *name, dbTech *tech, char hierarchy_delimiter='/')
static dbLib * getLib (dbDatabase *db, uint32_t oid)
static void destroy (dbLib *lib)

Detailed Description

A Library is the element that represents a collection of library-cells, called Masters.

Definition at line 5268 of file db.h.

Member Function Documentation

◆ create()

dbLib * odb::dbLib::create ( dbDatabase * db,
const char * name,
dbTech * tech,
char hierarchy_delimiter = '/' )
static

Create a new library.

◆ destroy()

void odb::dbLib::destroy ( dbLib * lib)
static

Destroy a library.

◆ findMaster()

dbMaster * odb::dbLib::findMaster ( const char * name) const

Finds a specific master-cell in the library Returns nullptr if the object was not found.

◆ findSite()

dbSite * odb::dbLib::findSite ( const char * name) const

Finds a specific site in the library Returns nullptr if the object was not found.

◆ getBusDelimiters()

void odb::dbLib::getBusDelimiters ( char & left,
char & right ) const

Get the Bus name delimiters Left and Right are set to "zero" if the bus delimiters were not set.

◆ getConstName()

const char * odb::dbLib::getConstName ( ) const

Get the library name.

◆ getDbUnitsPerMicron()

int odb::dbLib::getDbUnitsPerMicron ( ) const

Get the Database units per micron.

◆ getHierarchyDelimiter()

char odb::dbLib::getHierarchyDelimiter ( ) const

Get the HierarchyDelimiter. Returns (0) if the delimiter was not set. A hierarchy delimiter can only be set at the time a library is created.

◆ getLefUnits()

int odb::dbLib::getLefUnits ( ) const

Get the LEF units of this technology.

◆ getLib()

dbLib * odb::dbLib::getLib ( dbDatabase * db,
uint32_t oid )
static

Translate a database-id back to a pointer.

◆ getMasters()

dbSet< dbMaster > odb::dbLib::getMasters ( ) const

Get the master-cells of this library

◆ getName()

std::string odb::dbLib::getName ( ) const

Get the library name.

◆ getSites()

dbSet< dbSite > odb::dbLib::getSites ( ) const

Get the sites of this library

◆ getTech()

dbTech * odb::dbLib::getTech ( ) const

Get the technology of this library

◆ setBusDelimiters()

void odb::dbLib::setBusDelimiters ( char left,
char right )

Set the Bus name delimiters

◆ setLefUnits()

void odb::dbLib::setLefUnits ( int units)

Set the LEF units of this technology.


The documentation for this class was generated from the following file:
  • openroad/odb/include/odb/db.h