Remove of fulladder.vst, step two ...
This commit is contained in:
parent
5cf88750bf
commit
afe83178ae
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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' :
|
||||
|
|
Loading…
Reference in New Issue