Patent ID: 8867289

Claim:
A chip with an embedded non-volatile memory, comprising: a processor; a logic circuit, electrically connected to the processor; a remapping circuit, electrically connected with the processor; a non-volatile memory, electrically connected to the processor and the remapping circuit, having a test area and an area under test, the test area storing a test program, the area under test storing data under test; and a digital signature check circuit, electrically connected to the non-volatile memory and the processor, for checking whether a program code of the test program in the test area is correct; wherein, when the processor tests the chip, the processor outputs an original instruction address, the remapping circuit remaps the original instruction address to generate a remapped instruction address, and the processor reads and executes the test program in the test area according to the remapped instruction address to read the data under test in the area under test and to perform a test of toggling the logic circuit.