-
Notifications
You must be signed in to change notification settings - Fork 163
Create port on component #656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Maxime Rey <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# pins = [] | ||
# cmp_obj = list(cmp.LayoutObjs) | ||
# for p in cmp_obj: | ||
# if p.GetObjType() == 1: | ||
# if p.IsLayoutPin(): | ||
# pin_net_name = p.GetNet().GetName() | ||
# if pin_net_name in netName: | ||
# pins.append(p) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# pins = [] | |
# cmp_obj = list(cmp.LayoutObjs) | |
# for p in cmp_obj: | |
# if p.GetObjType() == 1: | |
# if p.IsLayoutPin(): | |
# pin_net_name = p.GetNet().GetName() | |
# if pin_net_name in netName: | |
# pins.append(p) |
"""Test the component placment layer. | ||
|
||
Parameters | ||
---------- | ||
cmp : self._edb.Cell.Hierarchy.Component | ||
Edb component. | ||
|
||
Returns | ||
------- | ||
bool | ||
``True`` when component placed on top layer, ``False`` on bottom layer. | ||
|
||
|
||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Test the component placment layer. | |
Parameters | |
---------- | |
cmp : self._edb.Cell.Hierarchy.Component | |
Edb component. | |
Returns | |
------- | |
bool | |
``True`` when component placed on top layer, ``False`` on bottom layer. | |
""" |
"""Creates edb pin group terminal from given edb pin group. | ||
|
||
Parameters | ||
---------- | ||
pingroup : Edb pin group. | ||
|
||
isref : bool | ||
|
||
Returns | ||
------- | ||
Edb pin group terminal. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Creates edb pin group terminal from given edb pin group. | |
Parameters | |
---------- | |
pingroup : Edb pin group. | |
isref : bool | |
Returns | |
------- | |
Edb pin group terminal. | |
""" |
"""Returns the closest pin from given pin among the list of reference pins. | ||
|
||
Parameters | ||
---------- | ||
pin : Edb padstack instance. | ||
|
||
ref_pinlist : list of reference edb pins. | ||
|
||
Returns | ||
------- | ||
Edb pin. | ||
|
||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Returns the closest pin from given pin among the list of reference pins. | |
Parameters | |
---------- | |
pin : Edb padstack instance. | |
ref_pinlist : list of reference edb pins. | |
Returns | |
------- | |
Edb pin. | |
""" |
quite a big PR for creating ports on components.