在一個模塊:Verilog的:使用REG作爲計數器for循環
reg a, b;
integer i, j;
initial
begin
for (a = 0; a < 2; a = a + 1)
//some code
end
教科書說,這是不正確的擺脫整數我和Ĵ和使用REG 一個和b直接作爲循環計數器。提示:reg變量具有固定的大小,因此它們會自動換行。
這是什麼意思?整數是否也有固定大小?什麼是包裝?
在一個模塊:Verilog的:使用REG作爲計數器for循環
reg a, b;
integer i, j;
initial
begin
for (a = 0; a < 2; a = a + 1)
//some code
end
教科書說,這是不正確的擺脫整數我和Ĵ和使用REG 一個和b直接作爲循環計數器。提示:reg變量具有固定的大小,因此它們會自動換行。
這是什麼意思?整數是否也有固定大小?什麼是包裝?
https://www.google.co.uk/search?q=integer+wrapping –