Ophidian
 All Classes Namespaces Functions
Public Member Functions | List of all members
ophidian::placement::library Class Reference

Placement library class. More...

#include <library.h>

Public Member Functions

 library (ophidian::standard_cell::standard_cells *std_cells)
 Constructor. More...
 
multipolygon geometry (entity_system::entity cell) const
 Cell geometry getter. More...
 
void geometry (entity_system::entity cell, multipolygon geometry)
 Cell geometry setter. More...
 
entity_system::entity cell_create (std::string name)
 
int32_t dist2microns () const
 Distance unit to microns ratio getter. More...
 
void pin_offset (entity_system::entity pin, point offset)
 Pin offset setter. More...
 
point pin_offset (entity_system::entity pin) const
 Pin offset getter. More...
 
entity_system::entity pin_create (entity_system::entity cell, std::string name)
 
void dist2microns (int32_t dist)
 Distance unit to microns ratio setter. More...
 

Detailed Description

This class provides the interface to placement library properties, such as cell geometries and pin offsets.

Constructor & Destructor Documentation

ophidian::placement::library::library ( ophidian::standard_cell::standard_cells std_cells)

Placement library constructor. Register the cell geometries and pin offsets properties.

Parameters
std_cellsStandard cell library.

Member Function Documentation

int32_t ophidian::placement::library::dist2microns ( ) const
inline

Returns the number of microns in a distance unit of the library.

Returns
Number of microns in a distance unit.
void ophidian::placement::library::dist2microns ( int32_t  dist)

Sets the number of microns in a distance unit of the library.

Parameters
distNumber of microns in a distance unit.
multipolygon ophidian::placement::library::geometry ( entity_system::entity  cell) const
inline

Returns the geometry of a cell as a multi polygon. Each polygon in the multi polygon represents a rectangle of the cell.

Parameters
cellCell to get the geometry.
Returns
Multi polygon representing the cell geometry.
void ophidian::placement::library::geometry ( entity_system::entity  cell,
multipolygon  geometry 
)

Sets the geometry of a cell.

Parameters
cellCell to set the geometry.
geometryMulti polygon representing the cell geometry.
void ophidian::placement::library::pin_offset ( entity_system::entity  pin,
point  offset 
)

Sets the offset of a pin with relation to its owner cell.

Parameters
pinPin to set the offset.
offsetPoint describing the pin offset.
point ophidian::placement::library::pin_offset ( entity_system::entity  pin) const
inline

Returns the offset of a pin with relation to its owner cell.

Parameters
pinPin to get the offset.
Returns
Point describing the pin offset.

The documentation for this class was generated from the following files: