Must connect clock at top level for now

This commit is contained in:
Matt Guthaus 2018-07-17 14:24:07 -07:00
parent e82f97cce1
commit 0665d51249
1 changed files with 8 additions and 4 deletions

View File

@ -322,7 +322,7 @@ class sram_base(design):
for i in range(self.word_size): for i in range(self.word_size):
temp.append("DOUT[{0}]".format(i)) temp.append("DOUT[{0}]".format(i))
for i in range(self.word_size): for i in range(self.word_size):
temp.append("DIN[{0}]".format(i)) temp.append("BANK_DIN[{0}]".format(i))
for i in range(self.bank_addr_size): for i in range(self.bank_addr_size):
temp.append("A[{0}]".format(i)) temp.append("A[{0}]".format(i))
if(self.num_banks > 1): if(self.num_banks > 1):
@ -346,7 +346,8 @@ class sram_base(design):
inputs.append("ADDR[{}]".format(i+self.col_addr_size)) inputs.append("ADDR[{}]".format(i+self.col_addr_size))
outputs.append("A[{}]".format(i+self.col_addr_size)) outputs.append("A[{}]".format(i+self.col_addr_size))
self.connect_inst(inputs + outputs + ["clk_buf", "vdd", "gnd"]) # FIXME clk->clk_buf
self.connect_inst(inputs + outputs + ["clk", "vdd", "gnd"])
def add_col_addr_dff(self, position): def add_col_addr_dff(self, position):
@ -361,7 +362,8 @@ class sram_base(design):
inputs.append("ADDR[{}]".format(i)) inputs.append("ADDR[{}]".format(i))
outputs.append("A[{}]".format(i)) outputs.append("A[{}]".format(i))
self.connect_inst(inputs + outputs + ["clk_buf", "vdd", "gnd"]) # FIXME clk->clk_buf
self.connect_inst(inputs + outputs + ["clk", "vdd", "gnd"])
def add_data_dff(self, position): def add_data_dff(self, position):
""" Add and place all data flops """ """ Add and place all data flops """
@ -375,7 +377,8 @@ class sram_base(design):
inputs.append("DIN[{}]".format(i)) inputs.append("DIN[{}]".format(i))
outputs.append("BANK_DIN[{}]".format(i)) outputs.append("BANK_DIN[{}]".format(i))
self.connect_inst(inputs + outputs + ["clk_buf_bar", "vdd", "gnd"]) # FIXME clk->clk_buf_bar
self.connect_inst(inputs + outputs + ["clk", "vdd", "gnd"])
def add_control_logic(self, position): def add_control_logic(self, position):
""" Add and place control logic """ """ Add and place control logic """
@ -392,6 +395,7 @@ class sram_base(design):
self.connect_inst(inputs + self.control_logic_outputs + ["vdd", "gnd"]) self.connect_inst(inputs + self.control_logic_outputs + ["vdd", "gnd"])
def add_lvs_correspondence_points(self): def add_lvs_correspondence_points(self):
""" This adds some points for easier debugging if LVS goes wrong. """ This adds some points for easier debugging if LVS goes wrong.
These should probably be turned off by default though, since extraction These should probably be turned off by default though, since extraction