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

constuint / constsint ? #37

Closed
osnr opened this issue Aug 1, 2017 · 3 comments
Closed

constuint / constsint ? #37

osnr opened this issue Aug 1, 2017 · 3 comments

Comments

@osnr
Copy link
Collaborator

osnr commented Aug 1, 2017

Like constarray. Could be useful for building arithmetic against fixed constants. Related to #35.

@osnr
Copy link
Collaborator Author

osnr commented Aug 1, 2017

also useful for micro-tests of int behavior (e.g. a circuit for "is 5 less than 6?")

@phanrahan
Copy link
Owner

phanrahan commented Aug 2, 2017

Good idea.

In terms of names, we have been starting to use all lowercase names for functions that create instances directly. I would suggest we use sint(i,n) and uint(i,n) to create const SInts and UInts. We may also want to use bits(i,n) for Bits. We could also allow array(i,n) for constarray.

@phanrahan
Copy link
Owner

This can now be done with uint(i,n) and sint(i,n)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants