📄 oclk.v
字号:
module oclk(clk,rst,clkout); input clk,rst; output clkout; reg clkout; reg[15:0] clk_count; always @(posedge clk) begin if(!rst) clk_count<=0; else if(clk_count==16'h0fa0) clk_count<=0; else clk_count<=clk_count+1; end always @(posedge clk) begin if(!rst) clkout<=0; else if(clk_count<=16'h07d0) clkout<=0; else clkout<=1; end endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -