मैं पढ़ रहा हूँ किसी तीसरे पक्ष Verilog, और यह पाया:"सादे" स्टार्ट-एंड ब्लॉक का बिंदु क्या है?
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' अब एक' function' या SystemVerilog में कई बयानों के साथ 'task' लिए आवश्यक है। अन्य उत्तरों देखें। –