debounce.v

来自「ise9.1官方的使用手册中配套用的fpga入门代码」· Verilog 代码 · 共 31 行

V
31
字号
`timescale 1ns / 1ps////////////////////////////////////////////////////////////////////////////////// Company: 		 Xilinx//// Create Date:    11:03:45 03/05/07// Design Name:    Stopwatch// Module Name:    debounce// Project Name:   ISE In Depth Tutorial// Target Device:  xc3sA700-4fg484// Tool versions:  ISE 9.1i// ////////////////////////////////////////////////////////////////////////////////module debounce(sig_in, clk, sig_out);  input sig_in;  input clk;  output sig_out;   reg [2:0] q;

   always @ (posedge clk)

         q <= {q[1:0], sig_in};

   assign sig_out = q[0] & q[1] & !q[2];endmodule


								

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?