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

Logical Functions for Simulations #259

Open
ryukzak opened this issue Oct 3, 2023 · 0 comments
Open

Logical Functions for Simulations #259

ryukzak opened this issue Oct 3, 2023 · 0 comments

Comments

@ryukzak
Copy link
Owner

ryukzak commented Oct 3, 2023

We need to implement the following logical functions:

Bool:

  • 0 - False
  • any other -- True

LUT -- Look Up Table

data LUT v x = LUT (Map [Boolean] Boolean) [I v] (O v)

where:

  • [I v] -- list of input variables.
  • Map [Boolean] Boolean -- Truth Table.
  • length of [Boolean] and [I v] should equal (will be nice to check it via type).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant