Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem with bit selection from const variable #693
Compiling the following code will fail
Remove the @const@ will fix the problem of course. Not sure if the use here is compliant with standard or not. An attempt to fix this together with test case can be pulled here: https://github.com/jiexu/verilator/ constSel.
Original Redmine Comment
Fixed in git towards 3.854.
"const" to my knowledge hasn't been tested very well, so I wouldn't be surprised if there are additional issues. Note also const isn't strongly enforced.