mirror of
git://projects.qi-hardware.com/xue.git
synced 2024-11-07 14:53:08 +02:00
fixed xil2kc.py error
This commit is contained in:
parent
ef72b751a5
commit
a8ff17c52f
@ -63,13 +63,12 @@ def main():
|
||||
pins.append((tags[0],tags[5], tags[2],tags[3],tags[4]))
|
||||
|
||||
f.close()
|
||||
|
||||
|
||||
m = {}
|
||||
for i in xrange(len(pins)):
|
||||
if m.has_key(pins[i][4]):
|
||||
m[pins[i][4]].append(i)
|
||||
else:
|
||||
if not m.has_key(pins[i][4]):
|
||||
m[pins[i][4]] = []
|
||||
m[pins[i][4]].append(i)
|
||||
|
||||
xl = KcLibrary (outputfile)
|
||||
|
||||
@ -107,6 +106,7 @@ def main():
|
||||
un.right_pins.append(signal)
|
||||
|
||||
xl.write()
|
||||
|
||||
#end-main
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user