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... | |
This class provides the interface to placement library properties, such as cell geometries and pin offsets.
ophidian::placement::library::library | ( | ophidian::standard_cell::standard_cells * | std_cells | ) |
Placement library constructor. Register the cell geometries and pin offsets properties.
std_cells | Standard cell library. |
|
inline |
Returns the number of microns in a distance unit of the library.
void ophidian::placement::library::dist2microns | ( | int32_t | dist | ) |
Sets the number of microns in a distance unit of the library.
dist | Number of microns in a distance unit. |
|
inline |
Returns the geometry of a cell as a multi polygon. Each polygon in the multi polygon represents a rectangle of the cell.
cell | Cell to get the geometry. |
void ophidian::placement::library::geometry | ( | entity_system::entity | cell, |
multipolygon | geometry | ||
) |
Sets the geometry of a cell.
cell | Cell to set the geometry. |
geometry | Multi 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.
pin | Pin to set the offset. |
offset | Point describing the pin offset. |
|
inline |
Returns the offset of a pin with relation to its owner cell.
pin | Pin to get the offset. |