From d48f48324855c441f83583fd760c98d9e09f3287 Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 1 Jul 2020 15:10:20 -0700 Subject: [PATCH] Fix swapped instance bug in perimeter pins. --- compiler/sram/sram_1bank.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/sram/sram_1bank.py b/compiler/sram/sram_1bank.py index d2c58e49..a9731ed5 100644 --- a/compiler/sram/sram_1bank.py +++ b/compiler/sram/sram_1bank.py @@ -252,8 +252,8 @@ class sram_1bank(sram_base): bbox=bbox) din_ports.append(p) else: - self.copy_layout_pin(self.bank_inst, - "din{0}_{1}".format(port, bit), + self.copy_layout_pin(self.data_dff_insts[port], + "din_{}".format(bit), "din{0}[{1}]".format(port, bit)) # Data output pins go to BOTTOM/TOP @@ -275,8 +275,8 @@ class sram_1bank(sram_base): side=bottom_or_top, bbox=bbox) else: - self.copy_layout_pin(self.data_dff_insts[port], - "dout_{}".format(bit), + self.copy_layout_pin(self.bank_inst, + "dout{0}_{1}".format(port, bit), "dout{0}[{1}]".format(port, bit))