add path helpers sys libraries
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Feb 2020 19:53:59 +0000 (19:53 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Feb 2020 19:53:59 +0000 (19:53 +0000)
coriolis2/settings.py

index a176ddf069bb331ac47a5b173d985df25730cd98..2e968f81b09469a6be2a45d9a878ba5009496c5a 100644 (file)
@@ -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'
+