processing input clock signal