考虑如下代码:
reg [2:0] cnt;
// a is an input (say 4 bit) to design and being assigned after some manipulation
// to some other variable
always @(a)
for (cnt = 0; cnt < 4; cnt = cnt+1) begin
//some operation involving a [bitwise]
end
现在你可以看到我没有将cnt包含在always块的事件列表中,因为cnt没有在always块之外引用/分配,并且完全通过for循环迭代
我的问题是我应该在事件列表上有 cnt 吗?