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

internal error: lval-rval width mismatch #12

Closed
cliffordwolf opened this issue Feb 15, 2014 · 1 comment
Closed

internal error: lval-rval width mismatch #12

cliffordwolf opened this issue Feb 15, 2014 · 1 comment

Comments

@cliffordwolf
Copy link
Contributor

@cliffordwolf cliffordwolf commented Feb 15, 2014

The following module fails to build with icarus verilog:

module issue_022(a, y);
  input [1:0] a;
  output [1:0] y;
  assign y = 'bx ? 2'b0 : a;
endmodule

the error message produced is:

internal error: lval-rval width mismatch: rval->vector_width()==1, lval->vector_width()==2
assert: elaborate.cc:150: failed assertion rval->vector_width() >= lval->vector_width()

This is with git rev 68f8de2.

@martinwhitaker
Copy link
Collaborator

@martinwhitaker martinwhitaker commented Feb 15, 2014

I've pushed a fix for this bug to the git master branch.

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

Successfully merging a pull request may close this issue.

None yet
2 participants