mirror of
https://codeberg.org/LibrEDA/libreda-python
synced 2026-05-29 00:21:40 +08:00
Adapt to changes in db.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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", ())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user