Design and implementation of a IRIG-B signal decoder