bug.v:11: error: Part select expressions must be constant.
bug.v:11: : This msb expression violates the rule:
While the tool correctly compiles the 2001 syntax for
bit select in a register when on the rhs of the = sign,
it fails on the lhs. Below is a simple example that
fails to compile. It seems to dislike the use of a
variable in the start reference of the bit select e.g.
the integer "i".
reg [31:0] a;
a[i*4+:2] = 2'b11;
Log in to post a comment.