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

Fix bug related to large integer constants #28

Open
sgherbst opened this issue Dec 10, 2020 · 0 comments
Open

Fix bug related to large integer constants #28

sgherbst opened this issue Dec 10, 2020 · 0 comments

Comments

@sgherbst
Copy link
Owner

Even though Python supports arbitrary-size integers, most Verilog simulators do not. As a result, there can be subtle bugs where integer constants overflow within the simulator, before they are even assigned. This problem could be solved by using an explicit width when formatting large constants (possibly switching to hex as well). Care would need to be taken to make sure the generated Verilog is still fairly readable.

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

1 participant