refactor: 刪除不必要的除頻器

This commit is contained in:
snsd0805 2021-01-10 00:07:19 +08:00
parent 3f368c63aa
commit 462bd94a2a

View File

@ -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