[myhdl-list] omiting .next should cause an error
Brought to you by:
jandecaluwe
|
From: George P. <ge...@ga...> - 2005-10-31 02:30:27
|
Hi Jan,
I've often run into the situation where I forget to use .next for a
variable, and it produces subtle errors that are hard to detect.
(eg. doing "count = (count + 1) % 2**COUNTER_WIDTH", rather than doing
"count.next = (count + 1) % 2**COUNTER_WIDTH)". I often slip up because
I'm very used to programming in C/C++ at work. I feel that myHDL should
flag this as an obvious error.
Thanks,
George
|