Forum Discussion
_AK6DN_
Frequent Contributor
1 year agoThat is an error. You are writing Verilog, not C. Prefix and postfix ++ and -- are NOT valid operators in Verilog.
And in any event the operation i = i++ is nonsensical. Think about it.
I think you meant to write i = i+1 as you did in line 12.
i++ or ++i would also be logically correct, giving the same result as i=i+1 but as I said earlier they are NOT valid Verilog language syntax.
- FvM1 year ago
Super Contributor
Unary incre- and decrement operators are supported in system verilog, but make no sense on assignment RHS.
We don't know if SV syntax has been enabled.