mirror of https://github.com/VLSIDA/OpenRAM.git
Fix pdriver width error
This commit is contained in:
parent
8f56953af0
commit
ddf734891a
|
|
@ -86,7 +86,9 @@ class control_logic(design.design):
|
||||||
|
|
||||||
# Special gates: inverters for buffering
|
# Special gates: inverters for buffering
|
||||||
# clk_buf drives a flop for every address and control bit
|
# clk_buf drives a flop for every address and control bit
|
||||||
clock_fanout = math.log(self.num_words,2) + math.log(self.words_per_row,2)+1 + self.num_control_signals
|
# plus about 5 fanouts for the control logic
|
||||||
|
clock_fanout = math.log(self.num_words,2) + math.log(self.words_per_row,2) \
|
||||||
|
+ self.num_control_signals + 5
|
||||||
self.clkbuf = factory.create(module_type="pdriver",
|
self.clkbuf = factory.create(module_type="pdriver",
|
||||||
fanout=clock_fanout,
|
fanout=clock_fanout,
|
||||||
height=dff_height)
|
height=dff_height)
|
||||||
|
|
|
||||||
|
|
@ -231,8 +231,8 @@ class wordline_driver(design.design):
|
||||||
stage_effort_list.append(stage1)
|
stage_effort_list.append(stage1)
|
||||||
last_stage_is_rise = stage1.is_rise
|
last_stage_is_rise = stage1.is_rise
|
||||||
|
|
||||||
stage2 = self.inv.get_stage_effort(external_cout, last_stage_is_rise)
|
stage2 = self.inv.get_stage_efforts(external_cout, last_stage_is_rise)
|
||||||
stage_effort_list.append(stage2)
|
stage_effort_list.extend(stage2)
|
||||||
|
|
||||||
return stage_effort_list
|
return stage_effort_list
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -100,8 +100,8 @@ class pdriver(pgate.pgate):
|
||||||
self.create_insts()
|
self.create_insts()
|
||||||
|
|
||||||
def create_layout(self):
|
def create_layout(self):
|
||||||
self.width = self.num_inv * self.inv_list[0].width
|
self.width = self.inv_inst_list[-1].rx()
|
||||||
self.height = self.inv_list[0].height
|
self.height = self.inv_inst_list[0].uy()
|
||||||
|
|
||||||
self.place_modules()
|
self.place_modules()
|
||||||
self.route_wires()
|
self.route_wires()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue