Altera_Forum
Honored Contributor
11 years agoHow fast can a FPGA sense?
I found a problem if i keep pressing and releasing the button.
I found that the FPGA get crazy, can't really follow the logic. So i think it's the problem of the duration time of the button at 1 or 0. In order word when the time of being button==0 or button==1 is too short, FPGA can't respond. So my question is how can i find out the reaction time of the FPGA, I need to find a precise time value. any one know? Thank you. Here is a really simple code for your understand. module simple(clk, button ,b); input button,clk; output b; always @ (posedge clk) if(button==1) begin b<=0; end else if (button==0) begin b<=1; end endmodule