refactor: 刪除不必要的除頻器
This commit is contained in:
parent
3f368c63aa
commit
462bd94a2a
15
FPGA_FINAL.v
15
FPGA_FINAL.v
@ -196,18 +196,3 @@ module buttondivfreq(input CLK, output reg CLK_div);
|
|||||||
end
|
end
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
|
||||||
// 球 飛行用的除頻器
|
|
||||||
module balldivfreq(input CLK, output reg CLK_div);
|
|
||||||
reg[26:0] Count;
|
|
||||||
always @(posedge CLK)
|
|
||||||
begin
|
|
||||||
if(Count>10000000)
|
|
||||||
begin
|
|
||||||
Count <= 27'b0;
|
|
||||||
CLK_div <= ~CLK_div;
|
|
||||||
end
|
|
||||||
else
|
|
||||||
Count <= Count + 1'b1;
|
|
||||||
end
|
|
||||||
endmodule
|
|
||||||
Loading…
Reference in New Issue
Block a user