AshkanYJM
Junior Member level 3
- Joined
- Aug 3, 2014
- Messages
- 25
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 3
- Activity points
- 262
Hi,
The verilog code below is a part of my project but i come upon errors when I run the program.
and here is the error I get :
ERROR:HDLCompilers:160 - "Multieffect.v" line 1713 Too few parameters passed to task 'echo'
I can't figure it out, What's the problem ?
The verilog code below is a part of my project but i come upon errors when I run the program.
Code:
module multieffect(Buff_Array,Audio_out,Clk);
input [11:0]Buff_Array;
input Clk;
output [11:0]Audio_out;
integer k;
task divide;
input [11:0] Buff_Array;
output [11:0] Buff_Array1;
assign Buff_Array1=Buff_Array>>1;
endtask
task echo;
input [11:0] Buff_Array,Buff_Array1;
input Clk;
output [11:0] Audio_out;
integer t;
forever @(posedge Clk)
begin
assign Audio_out=Buff_Array[0]+ divide(Buff_Array[t],Buff_Array1[t]);
end
endtask
.
.
.
echo(Buff_Array,Audio_out);
.
.
.
.
endmodule
and here is the error I get :
ERROR:HDLCompilers:160 - "Multieffect.v" line 1713 Too few parameters passed to task 'echo'
I can't figure it out, What's the problem ?