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

Support for Trinary or Quaterary values #105

Open
OracularSpy opened this issue Jan 30, 2023 · 1 comment
Open

Support for Trinary or Quaterary values #105

OracularSpy opened this issue Jan 30, 2023 · 1 comment
Labels
enhancement Issues that are enhancing the functionality

Comments

@OracularSpy
Copy link

the first two can be the same as-is, but the third value can be a "no-connect" or "disconnected" signal.

an idea for colors:

0xFF0000 - on
0x7F0000 - off
0x000000 - disconnected

an unknown connection can be shown as a wire flashing between "on" and "off", but the three mentioned are sufficient. the fourth value can be substituted by logically ORing all its inputs, just like how the current version does it

with the "disconnected" state, a new buffer type can be added:
it has 2 inputs, the first input can be a bus input.
the output depends on the second input. if the second input is false, then the output is "disconnected". if the second input is true, the first input is copied to the output

otherwise a "disconnected" state is sent to the output. this can also take advantage of the bus input

buttons and switches will simulate connections when editing a circuit

also, please add a bus output

@SimonBuxx SimonBuxx added the enhancement Issues that are enhancing the functionality label Feb 1, 2023
@OracularSpy
Copy link
Author

now that i think about it, a nullable boolean can accomodate for null being the third state. also allows for easy high-Z scanning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues that are enhancing the functionality
Projects
None yet
Development

No branches or pull requests

2 participants