From 208c6526534e4abfd69b0e1ca147f4d90440965b Mon Sep 17 00:00:00 2001 From: Joey Kunzler Date: Fri, 19 Jun 2020 13:59:33 -0700 Subject: [PATCH] added error for sky130 with invalid x mirroring (for lvs) --- compiler/modules/replica_column.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/modules/replica_column.py b/compiler/modules/replica_column.py index 603bebfe..3a58668c 100644 --- a/compiler/modules/replica_column.py +++ b/compiler/modules/replica_column.py @@ -36,6 +36,10 @@ class replica_column(design.design): "Replica bit cannot be the dummy row.") debug.check(replica_bit <= left_rbl or replica_bit >= self.total_size - right_rbl - 1, "Replica bit cannot be in the regular array.") + if OPTS.tech_name == "sky130": + debug.check(rows % 2 == 0 and (left_rbl + 1) % 2 == 0, + "sky130 currently requires rows to be even and to start with X mirroring" + + " (left_rbl must be odd) for LVS.") self.create_netlist() if not OPTS.netlist_only: