50 lines
1.8 KiB
Python
50 lines
1.8 KiB
Python
|
|
# This file is part of the Coriolis Software.
|
|
# Copyright (c) orbonne Université 2019-2021, 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/symbolic/cmos/alliance.py" |
|
|
# +-----------------------------------------------------------------+
|
|
|
|
|
|
import os
|
|
import os.path
|
|
import helpers.io
|
|
helpers.io.vprint( 2, ' - "{}".'.format(helpers.truncPath(__file__)) )
|
|
|
|
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 )
|