from __future__ import print_function
import os
-import Cfg
-import CRL
import Viewer
#import node180.scn6m_deep_09
-import symbolic.cmos45
from helpers import overlay, l, u, n
+import os
+import socket
+import helpers
+
+NdaDirectory = None
+if os.environ.has_key('NDA_TOP'):
+ NdaDirectory = os.environ['NDA_TOP']
+if not NdaDirectory:
+ hostname = socket.gethostname()
+ if hostname.startswith('lepka'):
+ NdaDirectory = '/dsk/l1/jpc/crypted/soc/techno'
+ if not os.path.isdir(NdaDirectory):
+ print ('[ERROR] You forgot to mount the NDA encrypted directory, stupid!')
+ else:
+ NdaDirectory = '/users/soft/techno/techno'
+helpers.setNdaTopDir( NdaDirectory )
+
+import CRL
+import Cfg
+from helpers import overlay, l, u, n
+
+# select one or other of these
+if False:
+ from NDA.node45.freepdk45_c4m import techno, FlexLib, LibreSOCIO
+ techno.setup()
+ FlexLib.setup()
+ LibreSOCIO.setup()
+else:
+ import symbolic.cmos45
+
+
if os.environ.has_key('CELLS_TOP'):
cellsTop = os.environ['CELLS_TOP']
else:
Viewer.Graphics.setStyle( 'Alliance.Classic [black]' )
af = CRL.AllianceFramework.get()
env = af.getEnvironment()
- env.setCLOCK( '^sys_clk|^ck|^jtag_tck' )
+ env.setCLOCK( '^sys_clk$|^ck|^jtag_tck$' )
env.setPOWER( 'vdd' )
env.setGROUND( 'vss' )
env.addSYSTEM_LIBRARY( library=cellsTop+'/niolib',
from plugins.alpha.block.configuration import IoPin
from plugins.alpha.block.configuration import GaugeConf
from plugins.alpha.core2chip.niolib import CoreToChip
+#from plugins.alpha.core2chip.libresocio import CoreToChip
from plugins.alpha.chip.configuration import ChipConf
from plugins.alpha.chip.chip import Chip
adderConf.bColumns = 2
adderConf.bRows = 2
adderConf.chipConf.name = 'chip'
+ #adderConf.chipConf.ioPadGauge = 'LibreSOCIO'
adderConf.chipConf.ioPadGauge = 'niolib'
adderConf.coreSize = ( l(2000), l(2000) )
adderConf.chipSize = ( l(5900), l(5900) )