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

Implement the ability to use bit variables (HAST-235) #8

Open
Piedone opened this issue Sep 7, 2017 · 1 comment
Open

Implement the ability to use bit variables (HAST-235) #8

Piedone opened this issue Sep 7, 2017 · 1 comment

Comments

@Piedone
Copy link
Member

Piedone commented Sep 7, 2017

For #2 we need to store bit values in an efficient way. We could use bools, which on the FPGA will be represented as bits (which is great), but probably a more explicit approach would be better. Options:

See: http://stackoverflow.com/questions/352089/why-cant-i-define-a-bit-in-c-sharp

Jira issue

@Piedone
Copy link
Member Author

Piedone commented Mar 6, 2018

These could be handled by "compiler intrinsics" of the Transformer specifically: instead of actually transforming them an efficient pre-created hardware implementation could be used (similarly how ImmutableArray support works).

Maybe having an instrinsic behaviour for BitMask would actually be the best: have a configurable-sized (as many bits as you wish) signed/unsigned register with support for basic operators like arithmetic, shifting... Would also help #21.

@github-actions github-actions bot changed the title Implement the ability to use bit variables Implement the ability to use bit variables (HAST-235) Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant