rohd-hcl icon indicating copy to clipboard operation
rohd-hcl copied to clipboard

Upgrade component output conditional generation

Open mkorbel1 opened this issue 5 months ago • 0 comments

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

mkorbel1 avatar Sep 16 '24 17:09 mkorbel1