From 257dce9e206ce6b10ad1450507385f2a5541186e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 21 Feb 2020 19:53:59 +0000 Subject: [PATCH] add path helpers sys libraries --- coriolis2/settings.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/coriolis2/settings.py b/coriolis2/settings.py index a176ddf..2e968f8 100644 --- a/coriolis2/settings.py +++ b/coriolis2/settings.py @@ -1,8 +1,10 @@ # -*- Mode:Python -*- +import os import Cfg import CRL import Viewer +#import node180.scn6m_deep_09 import symbolic.cmos from helpers import l, u, n @@ -35,11 +37,20 @@ Cfg.getParamInt ( 'katana.vTracksReservedLocal' ).setInt ( 6 ) Cfg.Configuration.popDefaultPriority() +#cellsTop = os.path.abspath( os.getcwd()+'/../cells' ) +if os.environ.has_key('CELLS_TOP'): + cellsTop = os.environ['CELLS_TOP'] +else: + cellsTop = '../../../cells' + af = CRL.AllianceFramework.get() env = af.getEnvironment() +env.addSYSTEM_LIBRARY( library=cellsTop+'/nsxlib', mode=CRL.Environment.Prepend ) +env.addSYSTEM_LIBRARY( library=cellsTop+'/mpxlib', mode=CRL.Environment.Prepend ) env.setCLOCK( '^clk$|m_clock' ) env.setPOWER( 'vdd' ) env.setGROUND( 'vss' ) print 'Successfully read user configuration' + -- 2.30.2