mirror of https://github.com/VLSIDA/OpenRAM.git
Fix dff_buf width in netlist_only mode
This commit is contained in:
parent
6bf33a980f
commit
0ef06ec1e1
|
|
@ -70,11 +70,6 @@ class dff_buf_array(design.design):
|
||||||
inv2_size=self.inv2_size)
|
inv2_size=self.inv2_size)
|
||||||
self.add_mod(self.dff)
|
self.add_mod(self.dff)
|
||||||
|
|
||||||
well_spacing = max(self.nwell_space,
|
|
||||||
self.pwell_space,
|
|
||||||
self.pwell_to_nwell)
|
|
||||||
|
|
||||||
self.dff_pitch = self.dff.width + well_spacing + self.well_extend_active
|
|
||||||
|
|
||||||
def create_dff_array(self):
|
def create_dff_array(self):
|
||||||
self.dff_insts={}
|
self.dff_insts={}
|
||||||
|
|
@ -91,14 +86,21 @@ class dff_buf_array(design.design):
|
||||||
"gnd"])
|
"gnd"])
|
||||||
|
|
||||||
def place_dff_array(self):
|
def place_dff_array(self):
|
||||||
|
|
||||||
|
well_spacing = max(self.nwell_space,
|
||||||
|
self.pwell_space,
|
||||||
|
self.pwell_to_nwell)
|
||||||
|
|
||||||
|
dff_pitch = self.dff.width + well_spacing + self.well_extend_active
|
||||||
|
|
||||||
for row in range(self.rows):
|
for row in range(self.rows):
|
||||||
for col in range(self.columns):
|
for col in range(self.columns):
|
||||||
name = "Xdff_r{0}_c{1}".format(row,col)
|
name = "Xdff_r{0}_c{1}".format(row,col)
|
||||||
if (row % 2 == 0):
|
if (row % 2 == 0):
|
||||||
base = vector(col*self.dff_pitch,row*self.dff.height)
|
base = vector(col*dff_pitch,row*self.dff.height)
|
||||||
mirror = "R0"
|
mirror = "R0"
|
||||||
else:
|
else:
|
||||||
base = vector(col*self.dff_pitch,(row+1)*self.dff.height)
|
base = vector(col*dff_pitch,(row+1)*self.dff.height)
|
||||||
mirror = "MX"
|
mirror = "MX"
|
||||||
self.dff_insts[row,col].place(offset=base,
|
self.dff_insts[row,col].place(offset=base,
|
||||||
mirror=mirror)
|
mirror=mirror)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue