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

Quad-state literals assigned to two-state variables #790

Open
nblei opened this issue Jun 15, 2024 · 0 comments
Open

Quad-state literals assigned to two-state variables #790

nblei opened this issue Jun 15, 2024 · 0 comments
Labels
tools Tools feature

Comments

@nblei
Copy link
Contributor

nblei commented Jun 15, 2024

let uu32: u32 = 32'h0x0x_0x0x; will transpile to int unsigned uu32; always_comb uu32 = 32'0x0x_0x0x;

But int is a 2-state data type in SV. So I think we need to either 1) change the type which u32, etc map to, or 2) raise an error when assigning a 4-state value to a variable of data type u32, etc.

@dalance dalance added the tools Tools feature label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Tools feature
Projects
None yet
Development

No branches or pull requests

2 participants