How to manage an output to put only one "1" even when entry stay up?
A simpler solution would be to use an edge detect circuit such as that below. Note that you may also need to resynchronise the i_button1 input to avoid the flip flop going meta stable.







simulate this circuit &ndash; Schematic created using CircuitLab