verilog 按键消抖:
//Button debounce 按键消抖
`timescale 1ns / 1ps
`define TIMEBNT 1_999_999
module Button_debounce(
input clock, //100MHz
input reset,
input BNT,
output reg bnt_valid //1 clock
);
localparam IDLE
verilog 按键消抖:
//Button debounce 按键消抖
`timescale 1ns / 1ps
`define TIMEBNT 1_999_999
module Button_debounce(
input clock, //100MHz
input reset,
input BNT,
output reg bnt_valid //1 clock
);
localparam IDLE