Adapt to changes in db.

This commit is contained in:
Thomas Kramer
2023-06-02 12:16:48 +02:00
parent 29ab1faee0
commit 34559cb63e
2 changed files with 5 additions and 3 deletions

View File

@@ -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.

View File

@@ -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", ())
}