私はいくつかのサードパーティのVerilogを読み取り、これを見つけたよ:「プレーンな」begin-endブロックのポイントは何ですか?
function [31:0] factorial;
input [3:0] operand;
reg [3:0] index;
begin
factorial = operand ? 1 : 0;
for(index = 2; index <= operand; index = index + 1)
factorial = index * factorial;
end
endfunction
begin
とend
キーワードはここで重複しているようです。彼らは?彼らの使用は何ですか?
は、 '始める/ end'はもはやSystemVerilogの中に複数のステートメントを持つ' function'または 'task'のために必要とされません。他の答えを見てください。 –