We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba5dc39 commit 7338470Copy full SHA for 7338470
1 file changed
hwcomponents_library/library/misc.py
@@ -145,6 +145,9 @@ def __init__(
145
)
146
self.address_bits = max(math.ceil(math.log2(depth)), 1)
147
self.width = width
148
+ self.depth = depth
149
+ self.n_rw_ports = n_rw_ports
150
+ self.n_banks = n_banks
151
152
self.address_reg = AladdinRegister(width=self.address_bits, tech_node=tech_node)
153
self.delta_reg = AladdinRegister(width=self.address_bits, tech_node=tech_node)
@@ -174,6 +177,7 @@ def read(self) -> float:
174
177
float
175
178
The energy consumed by a read operation in Joules.
176
179
"""
180
+ print(f'My width is {self.width}')
181
self.sram.read(bits_per_action=self.width)
182
self.address_reg.read()
183
self.delta_reg.read()
0 commit comments