if(!rst_n)
end_flag <= 1'b1;
else
begin
if(count == 8'd0)
begin
as1_dataa <= x1; //加法器1的加数a
as1_datab <= y1; //加法器1的加数b
as1_sub <= 1'b1; //加法操作
end
if(count == 8'd4)
begin
z1 <= as1_result; //x1 + y1 保存到z
end
if(count == 8'd8)
begin
as1_dataa <= x1; //把x1再次给加法器的加数a
as1_datab <= z1; //把z1再次给加法器的加数b
as1_sub <= 1'b1;
end
if(count == 8'd20)
begin
z2 <= as2_result; //x1+z1保存到z2中
end
else
begin
end
end
end