The invention discloses an automatic identification method for a memory and a power supply, and relates to the technical field of memories and power supplies, and the automatic identification method for the memory and the power supply comprises the following steps: step 1, identifying the DDR type of the memory, step 2, identifying the capacity of the memory, step 3, testing the
voltage, and step 4, detecting the
voltage of a
BIOS (Basic Input / Output
System). The first step is that
Bios corresponds to the pasted DDR types by detecting GP200 states of a CPU (
Central Processing Unit), the GP20 states comprise GP20, GP201, GP202, GP203, GP204, GP205, GP206, GP207 and GP208, the eight GP20 states correspond to 256 DDR types, and the second step is that according to the maximum memory capacity of the DDR, sorting is carried out according to ROW /
BANK / COL DDR physical addresses. According to the method, computer
BIOS software is unified into one version, so that the memory size, the
memory working frequency and the internal structure can be automatically identified under the condition that hardware memories are not unified, a
client can conveniently maintain a
machine, and the problem that the
client is difficult to maintain the
machine is solved.