From 34559cb63ed2ffc868d156fe8c2cf87645be237f Mon Sep 17 00:00:00 2001 From: Thomas Kramer Date: Fri, 2 Jun 2023 12:16:48 +0200 Subject: [PATCH] Adapt to changes in db. --- src/chip.rs | 4 ++-- src/pychip.rs | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/chip.rs b/src/chip.rs index 5e969e7..6b20c44 100644 --- a/src/chip.rs +++ b/src/chip.rs @@ -156,8 +156,8 @@ id_wrapper!(HierarchyIds, CellInstId); id_wrapper!(NetlistIds, NetId); id_wrapper!(NetlistIds, PinId); id_wrapper!(NetlistIds, PinInstId); -id_wrapper!(LayoutBase, LayerId); -id_wrapper!(LayoutBase, ShapeId); +id_wrapper!(LayoutIds, LayerId); +id_wrapper!(LayoutIds, ShapeId); /// ID wrapper for TerminalID. /// A terminal can either be a pin or a pin instance. diff --git a/src/pychip.rs b/src/pychip.rs index 4797259..42229ae 100644 --- a/src/pychip.rs +++ b/src/pychip.rs @@ -197,12 +197,14 @@ impl<'a> HierarchyBase for PyChip<'a> { } } -impl<'a> LayoutBase for PyChip<'a> { +impl<'a> LayoutIds for PyChip<'a> { type Coord = i32; type Area = i64; type LayerId = PyIdObject; type ShapeId = PyIdObject; +} +impl<'a> LayoutBase for PyChip<'a> { fn dbu(&self) -> Self::Coord { self.call_function_and_convert("dbu", ()) }