📄 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 + -