task
// static task
task [name] (input [port_list], inout [port_list], output [port_list]);
begin
[statements]
end
endtask
// automatic task
task automatic [name] (input [port_list], inout [port_list], output [port_list]);
begin
[statements]
end
endtask
// Задача с пустым листом портов
task [name] ();
begin
[statements]
end
endtaskLast updated