Verilog Task and Function
Verilog Task and Function
• Calling a function
function_name (<expression_1>,<expression_2>….);
(note : while calling a function order of arguments must be same
as given while declaring a function)
• Synthesizable.
Continue….
Copyrights ©2015 - www.indicustechnology.com
Task
• Syntax :
task task_name (input/inout/output arguments );
begin
task_body;
end
endtask
• Calling a task
task_name (<expression_1>,<expression_2>….);
(note : while calling a task order of arguments must be same
as given while declaring a task)
Questions ??