Holds all the Alliance environment variables. More...
Public Types | |
enum | AddMode { Append =1, Prepend =2, Replace =3 } |
Public Member Functions | |
Environment () | |
~Environment () | |
const std::string & | getCORIOLIS_TOP () const |
const std::string & | getDisplayStyle () const |
long | getSCALE_X () const |
const std::string & | getDISPLAY () const |
const std::string & | getIN_LO () const |
const std::string & | getIN_PH () const |
const std::string & | getOUT_LO () const |
const std::string & | getOUT_PH () const |
const std::string & | getPOWER () const |
const std::string & | getGROUND () const |
const std::string & | getCLOCK () const |
const std::string & | getBLOCKAGE () const |
const std::string & | getPad () const |
const std::string & | getCATALOG () const |
SearchPath & | getLIBRARIES () |
std::string | getLIBRARYPath (size_t i) |
bool | isPOWER (const char *name) const |
bool | isGROUND (const char *name) const |
bool | isCLOCK (const char *name) const |
bool | isBLOCKAGE (const char *name) const |
bool | isPad (const char *name) const |
void | validate () const |
void | setDisplayStyle (const char *) |
void | setSCALE_X (long value) |
void | setDISPLAY (const char *value) |
void | setIN_LO (const char *value) |
void | setIN_PH (const char *value) |
void | setOUT_LO (const char *value) |
void | setOUT_PH (const char *value) |
void | setPOWER (const char *value) |
void | setGROUND (const char *value) |
void | setCLOCK (const char *value) |
void | setBLOCKAGE (const char *value) |
void | setPad (const char *value) |
void | setCATALOG (const char *value) |
void | setWORKING_LIBRARY (const char *value) |
void | addSYSTEM_LIBRARY (const char *value, const char *libName, unsigned int mode=Append) |
std::string | getPrint () const |
Holds all the Alliance environment variables.
This object is not to be used alone, but only as an attribute of AllianceFramework.
Although we constantly refer of the contents of this object as environement variables, they may (and should) be initialized through the Coriolis Python environement loader or legacy XML parsers.
This enumeration defines the way libraries are added to the already existing table.
CRL::Environment::Environment | ( | ) |
Default constructor. All variables are initialized to their reasonable defaults.
CRL::Environment::~Environment | ( | ) |
Destructor.
|
inline |
Returns: The Coriolis top installation directory.
|
inline |
Returns: The current display style name.
|
inline |
Returns: The default scaling factor used if omitted in an AP file.
|
inline |
Returns: The path toward the file holding the display datas. Data to initialize the various Hurricane::DrawingStyle.
|
inline |
Returns: The input format for logical (netlist) files.
|
inline |
Returns: The input format for physical (layout) files.
|
inline |
Returns: The output format for logical (netlist) files.
|
inline |
Returns: The output format for physical (layout) files.
|
inline |
Returns: The pattern (regular expression) used to match for power nets names.
|
inline |
Returns: The pattern (regular expression) used to match for ground nets names.
|
inline |
Returns: The pattern (regular expression) used to match for clock nets names.
|
inline |
Returns: With the Hurricane database you cannot create physical components whithout a net. All segments used for signaling blockage area are grouped inside a unique net, which name is given by this variable.
|
inline |
Returns: The pattern (regular expression) used to match for pad cell names.
|
inline |
Returns: The name of the auxiliary file in library directories holding the meta-informations about the cells.
|
inline |
Returns: The ordered list of libraries, under the form of a serch path.
string CRL::Environment::getLIBRARYPath | ( | size_t | i | ) |
Returns: The path of library at index i
in the search path.
bool CRL::Environment::isPOWER | ( | const char * | name | ) | const |
Returns: true if name
is recognized as a power net name.
bool CRL::Environment::isGROUND | ( | const char * | name | ) | const |
Returns: true if name
is recognized as a ground net name.
bool CRL::Environment::isCLOCK | ( | const char * | name | ) | const |
Returns: true if name
is recognized as a clock net name.
bool CRL::Environment::isBLOCKAGE | ( | const char * | name | ) | const |
Returns: true if name
is recognized as a blockage net name.
bool CRL::Environment::isPad | ( | const char * | name | ) | const |
Returns: true if name
is recognized as a pad cell name.
void CRL::Environment::validate | ( | ) | const |
Check for the coherency of the various environement variables. Throw an exception if something incoherent is found.
|
inline |
Sets the current display style to name
.
|
inline |
Sets the default scaling factor used if omitted in an AP file.
|
inline |
Sets the path toward the file holding the display datas. Data to initialize the various Hurricane::DrawingStyle.
|
inline |
Sets the input format for logical (netlist) files.
|
inline |
Sets the input format for physical (layout) files.
|
inline |
Sets the output format for logical (netlist) files.
|
inline |
Sets the output format for physical (layout) files.
void CRL::Environment::setPOWER | ( | const char * | value | ) |
Sets the pattern (regular expression) used to match for power nets names.
void CRL::Environment::setGROUND | ( | const char * | value | ) |
Sets the pattern (regular expression) used to match for ground nets names.
void CRL::Environment::setCLOCK | ( | const char * | value | ) |
Sets the pattern (regular expression) used to match for clock nets names.
void CRL::Environment::setBLOCKAGE | ( | const char * | value | ) |
With the Hurricane database you cannot create physical components whithout a net. All segments used for signaling blockage area are grouped inside a unique net, which name is given by this variable.
void CRL::Environment::setPad | ( | const char * | value | ) |
Sets the pattern (regular expression) used to match for pad cell names.
|
inline |
Sets the name of the auxiliary file in library directories holding the meta-informations about the cells.
void CRL::Environment::setWORKING_LIBRARY | ( | const char * | value | ) |
Sets the directory in which create cells will be saved.
void CRL::Environment::addSYSTEM_LIBRARY | ( | const char * | value, |
const char * | libName, | ||
unsigned int | mode = Append |
||
) |
value | the path (directory) in which the library is located. |
libName | the name under which to register the library. |
mode | the insertion mode. Adds a Cell library to the search path. |
std::string CRL::Environment::getPrint | ( | ) | const |
Returns: A nicely formatted string to resume the current environements settings. Mainly for verbose outputs on ttys.
Generated by doxygen 1.8.14 on Sun Nov 21 2021 | Return to top of page |
Coriolis Core (CRL) | Copyright © 2008-2020 Sorbonne Universite, All rights reserved |