中国大学MOO C: 描述下面代码的功能。module func (reset,clk,out);input clk,reset;output reg out;reg [2:0] count;always @(posedge clk, reset) begin if(~reset) begin count<=0; out<=0; end else begin if(count==5) begin count<=0; out<= ~out; end else count<=count+1; end endendmodule