clkdiv.v
来自「利用VERILOG编写的基于XILINX的SPARTAN板的VGA接口显示程序」· Verilog 代码 · 共 26 行
V
26 行
`timescale 1ns / 1psmodule clkdiv(clk, rst, clkout); input clk; input rst; output clkout; // wire clkout; reg [14:0] count16; always @(posedge clk or negedge rst) begin if(!rst) count16<=0; else begin if(count16==25000) count16<=0; else count16<=count16+1; end end assign clkout=count16[14];endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?