From: Luke Kenneth Casson Leighton Date: Fri, 21 Feb 2020 19:53:59 +0000 (+0000) Subject: add path helpers sys libraries X-Git-Tag: partial-core-ls180-gdsii~224 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=257dce9e206ce6b10ad1450507385f2a5541186e;p=soclayout.git add path helpers sys libraries --- 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' +