Skip to content

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

Merged
merged 28 commits into from
Dec 21, 2021
Merged

Create port on component #656

merged 28 commits into from
Dec 21, 2021

Conversation

svandenb-dev
Copy link
Collaborator

quite a big PR for creating ports on components.

Copy link
Collaborator

@maxcapodi78 maxcapodi78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +1183 to +1190
# 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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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)

Comment on lines +651 to +664
"""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.


"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""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.
"""

Comment on lines +569 to +580
"""Creates edb pin group terminal from given edb pin group.

Parameters
----------
pingroup : Edb pin group.

isref : bool

Returns
-------
Edb pin group terminal.
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""Creates edb pin group terminal from given edb pin group.
Parameters
----------
pingroup : Edb pin group.
isref : bool
Returns
-------
Edb pin group terminal.
"""

Comment on lines +538 to +550
"""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.

"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""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.
"""

@svandenb-dev svandenb-dev merged commit c538405 into main Dec 21, 2021
@svandenb-dev svandenb-dev deleted the create_port_on_component branch December 21, 2021 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants