I googled the error, but I found nothing useful. The Verilog code:
`timescale 1us/1ns
module ShadyModule;
reg [3:0] num1,num2;
reg [4:0] res;
`include "ShadyTask.v"
initial
begin
num1 = 5;
num2 = 10;
$monitor ("num1= %d, num2=%d",num1,num2);
ShadyTask(num1,num2,res);
end
endmodule
The ShadyTask.v
file contains:
task ShadyTask;
input[3:0] num1,num2;
output[4:0] sum;
begin
sum = num1+num2;
end
endtask