include ./mk/design-flow.mk
+alu16_r.ap alu16_r.vst: alu16.vst
+ -@echo "Overriding rules to generate layout by doAlu16.py custom script."
+ -$(call scl_cols,$(call c2env, ./doAlu16.py))
blif: alu16.blif
vst: alu16.vst
# -*- Mode:Python -*-
-from __future__ import print_function
-import os
import Cfg
import CRL
import Viewer
Cfg.Configuration.popDefaultPriority()
-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')
result = place_and_route(cell)
+ cell.setName(cell.getName()+'_r')
af.saveCell(cell, CRL.Catalog.State.Views)
RSavePlugin.ScriptMain(editor=editor, **kwargs)