Debouncer v2

I read that one can erase the branding on products by using a sugar cube and a bit f saliva (I’m guessing the saliva part). This came handy when I got a free 128MB USB key in a DVD-R pack.

This is the key in it’s original state.

By rubbing a cube of sugar (lubricated with some handy saliva), diet patient I easily removed the branding without scratching the plastic.After a bit of cleaning I go a nice USB key without any branding and o traces of saliva.


I read that one can erase the branding on products by using a sugar cube and a bit f saliva (I’m guessing the saliva part). This came handy when I got a free 128MB USB key in a DVD-R pack.

This is the key in it’s original state.

By rubbing a cube of sugar (lubricated with some handy saliva), patient I easily removed the branding without scratching the plastic.After a bit of cleaning I go a nice USB key without any branding and o traces of saliva.


I wrote a quick debouncer code in VHDL that I thought people could enjoy and may be useful for FPGA projects. For more info on debouncers see this post.

As shown in the block diagram below, pharm it takes as inputs a switch signal (SW_IN) and a clock signal (CLK) and outputs a signal SIG.

When SW_IN goes high, doctor the module outputs a once-clock-cycle wide pulse on the next clock rising edge. Then it waits for 8388607 clock cycles (~ 0.17 s when clocked @ 50MHz). This is illustrated in the state transition diagram below.

You can download the code here.

Leave a Comment

Your email address will not be published. Required fields are marked *