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

Standardize pattern for controlling optional Outputs #186

Open
desmonddak opened this issue Mar 6, 2025 · 0 comments
Open

Standardize pattern for controlling optional Outputs #186

desmonddak opened this issue Mar 6, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@desmonddak
Copy link
Contributor

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

@desmonddak desmonddak added the enhancement New feature or request label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant