* ./crlcore:

- Bug: In AllianceFramework, do not try to build SxLib gauge if the layers are
        not presents. Prevent cgt to miserably fails if the environment is not
        found.
    - Change: In src/ccore/CMakeLists.txt, try to guess the CORIOLIS_TOP from the
        compilation environment and pass back to sources.
    - Change: Rename hcmos9 into cmos130 in configuration files.
This commit is contained in:
Jean-Paul Chaput 2010-05-27 16:12:04 +00:00
parent fd07e33e1f
commit 2e6242df73
4 changed files with 89 additions and 55 deletions

View File

@ -6,7 +6,7 @@
<config>${CORIOLIS_TOP}/etc/coriolis2/technology.symbolic.xml</config> <config>${CORIOLIS_TOP}/etc/coriolis2/technology.symbolic.xml</config>
</hurricane> </hurricane>
<real> <real>
<config>${CORIOLIS_TOP}/etc/coriolis2/technology.hcmos9.s2r.xml</config> <config>${CORIOLIS_TOP}/etc/coriolis2/technology.cmos130.s2r.xml</config>
</real> </real>
<lef> <lef>
<config>${CORIOLIS_TOP}/etc/coriolis2/cmos.lef</config> <config>${CORIOLIS_TOP}/etc/coriolis2/cmos.lef</config>

View File

@ -109,7 +109,14 @@ namespace CRL {
Technology* technology = db->getTechnology(); Technology* technology = db->getTechnology();
RoutingGauge* sxlibRg = RoutingGauge::create ( "sxlib" ); RoutingGauge* sxlibRg = RoutingGauge::create ( "sxlib" );
sxlibRg->addLayerGauge ( RoutingLayerGauge::create( technology->getLayer("METAL1") const Layer* routingLayer = NULL;
switch ( 1 ) {
default:
routingLayer = technology->getLayer("METAL1");
if ( routingLayer == NULL ) break;
sxlibRg->addLayerGauge ( RoutingLayerGauge::create( routingLayer
, Constant::Vertical , Constant::Vertical
, Constant::PinOnly , Constant::PinOnly
, 0 // Depth (?). , 0 // Depth (?).
@ -119,7 +126,11 @@ namespace CRL {
, DbU::lambda(2) // Wire width. , DbU::lambda(2) // Wire width.
, DbU::lambda(3) // Via width. , DbU::lambda(3) // Via width.
) ); ) );
sxlibRg->addLayerGauge ( RoutingLayerGauge::create( technology->getLayer("METAL2")
routingLayer = technology->getLayer("METAL2");
if ( routingLayer == NULL ) break;
sxlibRg->addLayerGauge ( RoutingLayerGauge::create( routingLayer
, Constant::Horizontal , Constant::Horizontal
, Constant::Default , Constant::Default
, 1 // Depth (?). , 1 // Depth (?).
@ -129,7 +140,11 @@ namespace CRL {
, DbU::lambda(2) // Wire width. , DbU::lambda(2) // Wire width.
, DbU::lambda(3) // Via width. , DbU::lambda(3) // Via width.
) ); ) );
sxlibRg->addLayerGauge ( RoutingLayerGauge::create( technology->getLayer("METAL3")
routingLayer = technology->getLayer("METAL3");
if ( routingLayer == NULL ) break;
sxlibRg->addLayerGauge ( RoutingLayerGauge::create( routingLayer
, Constant::Vertical , Constant::Vertical
, Constant::Default , Constant::Default
, 2 // Depth (?). , 2 // Depth (?).
@ -139,7 +154,11 @@ namespace CRL {
, DbU::lambda(2) // Wire width. , DbU::lambda(2) // Wire width.
, DbU::lambda(3) // Via width. , DbU::lambda(3) // Via width.
) ); ) );
sxlibRg->addLayerGauge ( RoutingLayerGauge::create( technology->getLayer("METAL4")
routingLayer = technology->getLayer("METAL4");
if ( routingLayer == NULL ) break;
sxlibRg->addLayerGauge ( RoutingLayerGauge::create( routingLayer
, Constant::Horizontal , Constant::Horizontal
, Constant::Default , Constant::Default
, 3 // Depth (?). , 3 // Depth (?).
@ -149,7 +168,11 @@ namespace CRL {
, DbU::lambda(2) // Wire width. , DbU::lambda(2) // Wire width.
, DbU::lambda(3) // Via width. , DbU::lambda(3) // Via width.
) ); ) );
sxlibRg->addLayerGauge ( RoutingLayerGauge::create( technology->getLayer("METAL5")
routingLayer = technology->getLayer("METAL5");
if ( routingLayer == NULL ) break;
sxlibRg->addLayerGauge ( RoutingLayerGauge::create( routingLayer
, Constant::Vertical , Constant::Vertical
, Constant::Default , Constant::Default
, 4 // Depth (?). , 4 // Depth (?).
@ -159,6 +182,7 @@ namespace CRL {
, DbU::lambda(2) // Wire width. , DbU::lambda(2) // Wire width.
, DbU::lambda(3) // Via width. , DbU::lambda(3) // Via width.
) ); ) );
}
addRoutingGauge ( sxlibRg ); addRoutingGauge ( sxlibRg );
CellGauge* sxlibCg = CellGauge::create ( "sxlib" CellGauge* sxlibCg = CellGauge::create ( "sxlib"

View File

@ -1,4 +1,14 @@
# Try to find a reasonable CORIOLIS_TOP value.
if( NOT("$ENV{CORIOLIS_USER_TOP}" STREQUAL "") )
set ( CORIOLIS_USER_TOP "$ENV{CORIOLIS_USER_TOP}" )
else( NOT("$ENV{CORIOLIS_USER_TOP}" STREQUAL "") )
if( NOT("$ENV{CORIOLIS_TOP}" STREQUAL "") )
set ( CORIOLIS_TOP "$ENV{CORIOLIS_TOP}" )
endif( NOT("$ENV{CORIOLIS_TOP}" STREQUAL "") )
endif( NOT("$ENV{CORIOLIS_USER_TOP}" STREQUAL "") )
include ( ${QT_USE_FILE} ) include ( ${QT_USE_FILE} )
include_directories ( ${CIF_INCLUDE_DIR} include_directories ( ${CIF_INCLUDE_DIR}
@ -18,7 +28,7 @@
${CRLCORE_SOURCE_DIR}/src/ccore/toolbox ${CRLCORE_SOURCE_DIR}/src/ccore/toolbox
) )
add_definitions ( -DCORIOLIS_TOP="${PROJECT_BINARY_DIR}" add_definitions ( -DCORIOLIS_TOP="${CORIOLIS_TOP}"
-DSYS_CONF_DIR="${SYS_CONF_DIR}" -DSYS_CONF_DIR="${SYS_CONF_DIR}"
) )

View File

@ -32,7 +32,7 @@ namespace CRL {
bool XmlParser::_load ( const string& path, bool warnNotFound ) bool XmlParser::_load ( const string& path, bool warnNotFound )
{ {
QFile file ( path.c_str() ); QFile file ( path.c_str() );
if ( !file.open(QFile::ReadOnly|QFile::Text) ) { if ( path.empty() or (not file.open(QFile::ReadOnly|QFile::Text)) ) {
if ( warnNotFound ) { if ( warnNotFound ) {
cerr << "[ERROR] Cannot open " << _getMessage(OpenFile) << " file:" << endl; cerr << "[ERROR] Cannot open " << _getMessage(OpenFile) << " file:" << endl;
cerr << " \"" << path << "\"." << endl; cerr << " \"" << path << "\"." << endl;