请问如下设计实现什么功能啊?急啊!!!!!!!!!!!!!!!!!!!!!
SUBDESIGN debounce
(
clk :input;
key_pressed:input;
pulse:output;
)
variable
count_reg[7..0]:dff;
at_zero:node;
begin
count_reg[].clk=clk;
count_reg[].prn=key_pressed;
count_reg[].d=count_reg[].q-(0,!at_zero);
% emit single pulse when counter reach 1.%
pulse =count_reg[].q==h"01";
% don't let counter decrement below zero.%
at_zero=count_reg[].q==h"00";
end;