mirror of https://github.com/VLSIDA/OpenRAM.git
Increased enable pin's width for larger # of column mux ways.
This commit is contained in:
parent
2573b5f48b
commit
aa4803f3c4
|
|
@ -156,7 +156,7 @@ class write_driver_array(design.design):
|
||||||
wmask_en_len = (self.write_size * self.driver_spacing)
|
wmask_en_len = (self.write_size * self.driver_spacing)
|
||||||
en_gap = self.driver_spacing - en_pin.width()
|
en_gap = self.driver_spacing - en_pin.width()
|
||||||
else:
|
else:
|
||||||
wmask_en_len = 2*(self.write_size * self.driver_spacing)
|
wmask_en_len = self.words_per_row*(self.write_size * self.driver_spacing)
|
||||||
en_gap = self.driver_spacing
|
en_gap = self.driver_spacing
|
||||||
|
|
||||||
self.add_layout_pin(text="en_{0}".format(bit),
|
self.add_layout_pin(text="en_{0}".format(bit),
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ class write_mask_and_array(design.design):
|
||||||
if self.driver_spacing * self.write_size < self.and2.width:
|
if self.driver_spacing * self.write_size < self.and2.width:
|
||||||
debug.error("Cannot layout write mask AND array. One pand2 is longer than the corresponding write drivers.")
|
debug.error("Cannot layout write mask AND array. One pand2 is longer than the corresponding write drivers.")
|
||||||
else:
|
else:
|
||||||
wmask_en_len = 2 * (self.write_size * self.driver_spacing)
|
wmask_en_len = self.words_per_row * (self.write_size * self.driver_spacing)
|
||||||
if wmask_en_len < self.and2.width:
|
if wmask_en_len < self.and2.width:
|
||||||
debug.error("Cannot layout write mask AND array. One pand2 is longer than the corresponding write drivers.")
|
debug.error("Cannot layout write mask AND array. One pand2 is longer than the corresponding write drivers.")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ class port_data_test(openram_test):
|
||||||
a = factory.create("port_data", sram_config=c, port=0)
|
a = factory.create("port_data", sram_config=c, port=0)
|
||||||
self.local_check(a)
|
self.local_check(a)
|
||||||
|
|
||||||
c.word_size = 2
|
|
||||||
c.num_words = 128
|
c.num_words = 128
|
||||||
c.words_per_row = 8
|
c.words_per_row = 8
|
||||||
factory.reset()
|
factory.reset()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue