-
Notifications
You must be signed in to change notification settings - Fork 22
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
instance.get_pins() vs instance.pins #139
Comments
good catch. I believe that the get_pins() call has the option to return either inner or outer pins and defaults to inner. i'll do a little bit of digging in the code and let you know what I find. |
Could you try something like the following to see what happens?
and then run something like
Let me know if that gets the outer pins I think we made selection = Selection.INSIDE the default on everything. The instance's pins case might be one where it doesn't make as much sense. I think we were thinking if you wanted to get all cables attached to an instance or definition, you might be interested in the ones that are inside of it or outside. We just extended that to the pins. As far as changing this i'm not sure if anyone is relying on the current behavior... We can at the very least check against our internal redundancy applications. We may want to push this off to a version 2 feature. |
Using the Selection.OUTSIDE does get the outer pins. That makes sense now why you did that...so you could get either the inner or outer pins. Now that I understand it, it doesn't seem like a bug really so we probably don't need to change it. |
I'm new to this codebase, but I don't view this as a minor issue. The existing IR construction is already somewhat opaque given the similar names and concepts ( I spent several hours scouring the docs and playing with the code, trying to figure out why I couldn't find the wires for a given instance, only to find out that on many of the types,
On a similar, but unrelated note, why does the |
I agree with @agg23. I wasted a good amount of time on I don't think it makes sense to have getter and a property that sound to do the same thing. It sounds like |
Thanks for the feedback. This should definitely be improved. I'll take a look at it soon. |
This is probably a minor issue, but right now, instance.get_pins() returns inner pins but instance.pins returns outer pins. Shouldn't they both return outer pins?
The text was updated successfully, but these errors were encountered: