Skip to content
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

Add Keepout Generators for SMT Components #177

Merged
merged 7 commits into from
Sep 30, 2024
Merged

Conversation

callendorph
Copy link
Contributor

This provides a mechanism for customizing the keep out generators for components, specifically SMT components:
image

Notice that this keepout currently works for planes but it is not yet working for traces.

Goal will be to expand this to support QFNs and other packages where we need to provide keepout functionality.

This function ends up being useful in multiple places
and so I will make it part of the public interface
to `VirtualLP`
I'm going to use this for creating the keepouts
underneath components, particularly for SMT
chips but also for things like keepouts in
QFN packages.
@callendorph callendorph requested a review from bhusang September 26, 2024 21:54
public defn ensure-not-empty! (field:String, value:Collection) :
if count(value) == 0:
throw $ ValueError("Expected Non-Empty Collection - Found: %_" % [value])
Copy link
Contributor

Choose a reason for hiding this comment

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

What does the argument field:String do here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the interface for the ensure => FUNC members of a defstruct field. I believe it gets used by the defstruct macro to tell the user which field of the defstruct had this fault case.

@callendorph callendorph merged commit c8578fa into main Sep 30, 2024
1 check passed
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.

2 participants