mirror of https://github.com/VLSIDA/OpenRAM.git
PEP8 cleanup bitcell_base
This commit is contained in:
parent
95573c858c
commit
6e51c3cda0
|
|
@ -95,7 +95,7 @@ class bitcell_base(design.design):
|
||||||
labels for pex simulation.
|
labels for pex simulation.
|
||||||
"""
|
"""
|
||||||
# If we generated the bitcell, we already know where Q and Q_bar are
|
# If we generated the bitcell, we already know where Q and Q_bar are
|
||||||
if OPTS.bitcell is not "pbitcell":
|
if OPTS.bitcell != "pbitcell":
|
||||||
self.storage_net_offsets = []
|
self.storage_net_offsets = []
|
||||||
for i in range(len(self.get_storage_net_names())):
|
for i in range(len(self.get_storage_net_names())):
|
||||||
for text in self.gds.getTexts(layer["m1"]):
|
for text in self.gds.getTexts(layer["m1"]):
|
||||||
|
|
@ -105,7 +105,6 @@ class bitcell_base(design.design):
|
||||||
for i in range(len(self.storage_net_offsets)):
|
for i in range(len(self.storage_net_offsets)):
|
||||||
self.storage_net_offsets[i] = tuple([self.gds.info["units"][0] * x for x in self.storage_net_offsets[i]])
|
self.storage_net_offsets[i] = tuple([self.gds.info["units"][0] * x for x in self.storage_net_offsets[i]])
|
||||||
|
|
||||||
|
|
||||||
return(self.storage_net_offsets)
|
return(self.storage_net_offsets)
|
||||||
|
|
||||||
def get_bitline_offset(self):
|
def get_bitline_offset(self):
|
||||||
|
|
@ -150,7 +149,7 @@ class bitcell_base(design.design):
|
||||||
of the bitcell. This is useful for making sense of offsets outside
|
of the bitcell. This is useful for making sense of offsets outside
|
||||||
of the bitcell.
|
of the bitcell.
|
||||||
"""
|
"""
|
||||||
if OPTS.bitcell is not "pbitcell":
|
if OPTS.bitcell != "pbitcell":
|
||||||
normalized_storage_net_offset = self.get_storage_net_offset()
|
normalized_storage_net_offset = self.get_storage_net_offset()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue