You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: Jie Xu (@jiexu)
Original Redmine Issue: 693 from https://www.veripool.org
Original Date: 2013-10-31
Original Assignee: Wilson Snyder (@wsnyder)
Compiling the following code will fail
const logic unsigned [31:0] var_const;
logic [7:0] res_const;
assign res_const = var_const[7:0]; // Error line, not able to select part of const
with error:
Illegal bit or array select; type already selected, or bad dimension: type is
Illegal range select; type already selected, or bad dimension: type is
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.
The text was updated successfully, but these errors were encountered:
Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2013-11-01T02:39:30Z
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.
Author Name: Jie Xu (@jiexu)
Original Redmine Issue: 693 from https://www.veripool.org
Original Date: 2013-10-31
Original Assignee: Wilson Snyder (@wsnyder)
Compiling the following code will fail
with error:
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.
The text was updated successfully, but these errors were encountered: