?? clk5.v
字號(hào):
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 10:44:28 09/06/06
// Design Name:
// Module Name: clk5
// Project Name:
// Target Device:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module clk5(clkfx,clk1);
input clkfx;
output clk1;
reg clk1;
reg[1:0] clks="00";
initial
begin
clks<=2'd0;
clk1<=0;
end
always@(posedge clkfx)
begin
clks<=clks+1;
begin
if (clks==2'd1)
begin
clk1<=~clk1;
clks<=2'd0;
end
end
end
endmodule
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -