Fix stratus1
This commit is contained in:
parent
c6624909de
commit
e354b3ac4b
|
@ -1,18 +1,21 @@
|
||||||
{ version, meta }:
|
{ generic, ... }:
|
||||||
|
|
||||||
{ lib, stdenv, cmake, ninja, python2, qt4, coriolis-crlcore
|
let pkg =
|
||||||
, coriolis-bootstrap, coriolis-vlsisapd, coriolis-hurricane }:
|
{ lib, coriolis-crlcore, coriolis-vlsisapd, coriolis-hurricane
|
||||||
|
, python2Packages, coriolis-cumulus }:
|
||||||
|
{
|
||||||
|
name = "coriolis-stratus1";
|
||||||
|
src = ../stratus1;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
propagatedBuildInputs = [
|
||||||
pname = "coriolis-stratus1";
|
coriolis-vlsisapd coriolis-crlcore coriolis-hurricane coriolis-cumulus
|
||||||
|
];
|
||||||
|
postInstall = ''
|
||||||
|
ln -s -t $out/${python2Packages.python.sitePackages} \
|
||||||
|
$out/${python2Packages.python.sitePackages}/stratus/*
|
||||||
|
'';
|
||||||
|
pythonImportsCheck = [ "stratus" "patterns" "patread" "synopsys" "utils" "util" ];
|
||||||
|
|
||||||
src = ../stratus1;
|
meta.license = lib.licenses.gpl2;
|
||||||
|
};
|
||||||
buildInputs = [
|
in generic pkg
|
||||||
python2 coriolis-bootstrap coriolis-vlsisapd
|
|
||||||
coriolis-crlcore coriolis-hurricane qt4
|
|
||||||
];
|
|
||||||
nativeBuildInputs = [ cmake ninja ];
|
|
||||||
|
|
||||||
inherit version meta;
|
|
||||||
}
|
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
|
|
||||||
find_package(PythonLibs 2 REQUIRED)
|
find_package(PythonLibs 2 REQUIRED)
|
||||||
find_package(PythonSitePackages REQUIRED)
|
find_package(PythonSitePackages REQUIRED)
|
||||||
find_package(VLSISAPD REQUIRED)
|
find_package(VLSISAPD REQUIRED)
|
||||||
find_package(HURRICANE REQUIRED)
|
find_package(HURRICANE REQUIRED)
|
||||||
find_package(CORIOLIS REQUIRED)
|
find_package(CORIOLIS REQUIRED)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
add_subdirectory(etc)
|
add_subdirectory(etc)
|
||||||
|
|
|
@ -14,57 +14,45 @@
|
||||||
# +-----------------------------------------------------------------+
|
# +-----------------------------------------------------------------+
|
||||||
|
|
||||||
|
|
||||||
try:
|
import sys
|
||||||
import sys
|
import traceback
|
||||||
import traceback
|
import Cfg
|
||||||
import Cfg
|
import CRL
|
||||||
import CRL
|
|
||||||
|
|
||||||
# Triggers the default configuration files loading.
|
# Triggers the default configuration files loading.
|
||||||
CRL.AllianceFramework.get()
|
CRL.AllianceFramework.get()
|
||||||
|
|
||||||
Cfg.Configuration.pushDefaultPriority(Cfg.Parameter.Priority.ApplicationBuiltin)
|
Cfg.Configuration.pushDefaultPriority(Cfg.Parameter.Priority.ApplicationBuiltin)
|
||||||
Cfg.getParamString('stratus1.format' ).setString('vst')
|
Cfg.getParamString('stratus1.format' ).setString('vst')
|
||||||
Cfg.getParamString('stratus1.simulator').setString('asimut')
|
Cfg.getParamString('stratus1.simulator').setString('asimut')
|
||||||
Cfg.Configuration.popDefaultPriority()
|
Cfg.Configuration.popDefaultPriority()
|
||||||
|
|
||||||
print ' o Stratus Configuration:'
|
print ' o Stratus Configuration:'
|
||||||
print ' - Netlist format: <%s>.' % Cfg.getParamString('stratus1.format').asString()
|
print ' - Netlist format: <%s>.' % Cfg.getParamString('stratus1.format').asString()
|
||||||
print ' - Simulator: <%s>.' % Cfg.getParamString('stratus1.simulator').asString()
|
print ' - Simulator: <%s>.' % Cfg.getParamString('stratus1.simulator').asString()
|
||||||
|
|
||||||
from Hurricane import UpdateSession
|
|
||||||
from st_model import *
|
|
||||||
from st_net import *
|
|
||||||
from st_instance import *
|
|
||||||
from st_placement import *
|
|
||||||
#from st_placeAndRoute import *
|
|
||||||
from st_ref import *
|
|
||||||
from st_generate import *
|
|
||||||
from st_const import *
|
|
||||||
from st_cat import *
|
|
||||||
from st_param import *
|
|
||||||
from st_getrealmodel import GetWeightTime, GetWeightArea, GetWeightPower
|
|
||||||
|
|
||||||
from util_Const import *
|
|
||||||
from util_Defs import *
|
|
||||||
from util_Misc import *
|
|
||||||
from util_Gen import *
|
|
||||||
from util_Shift import *
|
|
||||||
from util_uRom import *
|
|
||||||
from util import *
|
|
||||||
|
|
||||||
from patterns import *
|
|
||||||
except ImportError, e:
|
|
||||||
module = str(e).split()[-1]
|
|
||||||
|
|
||||||
print '[ERROR] The <%s> python module or symbol cannot be loaded.' % module
|
from Hurricane import UpdateSession
|
||||||
print ' Please check the integrity of the <coriolis> package.'
|
from st_model import *
|
||||||
sys.exit(1)
|
from st_net import *
|
||||||
except Exception, e:
|
from st_instance import *
|
||||||
print '[ERROR] A strange exception occurred while loading the basic Coriolis/Python'
|
from st_placement import *
|
||||||
print ' modules. Something may be wrong at Python/C API level.\n'
|
#from st_placeAndRoute import *
|
||||||
print ' %s' % e
|
from st_ref import *
|
||||||
sys.exit(2)
|
from st_generate import *
|
||||||
|
from st_const import *
|
||||||
|
from st_cat import *
|
||||||
|
from st_param import *
|
||||||
|
from st_getrealmodel import GetWeightTime, GetWeightArea, GetWeightPower
|
||||||
|
|
||||||
|
from util_Const import *
|
||||||
|
from util_Defs import *
|
||||||
|
from util_Misc import *
|
||||||
|
from util_Gen import *
|
||||||
|
from util_Shift import *
|
||||||
|
from util_uRom import *
|
||||||
|
from util import *
|
||||||
|
|
||||||
|
from patterns import *
|
||||||
|
|
||||||
|
|
||||||
DoNetlist = 0x00000001
|
DoNetlist = 0x00000001
|
||||||
|
|
Loading…
Reference in New Issue