A magnetic memory includes a plurality of magnetoresistive elements which include a fixed layer in which a magnetization direction is fixed, a free layer in which a magnetization direction changes, and a nonmagnetic layer formed between the fixed layer and the free layer, and a word line electrically connected to the magnetoresistive elements. A Test Signal can be generated in a mirror frequency and conveyed to the receiver. A particular function may be modeled using one or more logic gates depending on the number of inputs to the function. The first quantity and the second quantity are then compared for error detection. In case the particular encoded frame is detected to have been received after its scheduled decoding time and before the scheduled decoding time for the next encoded frame, the particular encoded frame is re-scheduled to be decoded at the scheduled decoding time for the next encoded frame.