mirror of https://github.com/VLSIDA/OpenRAM.git
add case for single spare col spare_wen_dff i/o
This commit is contained in:
parent
1bab395946
commit
fbe3032246
|
|
@ -688,7 +688,10 @@ class sram_base(design, verilog, lef):
|
|||
inputs = []
|
||||
outputs = []
|
||||
for bit in range(self.num_spare_cols):
|
||||
inputs.append("spare_wen{}[{}]".format(port, bit))
|
||||
if self.num_spare_cols == 1:
|
||||
inputs.append("spare_wen{0}".format(port))
|
||||
else:
|
||||
inputs.append("spare_wen{0}[{1}]".format(port, bit))
|
||||
outputs.append("bank_spare_wen{}_{}".format(port, bit))
|
||||
|
||||
self.connect_inst(inputs + outputs + ["clk_buf{}".format(port)] + self.ext_supplies)
|
||||
|
|
|
|||
Loading…
Reference in New Issue