rohd-hcl
rohd-hcl copied to clipboard
Upgrade component output conditional generation
Motivation
There are a variety of ways to have optional output ports, for example:
- A bool to control whether it gets generated with a nullable getter
- An optional argument to the constructor that connects to an output (requires width matching)
- A getter with a side-effect of lazily creating the port (and associated logic) when it's requested
These all have pros and cons in both implementation and use cases
Desired solution
Debate these, figure out if there's a consistent solution that's good for all cases vs. multiple depending on where it is
Alternatives considered
No response
Additional details
No response