Working ps2 decoder and cpld-avr protocol