module LED(clk,reset,DATA,SCLH,SCLT,AB,SCK);
input clk,reset ;
output DATA ;
output SCLH ;
output SCLT ;
output AB ;
output SCK ;
reg DATA,SCLH,SCLT,AB,SCK;
reg [0:7]temp ;
reg [0:7] lhj [0:31];
integer i1;
reg[3:0] clk_count;
reg [31:0] counter;
reg shift;
always @(posedge clk or negedge reset)
begin
integer i,ia,j;
chushihua(DATA,SCLH,SCLT,AB,SCK);
lhj[0] = 8'h00;
lhj[1] = 8'h00;
lhj[2] = 8'h00;
lhj[3] = 8'h08;
lhj[4]=8'h7F;lhj[5]=8'hFC;lhj[6]=8'h01;lhj[7]=8'h00;
lhj[8]=8'h01;lhj[9]=8'h00;lhj[10]=8'h01;lhj[11]=8'h00;
lhj[12]=8'h01;lhj[13]=8'h00;lhj[14]=8'h01;lhj[15]=8'h00;
lhj[16]=8'h01;lhj[17]=8'h00;lhj[18]=8'h01;lhj[19]=8'h00;
lhj[20]=8'h01;lhj[21]=8'h00;lhj[22]=8'h01;lhj[23]=8'h00;
lhj[24]=8'h01;lhj[25]=8'h04;lhj[26]=8'hFF;lhj[27]=8'hFE;
lhj[28]=8'h00;lhj[29]=8'h00;lhj[30]=8'h00;lhj[31]=8'h00;
for(i=0;i<16;i=i+1)
begin
SCLH=1'h0;
SCK =1'h0;
ia=1;
for(ia=1;ia>=0;ia=ia-1 );
begin
temp=~lhj[i*2+ia] ;
for(j=0;j<8;j=j+1);
begin
SCLH=0;
DATA=temp && 8'b00000001;
temp=temp>>1;
SCLH=0;
end
end
SCK=0;
SCLT=0;
AB=0;
end
j=64;
while(j>0);
begin
j=j-1;
SCK=0;
end
SCK=0;
end
/******************************************************/
/******************************************************/
/******************************************************/
task chushihua;
output DATA_1,SCLH_1,SCLT_1,AB_1,SCK_1;
SCLH_1=1'd1;
DATA_1=1'd1;
SCLT_1=1'd1;
AB_1=1'd1;
SCK_1=1'd1;
AB_1=1'h0;
endtask
endmodule
怎么该啊?具体点好吗?