# This file is part of the Coriolis Software. # Copyright (c) UPMC 2019-2020, All Rights Reserved # # +-----------------------------------------------------------------+ # | C O R I O L I S | # | Alliance / Hurricane Interface | # | | # | Author : Jean-Paul CHAPUT | # | E-mail : Jean-Paul.Chaput@lip6.fr | # | =============================================================== | # | Python : "./etc/node45/freepdk45/alliance.py" | # +-----------------------------------------------------------------+ import helpers.io helpers.io.vprint( 2, ' - "%s".' % helpers.truncPath(__file__) ) import os import os.path from CRL import Environment from CRL import AllianceFramework allianceTop = None if 'ALLIANCE_TOP' in os.environ: allianceTop = os.environ['ALLIANCE_TOP'] if not os.path.isdir(allianceTop): allianceTop = None if not allianceTop: allianceTop = '/soc/alliance' cellsTop = allianceTop+'/cells' af = AllianceFramework.get() env = af.getEnvironment() env.setSCALE_X ( 100 ) env.setCATALOG ( 'CATAL' ) env.setIN_LO ( 'vst' ) env.setIN_PH ( 'ap' ) env.setOUT_LO ( 'vst' ) env.setOUT_PH ( 'ap' ) env.setPOWER ( 'vdd' ) env.setGROUND ( 'vss' ) env.setCLOCK ( '.*ck.*|.*nck.*' ) env.setBLOCKAGE ( 'blockage[Nn]et.*' ) env.setPad ( '.*_mpx$' ) env.setWORKING_LIBRARY( '.' ) env.addSYSTEM_LIBRARY ( library=cellsTop+'/nsxlib', mode=Environment.Append ) env.addSYSTEM_LIBRARY ( library=cellsTop+'/mpxlib', mode=Environment.Append )