fpga: lib: simplify timing in pulse stretch
Original-commit: 2a3520b068456f1fdd291d4f8b0165e435a21757
This commit is contained in:
@@ -66,10 +66,9 @@ module pulse_stretch #(
|
|||||||
end
|
end
|
||||||
|
|
||||||
1'b1: begin
|
1'b1: begin
|
||||||
|
count <= count + 1'b1;
|
||||||
if (count == SCALE)
|
if (count == SCALE)
|
||||||
state <= 1'b0;
|
state <= 1'b0;
|
||||||
else
|
|
||||||
count <= count + 1'b1;
|
|
||||||
end
|
end
|
||||||
endcase
|
endcase
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user