各位帮我看一下 ,我想用任务实现一个重复使用的分频,但综合时总时通不过
module vsp(clk,io_slk);
input clk;
output io_slk;
reg tasksclk;
my_task(clk,tashsclk);
task my_task;
input task_clk;
output task_sclk;
reg[3:0] count;
always @ (posedge task_clk) begin
count<=count+1'b1;
if(count==4'b1111) begin
count<=4'b0;
task_sclk<=~task_sclk;
end
end
endtask
assign io_slk=tasksclk;
endmodule
[ 本帖最后由 zzlthuscu 于 2008-9-4 20:34 编辑 ]


