Convert entire OpenRAM to use python3. Works with Python 3.6.

Major changes:
Remove mpmath library and use numpy instead.
Convert bytes to new bytearrays.
Fix class name check for duplicate gds instances.
Add explicit integer conversion from floats.
Fix importlib reload from importlib library
Fix new key/index syntax issues.
Fix filter and map conversion to lists.
Fix deprecation warnings.
Fix Circuits vs Netlist in Magic LVS results.
Fix file closing warnings.
This commit is contained in:
Matt Guthaus
2018-05-14 16:15:45 -07:00
parent 58628d7867
commit f34c4eb7dc
179 changed files with 803 additions and 42105 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python2.7
#!/usr/bin/env python3
import unittest
from testutils import header,openram_test
@@ -58,11 +58,12 @@ def check_file_format_tab(file_name):
f = open(file_name, "r+b")
key_positions = []
for num, line in enumerate(f, 1):
if '\t' in line:
if b'\t' in line:
key_positions.append(num)
if len(key_positions) > 0:
debug.info(0, '\nFound ' + str(len(key_positions)) + ' tabs in ' +
str(file_name) + ' (line ' + str(key_positions[0]) + ')')
f.close()
return len(key_positions)