Remove of fulladder.vst, step two ...

This commit is contained in:
Sophie Belloeil 2010-09-06 11:15:41 +00:00
parent 5cf88750bf
commit afe83178ae
3 changed files with 16 additions and 6 deletions

View File

@ -119,7 +119,15 @@ class Bool ( Model ) :
boolMap[self.dictInOut['i0']] = self._i0[i]
boolMap[self.dictInOut['i1']] = self._i1[i]
elif self.m in A :
# sxlib fulladder:
import types
if type ( self.dictInOut['a'] ) == types.ListType :
for realpin in self.dictInOut['a'] : boolMap[realpin] = self._a[i]
else :
boolMap[self.dictInOut['a']] = self._a[i]
if type ( self.dictInOut['b'] ) == types.ListType :
for realpin in self.dictInOut['b'] : boolMap[realpin] = self._b[i]
else :
boolMap[self.dictInOut['b']] = self._b[i]
if self.m in I2 :
@ -128,6 +136,9 @@ class Bool ( Model ) :
boolMap[self.dictInOut['i3']] = self._i3[i]
if self.m in CIN :
if type ( self.dictInOut['cin'] ) == types.ListType :
for realpin in self.dictInOut['cin'] : boolMap[realpin] = self._cin[i]
else :
boolMap[self.dictInOut['cin']] = self._cin[i]
if self.m in CMD :
boolMap[self.dictInOut['cmd']] = self._cmd

View File

@ -110,7 +110,6 @@ class Inst :
if BV == [] : InitBV()
if model in BV : model, self._inout = GetRealModel ( model )
print "inout récupéré:", self._inout
##### Attributes of the instance #####
self._model = model.lower()
@ -169,7 +168,7 @@ class Inst :
if self._model == c._name :
self._st_masterCell = c
break
if not( self._hur_masterCell or self._st_masterCell ) : print "\n[Stratus Warning] Inst : no master cell found for instance" + self._name
if not( self._hur_masterCell or self._st_masterCell ) : print "\n[Stratus Warning] Inst : no master cell found for instance " + self._name
# Creation of the hurricane instance
if CELLS[0]._hur_plug : self.create_hur_inst ( model )

View File

@ -85,7 +85,7 @@ class Parser :
#########################################
def start_element ( self, name, attrs ) :
# Print which the technology is
if name == 'technology' : print " - Stratus virtual technology targets:", attrs['name']
# if name == 'technology' : print " - Stratus virtual technology targets:", attrs['name']
# Modification of attributes
if name == 'model' :