debounce.fit.eqn

来自「4X4keypad的防抖动模块」· EQN 代码 · 共 51 行

EQN
51
字号
--p_state[0] is p_state[0] at LC3_1_Q1
--operation mode is normal

p_state[0]_lut_out = done & !p_state[0] & (SW $ !p_state[1]) # !done & (SW $ !p_state[1]);
p_state[0] = DFFE(p_state[0]_lut_out, GLOBAL(clk), GLOBAL(reset), , );


--p_state[1] is p_state[1] at LC5_1_Q1
--operation mode is normal

p_state[1]_lut_out = p_state[1] $ (done & p_state[0]);
p_state[1] = DFFE(p_state[1]_lut_out, GLOBAL(clk), GLOBAL(reset), , );


--SW is SW at PIN_N1
--operation mode is input

SW = INPUT();


--done is done at PIN_U5
--operation mode is input

done = INPUT();


--clk is clk at PIN_N4
--operation mode is input

clk = INPUT();


--reset is reset at PIN_F12
--operation mode is input

reset = INPUT();


--START is START at PIN_M3
--operation mode is output

START = OUTPUT(p_state[0]);


--SWdown is SWdown at PIN_J5
--operation mode is output

SWdown = OUTPUT(!p_state[1]);


⌨️ 快捷键说明

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