kjm
Junior Member level 1
Hi,
I am trying to include "tasks.v" file in my testbench file "tb_data.v" . after reg,wire and parameter declarations, I have include this file ('include "tasks.v"). But it is giving error (expecting the keyword 'module', 'macromodule' or 'primitive'[A.1].).
the tasks.v file looks like this:
task prep_req;
begin
request <= 1'b1;
@(posedge i_SymbolClk)
request <= 1'b0;
end
endtask // prep_req
There are other similar tasks like this in "tasks.v" file. Both the files (testbench + tasks) are in same folder. Please help.
Thanks
I am trying to include "tasks.v" file in my testbench file "tb_data.v" . after reg,wire and parameter declarations, I have include this file ('include "tasks.v"). But it is giving error (expecting the keyword 'module', 'macromodule' or 'primitive'[A.1].).
the tasks.v file looks like this:
task prep_req;
begin
request <= 1'b1;
@(posedge i_SymbolClk)
request <= 1'b0;
end
endtask // prep_req
There are other similar tasks like this in "tasks.v" file. Both the files (testbench + tasks) are in same folder. Please help.
Thanks