The invention belongs to PCIe equipment, and relates to an NVMe controller and an initialization and data read-write method thereof, and the NVMe controller comprises a PCIe module with a DMA unit, an address translation unit ATU module, an SRAM and an equipment CPU. According to the invention, an SRAM (
Static Random Access Memory) replaces an NVMe hardware
control register, the space content of the SRAM is polled to obtain the change information of the register and send the change information to different modules for
processing, and after the controller is polled and the register senses the change, the operations of initialization, resetting and the like are carried out; and after the
polling doorbell register senses the change, a host storage command is obtained through the DMA unit, command analysis is performed, and the command is sent to other modules for
processing. According to the method, special hardware design and
verification are not needed, the development cost and time are reduced, the possibility of hardware fault points and hardware errors is reduced, the complexity of the
system is simplified, and the NVMe controller is easy to modify and low in maintenance and updating cost; the method does not need to develop a host end drive program, and the development
workload is small.