reg [7:0] count = 8'ff;always@(posedge clk) begin if(count == 0) count <= 0;else count <= count - 1;end 加个条件计数到0时 保持为0给你写一下