-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Idea: in generators, no blocks can be declared in contents(), but parameter assignment is allowed. This can clean up things like needing a ForcedVoltage in buck converters to propagate the voltage, but without multi-stage generators that need to add to links and whatnot.
In the compiler. it would assert out if blocks (or at least connections) are defined pre-generate.
Things to figure out:
- how can Export work with generators?
- how does this interact with inheritance, where the superclass may define connections?
- is this better than the current system, where nothing is available pre-generation, so it's unintuitive, but very consistent?
Metadata
Metadata
Assignees
Labels
No labels