?? div_4.v
字號:
module div_4(clk50m,clk1_8m);
input clk50m;
output clk1_8m;
reg [12:0] acc ; // 13 bits total!
always @(posedge clk50m)
acc <= acc[11:0] + 151; // use only 12 bits from the previous result, but save the full 13 bits
wire clk1_8m = acc[12]; // so that the 13th bit is the carry-out
endmodule
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -