Skip to content

Standardize pattern for controlling optional Outputs #186

Open
@desmonddak

Description

@desmonddak

Motivation

In some components we want optional outputs that also cause different behavior in the component. A good example is whether we want a 1s complement adder to add the carry-out to the final sum or to leave it as a carry-out and produce sum-1.

Desired solution

Two solutions are immediately apparent: Supply only a boolean that causes a similarly named output to be added and behavior modified, or supply a nullable Logic? which causes the different configuration and is assigned the new output value (which requires an actual output be added and connected to the passed in Logic).

Alternatives considered

No response

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions