updated imports to match upstream dev openram

This commit is contained in:
Jacob Walker
2023-03-30 11:30:50 -07:00
parent 63925bd48e
commit b2631b60ff
14 changed files with 80 additions and 77 deletions
+7 -8
View File
@@ -6,13 +6,12 @@
# All rights reserved.
#
import math
from base import design
from sram_factory import factory
from base import vector
from globals import OPTS
import tech
from tech import drc
from math import ceil, log
from openram.base import design
from openram.sram_factory import factory
from openram.base import vector
from openram import OPTS
from openram.tech import drc
class rom_decoder(design):
@@ -23,7 +22,7 @@ class rom_decoder(design):
# array gets rotated 90deg so that rows/cols switch
self.strap_spacing=strap_spacing
self.num_outputs = num_outputs
self.num_inputs = math.ceil(math.log(num_outputs, 2))
self.num_inputs = ceil(log(num_outputs, 2))
self.create_decode_map()
for i in range(2 * self.num_inputs): print(self.decode_map[i])