Standard cell class.
More...
#include <standard_cells.h>
This class provides the basic standard cell interface, such as creation of cell and pin types.
ophidian::standard_cell::standard_cells::standard_cells |
( |
| ) |
|
Default constructor of the standard cell class. Initializes an empty system for cells and pins.
std::size_t ophidian::standard_cell::standard_cells::cell_count |
( |
| ) |
const |
|
inline |
Returns the number of cells created in the cells system.
- Returns
- Number of cells.
entity_system::entity ophidian::standard_cell::standard_cells::cell_create |
( |
std::string |
name | ) |
|
Creates a new cell in the standard cell library.
- Parameters
-
name | Name of the new cell. |
- Returns
- Entity of the created cell.
std::string ophidian::standard_cell::standard_cells::cell_name |
( |
entity_system::entity |
cell | ) |
const |
|
inline |
Returns the name of a cell.
- Parameters
-
cell | Cell entity to get the name. |
- Returns
- Name of the cell.
Returns the names of all cells.
- Returns
- Constant reference to the cell names property.
const std::vector<entity_system::entity>& ophidian::standard_cell::standard_cells::cell_pins |
( |
entity_system::entity |
cell | ) |
const |
|
inline |
Returns the pins of a cell.
- Parameters
-
cell | Cell entity to get the pins. |
- Returns
- Constant reference to a vector with all pins of that cell.
void ophidian::standard_cell::standard_cells::cell_sequential |
( |
entity_system::entity |
cell, |
|
|
bool |
sequential |
|
) |
| |
Sets if a cell is a sequential cell.
- Parameters
-
cell | Cell entity to be set. |
sequential | bool variable describing if the cell is sequential or not. |
bool ophidian::standard_cell::standard_cells::cell_sequential |
( |
entity_system::entity |
cell | ) |
const |
|
inline |
Gets if a cell is a sequential cell.
- Parameters
-
cell | Cell entity to get the attribute. |
- Returns
- bool variable describing if the cell is sequential or not.
Returns the cell system.
- Returns
- Constant reference to the cell system.
entity_system::entity ophidian::standard_cell::standard_cells::pad_create |
( |
std::string |
name | ) |
|
Creates a new pad in the standard cell library. A pad is a special pin without owner.
- Parameters
-
- Returns
- Entity of the created pad.
bool ophidian::standard_cell::standard_cells::pin_clock_input |
( |
entity_system::entity |
pin | ) |
const |
|
inline |
Gets if a pin is a clock input.
- Parameters
-
pin | Pin entity to get the attribute. |
- Returns
- bool variable describing if the pin is a clock input or not.
void ophidian::standard_cell::standard_cells::pin_clock_input |
( |
entity_system::entity |
pin, |
|
|
bool |
clock_input |
|
) |
| |
Sets if a pin is a clock input.
- Parameters
-
pin | Pin entity to be set. |
clock_input | bool variable describing if the pin is a clock input or not. |
std::size_t ophidian::standard_cell::standard_cells::pin_count |
( |
| ) |
const |
|
inline |
Returns the number of pins created in the pins system.
- Returns
- Number of pins.
entity_system::entity ophidian::standard_cell::standard_cells::pin_create |
( |
entity_system::entity |
cell, |
|
|
std::string |
name |
|
) |
| |
Creates a new pin in the standard cell library.
- Parameters
-
cell | Cell entity owner of the new pin. |
name | Name of the new pin. |
- Returns
- Entity of the created pin.
pin_directions ophidian::standard_cell::standard_cells::pin_direction |
( |
entity_system::entity |
pin | ) |
const |
|
inline |
Returns the direction of a pin. Possible direction values are NOT_ASSIGNED, INPUT and OUTPUT.
- Parameters
-
pin | Pin entity to get the name. |
- Returns
- Direction of the pin.
void ophidian::standard_cell::standard_cells::pin_direction |
( |
entity_system::entity |
pin, |
|
|
pin_directions |
direction |
|
) |
| |
Sets the direction of a pin. Possible direction values are NOT_ASSIGNED, INPUT and OUTPUT.
- Parameters
-
pin | Pin entity to sets the direction. |
Direction | of the pin. |
std::string ophidian::standard_cell::standard_cells::pin_name |
( |
entity_system::entity |
pin | ) |
const |
|
inline |
Returns the name of a pin.
- Parameters
-
pin | Pin entity to get the name. |
- Returns
- Name of the pin.
entity_system::entity ophidian::standard_cell::standard_cells::pin_owner |
( |
entity_system::entity |
pin | ) |
const |
|
inline |
Returns the owner of a pin.
- Parameters
-
pin | Pin entity to get the owner. |
- Returns
- Owner of the pin.
Returns the pin system.
- Returns
- Constant reference to the pin system.
Registers a property to the cells entity system.
- Parameters
-
property | Property to be registered. |
Registers a property to the pins entity system.
- Parameters
-
property | Property to be registered. |
The documentation for this class was generated from the following files:
- /home/csguth/workspace/openeda/src/standard_cell/standard_cells.h
- /home/csguth/workspace/openeda/src/standard_cell/standard_cells.cpp