To increment by 1 each time through the loop, use DATA_IN=DATA_IN+1 . Here is a self-contained example: module tb; reg [7:0] DATA_IN; ...
確定! 回上一頁