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

Some kinda more general connectable Array #210

Open
dan-fritchman opened this issue Nov 20, 2023 · 0 comments
Open

Some kinda more general connectable Array #210

dan-fritchman opened this issue Nov 20, 2023 · 0 comments

Comments

@dan-fritchman
Copy link
Owner

dan-fritchman commented Nov 20, 2023

Particularly, there's currently a trade-off between using Bundle and having parametric sizes/ lengths/ arrays thereof.

(Conceptual, not working) example:

@h.paramclass 
class Params:
  how_many_diffs = h.Param(dtype=int, desc="how many diffs?")

@h.generator
def ThatManyDiffs(params: Params) -> h.Module:
  @h.module
  class ThatManyDiffs:
    something = params.how_many_diffs * h.Diff(port=True)
  return ThatManyDiffs

There's nothing that fits the role of something as of now, i.e. nothing that can be "N bundle instances", where both N and the kind of bundle is parametric.

Don't know just what we want here yet, or how to implement it.
More of a starting point for thinking about it.

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

No branches or pull requests

1 participant