WO2009115058A1 - Mainboard for providing flash storage function and storage method thereof - Google Patents

Mainboard for providing flash storage function and storage method thereof Download PDF

Info

Publication number
WO2009115058A1
WO2009115058A1 PCT/CN2009/070945 CN2009070945W WO2009115058A1 WO 2009115058 A1 WO2009115058 A1 WO 2009115058A1 CN 2009070945 W CN2009070945 W CN 2009070945W WO 2009115058 A1 WO2009115058 A1 WO 2009115058A1
Authority
WO
WIPO (PCT)
Prior art keywords
flash
flash memory
controller
access controller
memory unit
Prior art date
Application number
PCT/CN2009/070945
Other languages
French (fr)
Chinese (zh)
Inventor
林松
Original Assignee
深圳市朗科科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市朗科科技股份有限公司 filed Critical 深圳市朗科科技股份有限公司
Publication of WO2009115058A1 publication Critical patent/WO2009115058A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • Main board providing flash storage function and storage method thereof
  • the present application relates to a computer structural component, and in particular to a computer motherboard.
  • the current computer system data storage core is mainly a traditional hard disk.
  • the traditional hard disk uses a disk as a storage medium to perform various operations on the disk through a magnetic head.
  • the existing hard disk is bulky, and because it has mechanical parts such as a motor and a magnetic head therein, it is poor in shock resistance and easily damaged, resulting in loss of data; and still requires dedicated SCSI (Small Computer System Interface)
  • SATA Serial Advanced Technology Attachment
  • PATA Parallel Advanced Technology Attachment
  • Hard disk interface connection works. Because traditional hard disk is used, a power cable and a data cable need to be connected to the motherboard.
  • the motherboard is connected to the CPU module and memory through the memory control module and input/output control on the motherboard.
  • the module performs communication control, so the connection is complicated and it is not convenient to disassemble.
  • Disk which uses a flash memory instead of a magnet as a storage medium.
  • the hard disk contains a storage controller, a storage medium, a cache, etc., but the interface and installation method are the same as those of a conventional hard disk. Still complicated, the connection is still inconvenient.
  • the technical problem to be solved by the present application is to provide a motherboard capable of providing a flash memory storage function.
  • a motherboard that provides a flash memory function includes an input/output control module, and further includes:
  • Flash memory unit integrated on the motherboard for storing data
  • a flash controller coupled to the flash memory unit, the flash controller capable of receiving an instruction from the input/output control module, and controlling the flash memory unit according to the received instruction;
  • a direct memory access controller coupled to the flash controller, the direct memory access controller being capable of receiving an instruction from the input/output control module and cooperating with the flash controller according to the received instruction Controlling the flash storage unit;
  • a cache connected to the direct memory access controller, and implementing communication with the flash memory unit in accordance with control of the direct memory access controller and the flash controller.
  • a motherboard that provides a flash memory function includes an input/output control module, and further includes:
  • Flash memory unit communication interface capable of connecting to a flash memory unit
  • a flash controller communicatively coupled to the flash memory unit, the flash controller being capable of receiving an instruction from the input/output control module and controlling and communicating with the flash memory unit communication interface according to the received command a flash memory storage unit connected to the flash memory unit communication interface;
  • a direct memory access controller coupled to the flash controller, the direct memory access controller being capable of receiving an instruction from the input/output control module and cooperating with the flash controller according to the received command
  • the flash memory unit communication interface controls a flash memory unit connected to the flash memory unit communication interface
  • a cache connected to the direct memory access controller, and configured to communicate with the flash memory unit through the flash memory unit communication interface according to the direct memory access controller and the control of the flash controller Communication between flash memory cells connected to the interface.
  • the present application further provides a flash memory storage unit for use with the motherboard in another embodiment, wherein the flash memory storage unit includes a flash memory storage module and a communication interface, and the communication interface is coupled to the flash memory storage unit.
  • the present application also provides a reading method for realizing data communication control based on an integrated flash memory unit, comprising the following steps:
  • the direct memory access controller and the flash controller receive read control commands
  • the flash controller controls the flash storage unit to send data to the cache
  • the direct memory access controller controls the cache to send data to memory.
  • the present application further provides a writing method for realizing data communication control based on an integrated flash memory unit, characterized in that it comprises the following steps:
  • the memory access controller and flash controller receive write control commands
  • the direct memory access controller controls the data to be written from memory to the cache; [26] The flash controller allocates an address to the flash memory unit;
  • the flash controller writes the data in the cache to the flash memory location.
  • the flash memory is used as a storage unit of the computer by using the flash memory as a storage medium, which has the advantages of fast read/write speed, good shock resistance and low power consumption.
  • the flash memory is directly integrated into the main board, which simplifies the circuit and reduces the size and weight of the main board. Depending on the characteristics of the flash itself, this flash memory unit is faster than the hard disk, consumes less power and is more secure.
  • FIG. 1 is a structural diagram of a main board providing a flash memory storage function according to a first embodiment of the present application
  • FIG. 2 is a schematic diagram of a working principle of a motherboard providing a flash memory storage function according to a first embodiment of the present application
  • FIG. 3 is a structural diagram of a main board providing a flash memory storage function according to a second embodiment of the present application.
  • FIG. 4 is a schematic diagram of a working principle of a motherboard providing a flash memory storage function according to first and second embodiments of the present application;
  • FIG. 5 is a structural diagram of a main board providing a flash memory storage function according to a third embodiment of the present application.
  • FIG. 6 is a schematic diagram of a working principle of a motherboard providing a flash memory storage function according to a third embodiment of the present application.
  • FIG. 7 is a structural diagram of a main board providing a flash memory storage function according to a fourth embodiment of the present application.
  • FIG. 8 is a working principle diagram of a motherboard algorithm for providing a flash memory storage function according to third and fourth embodiments of the present application;
  • FIG. 9 is a schematic structural diagram of a flash memory storage unit according to a fifth embodiment of the present application.
  • FIG. 10 is a cascading block diagram of a flash memory chip in a flash memory storage unit according to a fifth embodiment of the present application.
  • FIG. 11 is a flowchart of a reading method according to a sixth embodiment of the present application.
  • FIG. 12 is a flowchart of a reading method according to a seventh embodiment of the present application.
  • FIG. 13 is a flowchart of a writing method according to an eighth embodiment of the present application.
  • FIG. 14 is a flow chart of a writing method according to a ninth embodiment of the present application.
  • FIG. 1 shows a main board providing a flash memory storage function, which is connected to the CPU module 6 and the memory 7.
  • the main board includes a memory control module 12 and an input/output control module 1. Also includes:
  • Flash memory unit 10 integrated on the motherboard for storing data
  • the flash controller 2 is connected to the flash memory unit 10, receives an instruction of the input/output control module, and controls the flash memory unit 10;
  • DMA Direct Memory Access Controller
  • the input/output control module 1 on the main board communicates with the CPU module 6 through the memory control module 12 to realize control of the input/output bus.
  • the CPU module 6 is generally composed of a logical operation unit, a control unit, and a storage unit. Included in the logic operation and control unit are registers for the temporary storage of data by the CPU module 6 during processing of the data.
  • the CPU module 6 is generally implemented by mounting the CPU in a CPU socket provided on the main board. Alternatively, the CPU module 6 may also be a CPU integrated on the main board.
  • the memory control module 12 is an important component of the main function of the motherboard chipset.
  • the memory control module 12 is connected to the CPU module 6 and controls the memory 7.
  • the AGP data graphics acceleration interface data
  • the Northbridge chip of the integrated chipset also integrates the display core for the type and frequency of the CPU module 6, the front-side bus frequency of the system, the type and maximum capacity of the memory, the AGP slot, and the ECC error correction. Mainly responsible
  • Flash controller 2 controls communication between flash memory unit 10 and input/output control module 1 and direct memory access controller 3.
  • Direct Memory Access Controller 3 Controls the direct reading and writing of data between external devices and memory without the intervention of CPU module 6.
  • the CPU module 6 can handle other tasks during the data transfer.
  • both the CPU module 6 and the input/output control module 1 operate in parallel. Therefore, the CPU resources are saved, and the efficiency of the entire computer system is greatly improved.
  • Direct memory access controller 3 includes main memory address register, data quantity counter Direct Z memory logic for direct memory access, direct memory access request trigger, data buffer register, interrupt mechanism.
  • the direct memory access controller 3 works in the following three ways: 1. Stop the CPU module 6 from accessing the memory 7: When the external device requests to transfer a batch of data, the direct memory access controller 3 sends a signal to the CPU module. 6. The direct memory access control device 3 starts the data transfer after obtaining the bus control. After a batch of data has been transferred, the direct memory access controller 3 notifies the CPU module 6 that the memory 7 can be used and the bus control is returned to the CPU module 6. 2. Cycle stealing: When the external device does not have a direct memory access request, the CPU module 6 accesses the memory as required by the program.
  • the I/O device steals one or several cycles.
  • Direct memory access controller 3 and CPU module 6 alternate access: One CPU cycle can be divided into 2 cycles, one for direct memory access controller 3 access, and the other for CPU module 6 access. The application, establishment and return process of bus usage rights is not required.
  • the flash memory unit 10 is integrated on the main board. Due to the improvement of the manufacturing process, the size of the flash memory chip has become smaller and smaller, and since the present embodiment eliminates the relevant functions of the hard disk interface and the hard disk interface on the main board, Integrating the flash chip on the motherboard provides plenty of room.
  • the flash memory unit 10 may include a single chip flash chip or or include at least two flash chips that are cascaded with each other. At present, the capacity of a single-chip flash chip can reach 16GB, but it still cannot meet the requirements of computer storage. This requires cascading to expand the overall capacity of the flash storage unit.
  • a K9GCG08U1M flash chip is used as an example to illustrate a two-channel 8-chip flash chip cascading method, thus constructing a 64GB flash memory cell.
  • the cascading manner of the flash chips in the flash memory unit includes the method shown in Fig. 10, but is not limited thereto. It can be cascaded with more flash chips, or even with four channels.
  • FIG. 2 is a schematic diagram showing the operation of a motherboard providing a flash memory storage function according to a first embodiment of the present application.
  • the CPU module 6 performs a write operation to the flash memory unit 10, and the CPU module 6 sends a control command to the direct memory access controller 3 and the flash controller 2 through the memory control module 12 and the input/output control module 1.
  • the control commands are transferred from the direct memory access controller 3 to the cache 5.
  • the flash controller 2 determines whether a write operation can be performed on the flash memory unit 10, and allocates an address for the data to be written, and then transmits the data in the cache 5 to the flash memory unit 10; the CPU module 6 pairs the flash memory
  • the memory unit 10 performs a read operation, and sends a read command to the direct memory access controller 3 and the flash controller 2,
  • the memory controller 2 reads data from the flash memory unit 10 and transfers it to the cache 5.
  • the data in the buffer 5 is sent to the CPU module 6 through the memory 7 under the control of the direct memory access controller.
  • the first embodiment achieves an alternative to the existing hard disk interface and hard disk by the above manner.
  • the flash controller, direct memory access controller, and cache can be integrated into one IC chip.
  • FIG. 3 illustrates a motherboard structure providing a flash memory storage function according to a second embodiment of the present application.
  • the flash memory control chip built in the input/output control module communicates with the flash memory storage unit on the main board to realize data writing, reading, erasing, and the like to the flash memory unit.
  • the flash controller 2, the direct memory access controller 3, and/or the cache 5 are built into the input/output control module 1. Also, a flash communication interface (not shown) is provided on the input/output control module 1.
  • the input/output control module with the flash controller 2, the direct memory access controller 3, and the cache 5 enables control and communication of the flash memory unit 10 through the flash communication interface.
  • the principles of specific control and communication are the same as those of the first embodiment and will not be repeated here. This design saves the number of chips that need to be placed on the motherboard and simplifies the wiring.
  • the motherboard with the flash memory unit directly integrates the flash memory unit on the motherboard by using the motherboard space, and directly connects to the flash controller for data transmission, eliminating the need for The communication interface between the flash memory unit and the flash controller simplifies the connection structure of the motherboard.
  • an algorithm for controlling data read and write of the flash memory storage unit may be added in the operating system 8.
  • the mapping algorithm 81, the equalization algorithm 82, the ECC algorithm 83, and the like may be added in the operating system 8.
  • Mapping algorithm 81 used to manage physical blocks in flash memory. For example, NAND
  • the memory cells contained in the flash memory operate in the basic unit of page and block, and there is no guarantee that each physical block can be used normally after leaving the factory. Therefore, you need to ensure that the data is stored in a physical block that is working properly.
  • the mapping algorithm implements an effective mapping between the logical address of the logical block in the flash memory and the physical address of the physical block, ensuring that each logical block of the read and write data can correspond to a defect-free physical block to ensure data reliability and integrity.
  • the equalization algorithm 82 is used to balance the read and write probabilities of logical addresses of logical blocks in the flash memory to improve the lifetime of the flash memory. [67] Error checking and error correction (Error cheching and
  • ECC Algorithm 83 used to detect and correct errors in the flash memory to store read data, control bit error ratio.
  • flash controllers like flash drives, MP3 controllers
  • ECC algorithms are implemented in firmware due to limited computing power.
  • the ECC algorithm can be included in the operating system, so that the algorithm can be upgraded by upgrading the operating system.
  • the latest technology flash memory can be supported without changing the hardware structure of the motherboard.
  • FIG. 5 is a structural diagram of a motherboard with a flash memory function provided by a third embodiment of the present application.
  • the motherboard is connected to the CPU module 6 and the memory 7.
  • the motherboard includes a memory control module 12 and an input/output control module 1, which also includes:
  • the flash memory unit interface 4 is integrated on the motherboard and can be connected to a flash memory unit (not shown); [70] the flash controller 2 is connected to the flash memory unit interface 4, and receives the input/output control module 1 An instruction to control the flash memory unit through the flash memory unit interface 4;
  • Direct memory access controller 3 connected to the flash controller 2 and receives the instruction of the input/output control module 1, and the flash memory controller 2 controls the flash memory unit through the flash memory unit interface 4;
  • Cache 5 Connect the direct memory access controller 3, communicate with the flash memory unit via the flash memory unit interface 4.
  • the input/output control module on the main board communicates with the CPU module 6 via the memory control module 12 to control the input/output bus.
  • the CPU module 6 is generally implemented by mounting the CPU in a CPU socket provided on the main board. Alternatively, the CPU module 6 may also be a CPU integrated on the main board.
  • the memory control module 12 is connected to the CPU module 6 and controls the memory 7.
  • Memory control module 12 is mainly responsible
  • the flash controller 2 controls the communication between the flash memory unit and the input/output control module 1 and the direct memory access controller 3 via the flash memory unit interface 4.
  • the flash memory cell interface 4 includes a data bus 41 and a control bus 42:
  • the data bus 41 can be 8-bit, 16-bit, 32-bit or 64-bit, etc., can support 8/16-bit flash memory cells, and can realize single channel, Dual or even four channels;
  • control bus 42 may include RE#, WE#, ALE, CLE, WP#, RB, and several CE# Signals, etc.
  • Direct Memory Access Controller 3 Controls direct reading and writing of data between external devices and memory, neither through CPU module 6 nor CPU module 6 intervention.
  • the CPU module 6 can perform other operations during the transmission except for some processing at the beginning and end of data transmission.
  • the CPU module 6 and the input/output control module 1 are operated in parallel. Therefore, the efficiency of the entire computer system is greatly improved.
  • Direct Memory Access Controller 3 includes main memory address register, data quantity counter
  • Direct memory access control Z-state logic direct memory access request trigger, data buffer register, interrupt mechanism.
  • FIG. 6 shows a schematic diagram of a flash memory unit (not shown) communicating with the CPU module 6 via the flash memory unit interface 4.
  • the CPU module 6 writes the flash memory cell through the flash memory cell interface 4, and the CPU module 6 sends a write command to the direct memory access controller 3 and the flash controller 2, thereby drawing the data to be written from the memory.
  • the flash controller 2 determines whether the flash memory storage unit 10 connected to the flash memory cell interface 4 can be written, and allocates an address for the data to be written, and then caches 5
  • the middle data is sent to the flash memory unit 10 through the flash memory unit interface 4;
  • the CPU module 6 reads the flash memory unit 10 through the flash memory unit interface 4, and the CPU module 6 sends a read command to the direct memory access controller 3 and the flash memory.
  • the controller 2, the flash controller 2 reads the data in the flash storage unit through the flash storage unit interface 4, and transfers it to the cache 5, and the data in the cache 5 is then sent to the CPU module 6 through the memory 7.
  • an alternative to an existing hard disk interface is realized by the flash controller 2, the direct memory access controller 3, the cache 5, and the flash memory unit interface 4, wherein the flash controller 2
  • the direct memory access controller 3, and the cache 5 can be integrated in one IC chip.
  • the flash controller 2, the direct memory access controller 3, and/or the cache 5 are built into the input/output control module 1. And a flash interface (not shown) is provided on the input/output control module 1.
  • the input/output control module 1 with the flash controller 2, the direct memory access controller 3, and the cache 5 is connected to the flash memory control interface 4 through a flash interface, thereby realizing communication with the flash memory, and the principle and data transmission thereof
  • the three implementations are the same and will not be repeated here. This design saves the number of chips that need to be placed on the motherboard and simplifies the wiring.
  • the algorithm such as: mapping algorithm 81, equalization algorithm 82, error checking and correcting (ECC) algorithm 83, and the like.
  • the motherboard provided in the third and fourth embodiments described above integrates the flash controller and the direct memory access controller and the cache on the main board, compared with the existing hard disk in which the flash chip is used as the storage medium instead of the magnet. Since the hard disk is a component that needs to be added or replaced as a function of capacity or quality among the various components inside the computer, the flash controller and the direct memory access controller and the cache are placed in the hard disk, and each hard disk is added. Cost, and the integration of the flash controller and direct memory access controller with the cache on the motherboard will reduce the cost of adding and replacing memory, and there is no need for flash controllers and direct memory access control in the flash memory cells used with it. There is also a cache, so the fifth embodiment below provides a flash memory unit for use with the motherboard with flash memory of the present embodiment.
  • FIG. 9 is a schematic structural diagram of the flash memory storage unit 9 provided by the present application.
  • the storage unit 9 includes a flash memory 910 and a communication interface 920.
  • the communication interface 920 can cooperate with the flash storage control interface 4 provided in the third or fourth embodiment. Data operations within flash memory 910 are transmitted over communication interface 920.
  • the flash memory 910 may include a single flash chip or include at least two flash chips that are cascaded with each other.
  • the cascading mode may employ the cascading mode described above with reference to FIG. 10 according to the first embodiment of the present application.
  • the communication interface 920 bus includes a data bus 921 and a control bus 922, and the data bus 921 can be 8-bit, 16-bit, 32-bit or 64-bit, etc., can support 8/16-bit flash memory cells, and can realize single channel, Dual or even four channels;
  • Control Bus 922 may include RE#, WE#, ALE, CLE, WP#, RB, and several. 5# signal, etc.
  • the specification of the data bus of the communication interface of the flash memory unit provided by the fifth embodiment and the signal of the control bus are both the specifications of the bus of the communication interface of the motherboard with the flash memory in the third and fourth embodiments. It is consistent with the signal of the control bus. After the connection is made, communication can be performed.
  • the flash memory unit is also The simple structure reduces the cost of use.
  • the sixth embodiment provides a reading method for implementing data communication control based on a main board with a flash memory unit.
  • the transmission relationship of each component is as shown in FIG. 2.
  • the reading method includes the following steps: [89] S110, the direct memory access controller and the flash controller receive the read control command;
  • the flash controller controls the flash storage unit to send data to the cache
  • the direct memory access controller controls the cache to send data to the memory.
  • the seventh embodiment further includes a read data error detection and error correction (ECC) step 1301 after the direct memory access controller of the sixth embodiment controls the buffer to send data to the memory step.
  • ECC read data error detection and error correction
  • ECC algorithms are implemented in firmware due to limited computing power. It is also possible to include the ECC algorithm in the operating system based on the powerful computing power of the computer CPU, so that the algorithm can be upgraded by upgrading the operating system. This allows the latest technology flash memory to be supported without re-masking.
  • the eighth embodiment provides a reading method for implementing data communication control based on a main board with a flash memory unit.
  • the transmission relationship of each component is as shown in FIG. 2.
  • the reading step includes the following steps:
  • the step in the steps consists of the following steps:
  • the direct memory access controller controls the data to be written from the memory to the cache
  • the flash controller allocates an address to the flash storage unit
  • the above method implements data communication control of a motherboard based on a flash memory unit, but in the communication process, due to data errors and the quality of the flash memory unit, the quality of the data communication is affected, so on the basis of the sixth embodiment.
  • a seventh embodiment is proposed.
  • the ninth embodiment further includes: before the allocation of the address to the flash memory unit by the flash controller in the eighth embodiment, the address mapping step 2301 of ensuring that the read/write data corresponds to the physical block without defects.
  • the mapping step 2301 implements an effective mapping between the logical block address and the physical block address in the flash memory by the mapping algorithm, and ensures that each logical block of the read and write data can correspond to a defect-free physical block to ensure data reliability and integrity.

Abstract

A mainboard for providing flash memory function and storing method thereof. The mainboard comprises an input/output module, and also comprises: a flash memory unit, which is integrated in the mainboard and used for storing data; a flash memory controller, which connects with the flash memory unit and can receive instructions from the input/output control module, and control the flash memory unit; a direct memory access controller, which connects with the flash memory controller, and cooperates with the flash memory controller to control the flash memory unit; a buffer, which connects with the direct memory access controller, and can communicates with the flash memory unit.

Description

提供闪存存储功能的主板及其存储方法  Main board providing flash storage function and storage method thereof
[1] 技术领域  [1] Technical field
[2] 本申请涉及一种计算机结构部件, 特别涉及一种计算机主板。  [2] The present application relates to a computer structural component, and in particular to a computer motherboard.
[3] 背景技术  [3] Background Art
[4] 现在的计算机系统数据存储核心主要是传统硬盘, 传统硬盘使用磁盘为存储介 质, 通过磁头对磁盘进行各项操作。 现有的硬盘体积较大, 并且由于其内部有 马达、 磁头等机械部件, 所以抗震性差, 容易损坏而造成丢失数据; 并且仍需 专用的 SCSI (Small Computer System Interface  [4] The current computer system data storage core is mainly a traditional hard disk. The traditional hard disk uses a disk as a storage medium to perform various operations on the disk through a magnetic head. The existing hard disk is bulky, and because it has mechanical parts such as a motor and a magnetic head therein, it is poor in shock resistance and easily damaged, resulting in loss of data; and still requires dedicated SCSI (Small Computer System Interface)
小型计算机系统接口) 、 SATA (Serial Advanced Technology Attachment 点对点串行 ATA) 或 PATA (Parallel  Small computer system interface), SATA (Serial Advanced Technology Attachment) or PATA (Parallel)
ATA, 并行 ATA) 硬盘接口连接工作, 由于传统硬盘使用吋需要与主板之间连 接一根电源线和一根数据线, 主板连接 CPU模块和内存, 通过主板上的内存控制 模块和输入 /输出控制模块进行通信控制, 所以其连接复杂, 拆装都不方便。
Figure imgf000003_0001
ATA, Parallel ATA) Hard disk interface connection works. Because traditional hard disk is used, a power cable and a data cable need to be connected to the motherboard. The motherboard is connected to the CPU module and memory through the memory control module and input/output control on the motherboard. The module performs communication control, so the connection is complicated and it is not convenient to disassemble.
Figure imgf000003_0001
disk, SSD) , 这种硬盘用闪存代替磁体作为存储介质的硬盘, 该硬盘包含存储 控制器、 存储介质、 缓存等部分组成, 但是其使用的接口和安装方式均与传统 硬盘没有区别, 其结构仍然很复杂, 连接依旧不方便。  Disk, SSD), which uses a flash memory instead of a magnet as a storage medium. The hard disk contains a storage controller, a storage medium, a cache, etc., but the interface and installation method are the same as those of a conventional hard disk. Still complicated, the connection is still inconvenient.
[6] 发明内容 [6] Summary of the invention
[7] 本申请要解决的技术问题是提供一种能够提供闪存存储功能的主板。  [7] The technical problem to be solved by the present application is to provide a motherboard capable of providing a flash memory storage function.
[8] 根据本申请的一个实施方式, 提供闪存存储功能的主板包括输入 /输出控制模 块, 还包括:  [8] According to an embodiment of the present application, a motherboard that provides a flash memory function includes an input/output control module, and further includes:
[9] 闪存存储单元, 集成在主板上用于存储数据;  [9] Flash memory unit, integrated on the motherboard for storing data;
[10] 闪存控制器, 与闪存存储单元连接, 所述闪存控制器能够从所述输入 /输出控 制模块接收指令, 并根据接收到的指令控制所述闪存存储单元;  [10] a flash controller, coupled to the flash memory unit, the flash controller capable of receiving an instruction from the input/output control module, and controlling the flash memory unit according to the received instruction;
[11] 直接内存访问控制器, 与所述闪存控制器连接, 所述直接内存访问控制器能够 从所述输入 /输出控制模块接收指令, 并根据接收到的指令协同所述闪存控制器 控制所述闪存存储单元; [11] a direct memory access controller coupled to the flash controller, the direct memory access controller being capable of receiving an instruction from the input/output control module and cooperating with the flash controller according to the received instruction Controlling the flash storage unit;
[12] 缓存, 与所述直接内存访问控制器连接, 并根据所述直接内存访问控制器以及 所述闪存控制器的控制, 实现与所述闪存存储单元之间的通信。 [12] a cache, connected to the direct memory access controller, and implementing communication with the flash memory unit in accordance with control of the direct memory access controller and the flash controller.
[13] 根据本申请的另一个实施方式, 提供闪存存储功能的主板包括输入 /输出控制 模块, 还包括: [13] According to another embodiment of the present application, a motherboard that provides a flash memory function includes an input/output control module, and further includes:
[14] 闪存存储单元通信接口, 能够与闪存存储单元连接;  [14] Flash memory unit communication interface, capable of connecting to a flash memory unit;
[15] 闪存控制器, 与所述闪存存储单元通信接口连接, 所述闪存控制器能够从所述 输入 /输出控制模块接收指令, 并根据接收到的指令通过所述闪存存储单元通信 接口控制与所述闪存存储单元通信接口连接的闪存存储单元;  [15] a flash controller, communicatively coupled to the flash memory unit, the flash controller being capable of receiving an instruction from the input/output control module and controlling and communicating with the flash memory unit communication interface according to the received command a flash memory storage unit connected to the flash memory unit communication interface;
[16] 直接内存访问控制器, 与所述闪存控制器连接, 所述直接内存访问控制器能够 从所述输入 /输出控制模块的接收指令, 并根据接收到的指令协同所述闪存控制 器通过所述闪存存储单元通信接口控制与所述闪存存储单元通信接口连接的闪 存存储单元;  [16] a direct memory access controller coupled to the flash controller, the direct memory access controller being capable of receiving an instruction from the input/output control module and cooperating with the flash controller according to the received command The flash memory unit communication interface controls a flash memory unit connected to the flash memory unit communication interface;
[17] 缓存, 与所述直接内存访问控制器连接, 并根据所述直接内存访问控制器以及 所述闪存控制器的控制, 通过所述闪存存储单元通信接口实现与和所述闪存存 储单元通信接口连接的闪存存储单元之间的通信。  [17] a cache, connected to the direct memory access controller, and configured to communicate with the flash memory unit through the flash memory unit communication interface according to the direct memory access controller and the control of the flash controller Communication between flash memory cells connected to the interface.
[18] 本申请还提供了与上述另一实施方式中的主板配合使用的闪存存储单元, 所述 闪存存储单元包括闪存存储模块和通信接口, 所述通信接口与所述闪存存储单 元通信接口相配合。  [18] The present application further provides a flash memory storage unit for use with the motherboard in another embodiment, wherein the flash memory storage unit includes a flash memory storage module and a communication interface, and the communication interface is coupled to the flash memory storage unit. Cooperate.
[19] 本申请还提供了一种基于集成闪存存储单元的主板实现数据通信控制的读取方 法, 包含以下步骤:  [19] The present application also provides a reading method for realizing data communication control based on an integrated flash memory unit, comprising the following steps:
[20] 直接内存访问控制器和闪存控制器接收读取控制命令; [20] The direct memory access controller and the flash controller receive read control commands;
[21] 闪存控制器控制闪存存储单元将数据发送到缓存; [21] The flash controller controls the flash storage unit to send data to the cache;
[22] 直接内存访问控制器控制缓存将数据发送到内存。 [22] The direct memory access controller controls the cache to send data to memory.
[23] 本申请还提供了一种基于集成闪存存储单元的主板实现数据通信控制的写入方 法, 其特征在于, 包含以下步骤:  [23] The present application further provides a writing method for realizing data communication control based on an integrated flash memory unit, characterized in that it comprises the following steps:
[24] 内存访问控制器和闪存控制器接收写入控制命令; [24] The memory access controller and flash controller receive write control commands;
[25] 直接内存访问控制器控制要写入的数据从内存写入到缓存中; [26] 闪存控制器对闪存存储单元分配地址; [25] The direct memory access controller controls the data to be written from memory to the cache; [26] The flash controller allocates an address to the flash memory unit;
[27] 闪存控制器将缓存中的数据写入到闪存存储单元中。  [27] The flash controller writes the data in the cache to the flash memory location.
[28] 根据本申请的提供闪存存储功能的主板, 利用闪存读写速度快、 抗震性好、 低 功耗的优点, 以闪存为存储介质构成计算机的存储单元。 闪存可直接集成到主 板上, 也简化了电路, 减小了主板的体积和重量。 根据闪存本身的特点, 这种 闪存存储单元较硬盘的速度更快, 功耗噪声更低, 而且安全性更好。  [28] According to the motherboard provided with the flash memory function of the present application, the flash memory is used as a storage unit of the computer by using the flash memory as a storage medium, which has the advantages of fast read/write speed, good shock resistance and low power consumption. The flash memory is directly integrated into the main board, which simplifies the circuit and reduces the size and weight of the main board. Depending on the characteristics of the flash itself, this flash memory unit is faster than the hard disk, consumes less power and is more secure.
[29] 附图说明  [29] BRIEF DESCRIPTION OF THE DRAWINGS
[30] 图 1是根据本申请第一实施方式的提供闪存存储功能的主板结构图;  1 is a structural diagram of a main board providing a flash memory storage function according to a first embodiment of the present application;
[31] 图 2是根据本申请第一实施方式的提供闪存存储功能的主板工作原理图;  2 is a schematic diagram of a working principle of a motherboard providing a flash memory storage function according to a first embodiment of the present application;
[32] 图 3是根据本申请第二实施方式的提供闪存存储功能的主板结构图;  3 is a structural diagram of a main board providing a flash memory storage function according to a second embodiment of the present application;
[33] 图 4是根据本申请第一和第二实施方式的提供闪存存储功能的主板工作原理图  4 is a schematic diagram of a working principle of a motherboard providing a flash memory storage function according to first and second embodiments of the present application;
[34] 图 5是根据本申请第三实施方式的提供闪存存储功能的主板结构图; FIG. 5 is a structural diagram of a main board providing a flash memory storage function according to a third embodiment of the present application; FIG.
[35] 图 6是根据本申请第三实施方式的提供闪存存储功能的主板工作原理图; 6 is a schematic diagram of a working principle of a motherboard providing a flash memory storage function according to a third embodiment of the present application;
[36] 图 7是根据本申请第四实施方式的提供闪存存储功能的主板结构图; FIG. 7 is a structural diagram of a main board providing a flash memory storage function according to a fourth embodiment of the present application; FIG.
[37] 图 8是根据本申请第三和第四实施方式的提供闪存存储功能的主板算法工作原 理图; 8 is a working principle diagram of a motherboard algorithm for providing a flash memory storage function according to third and fourth embodiments of the present application;
[38] 图 9是根据本申请第五实施方式提供的闪存存储单元结构示意图;  FIG. 9 is a schematic structural diagram of a flash memory storage unit according to a fifth embodiment of the present application; FIG.
[39] 图 10是根据本申请第五实施方式提供的闪存存储单元中闪存芯片级联结构图; FIG. 10 is a cascading block diagram of a flash memory chip in a flash memory storage unit according to a fifth embodiment of the present application; FIG.
[40] 图 11是根据本申请第六实施方式的读取方法流程图; [40] FIG. 11 is a flowchart of a reading method according to a sixth embodiment of the present application;
[41] 图 12是根据本申请第七实施方式的读取方法流程图;  FIG. 12 is a flowchart of a reading method according to a seventh embodiment of the present application; FIG.
[42] 图 13是根据本申请第八实施方式的写入方法流程图;  FIG. 13 is a flowchart of a writing method according to an eighth embodiment of the present application; FIG.
[43] 图 14是根据本申请第九实施方式的写入方法流程图。  14 is a flow chart of a writing method according to a ninth embodiment of the present application.
[44] 具体实施方式  [44] Specific implementation
[45] 以下结合附图及实施方式, 对本申请进行进一步详细说明。 应当理解, 此处所 描述的具体实施方式仅仅用以解释本申请, 并不用于限定本申请。  [45] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to limit the application.
[46] 作为本申请的第一实施方式, 图 1示出了一种提供闪存存储功能的主板, 该主 板与 CPU模块 6和内存 7连接。 主板包括内存控制模块 12和输入 /输出控制模块 1, 还包括: As a first embodiment of the present application, FIG. 1 shows a main board providing a flash memory storage function, which is connected to the CPU module 6 and the memory 7. The main board includes a memory control module 12 and an input/output control module 1. Also includes:
[47] 闪存存储单元 10, 集成在主板上用于存储数据;  [47] Flash memory unit 10, integrated on the motherboard for storing data;
[48] 闪存控制器 2, 与闪存存储单元 10相连, 接收输入 /输出控制模块的指令, 控制 闪存存储单元 10;  [48] The flash controller 2 is connected to the flash memory unit 10, receives an instruction of the input/output control module, and controls the flash memory unit 10;
[49] 直接内存访问控制器 (DMA) 3, 连接闪存控制器 2, 接收输入 /输出控制模块 1 的指令, 协同闪存控制器 2控制闪存存储单元 10;  [49] Direct Memory Access Controller (DMA) 3, connected to the flash controller 2, receiving input/output control module 1 instructions, cooperative flash controller 2 controlling flash memory unit 10;
[50] 缓存 5, 连接直接内存访问控制器 3, 与闪存存储单元 10通信。  [50] Cache 5, connected to the direct memory access controller 3, to communicate with the flash storage unit 10.
[51] 其中, 主板上的输入 /输出控制模块 1通过内存控制模块 12与 CPU模块 6进行通信 , 实现对输入 /输出总线的控制。  [51] Among them, the input/output control module 1 on the main board communicates with the CPU module 6 through the memory control module 12 to realize control of the input/output bus.
[52] CPU模块 6—般由逻辑运算单元、 控制单元和存储单元组成。 在逻辑运算和控 制单元中包括一些寄存器, 这些寄存器用于 CPU模块 6在处理数据过程中数据的 暂吋保存。 CPU模块 6—般通过将 CPU安装在主板上提供的 CPU插槽中来实现。 可选地, CPU模块 6也可以是集成在主板上的 CPU。  [52] The CPU module 6 is generally composed of a logical operation unit, a control unit, and a storage unit. Included in the logic operation and control unit are registers for the temporary storage of data by the CPU module 6 during processing of the data. The CPU module 6 is generally implemented by mounting the CPU in a CPU socket provided on the main board. Alternatively, the CPU module 6 may also be a CPU integrated on the main board.
[53] 内存控制模块 12是主板芯片组中起主导作用的重要的组成部分, 内存控制模块 12与 CPU模块 6相连并控制内存 7、 AGP数据 (图形加速接口数据) 在北桥电路内 部传输, 提供对 CPU模块 6的类型和主频、 系统的前端总线频率、 内存的类型和 最大容量、 AGP插槽、 ECC纠错等支持, 整合型芯片组的北桥芯片还集成了显示 核心。 其主要负责  [53] The memory control module 12 is an important component of the main function of the motherboard chipset. The memory control module 12 is connected to the CPU module 6 and controls the memory 7. The AGP data (graphic acceleration interface data) is transmitted inside the north bridge circuit. The Northbridge chip of the integrated chipset also integrates the display core for the type and frequency of the CPU module 6, the front-side bus frequency of the system, the type and maximum capacity of the memory, the AGP slot, and the ECC error correction. Mainly responsible
CPU模块 6与内存之间的交流; CPU模块 6与外设之间的交流; 支持内存的种类及 最大容量的控制。  Communication between CPU module 6 and memory; communication between CPU module 6 and peripherals; support for memory type and maximum capacity control.
[54] 闪存控制器 2, 控制闪存存储单元 10与输入 /输出控制模块 1和直接内存访问控 制器 3之间的通信。  [54] Flash controller 2, controls communication between flash memory unit 10 and input/output control module 1 and direct memory access controller 3.
[55] 直接内存访问控制器 3无需 CPU模块 6的干预, 即可控制外部设备和内存之间直 接读写数据。 除了在数据传输开始和结束吋需要 CPU模块 6的参与外, 在数据传 输过程中 CPU模块 6可以处理其他的工作。 这样, 在大部分吋间里, CPU模块 6和 输入 /输出控制模块 1都处于并行操作。 因此, 节省了 CPU的资源, 使整个计算机 系统的效率大大提高。  [55] Direct Memory Access Controller 3 Controls the direct reading and writing of data between external devices and memory without the intervention of CPU module 6. In addition to the involvement of the CPU module 6 at the beginning and end of the data transfer, the CPU module 6 can handle other tasks during the data transfer. Thus, in most of the day, both the CPU module 6 and the input/output control module 1 operate in parallel. Therefore, the CPU resources are saved, and the efficiency of the entire computer system is greatly improved.
[56] 直接内存访问控制器 3包括主存地址寄存器、 数据数量计数器 、 直接内存访问的控制 Z状态逻辑、 直接内存访问请求触发器、 数据缓冲寄存 器、 中断机构。 [56] Direct memory access controller 3 includes main memory address register, data quantity counter Direct Z memory logic for direct memory access, direct memory access request trigger, data buffer register, interrupt mechanism.
[57] 直接内存访问控制器 3釆用以下三种方式工作: 1、 停止 CPU模块 6访问内存 7: 当外部设备要求传送一批数据吋, 由直接内存访问控制器 3发一个信号给 CPU模 块 6。 直接内存访问控制 3器获得总线控制权后, 开始进行数据传送。 一批数据 传送完毕后, 直接内存访问控制器 3通知 CPU模块 6可以使用内存 7, 并把总线控 制权交还给 CPU模块 6。 2、 周期挪用: 当外部设备没有直接内存访问请求吋, C PU模块 6按程序要求访问内存 7,一旦  [57] The direct memory access controller 3 works in the following three ways: 1. Stop the CPU module 6 from accessing the memory 7: When the external device requests to transfer a batch of data, the direct memory access controller 3 sends a signal to the CPU module. 6. The direct memory access control device 3 starts the data transfer after obtaining the bus control. After a batch of data has been transferred, the direct memory access controller 3 notifies the CPU module 6 that the memory 7 can be used and the bus control is returned to the CPU module 6. 2. Cycle stealing: When the external device does not have a direct memory access request, the CPU module 6 accesses the memory as required by the program.
I/O设备有直接内存访问请求, 则 I/O设备挪用一个或几个周期。  If the I/O device has a direct memory access request, the I/O device steals one or several cycles.
3、 直接内存访问控制器 3与 CPU模块 6交替访问: 一个 CPU周期可分为 2个周期, 一个专供直接内存访问控制器 3访问, 另一个专供 CPU模块 6访问。 不需要总线使 用权的申请、 建立和归还过程。  3. Direct memory access controller 3 and CPU module 6 alternate access: One CPU cycle can be divided into 2 cycles, one for direct memory access controller 3 access, and the other for CPU module 6 access. The application, establishment and return process of bus usage rights is not required.
[58] 闪存存储单元 10集成在主板上, 由于制造工艺的提高, 闪存芯片的体积已经越 来越小, 而且由于本实施方式省去了主板上的硬盘接口及硬盘接口的相关线路 , 所以为将闪存芯片集成在主板上提供了充足的空间。 闪存存储单元 10可以包 括单片闪存芯片或或包括相互级联的至少二片闪存芯片。 目前单片闪存芯片的 容量虽然已经可以达到 16GB , 但还是无法满足计算机存储的要求。 这样就需要 通过级联的方式扩大闪存存储单元的整体容量。 图 10中以 K9GCG08U1M闪存芯 片为例给出了一种双通道 8片闪存芯片级联的方式, 这样就构建了一个 64GB的闪 存存储单元。 闪存存储单元中闪存芯片的级联方式包括图 10中所示的方法, 但 不限于此。 它可以用更多的闪存芯片级联, 甚至可以是用四通道实现。 [58] The flash memory unit 10 is integrated on the main board. Due to the improvement of the manufacturing process, the size of the flash memory chip has become smaller and smaller, and since the present embodiment eliminates the relevant functions of the hard disk interface and the hard disk interface on the main board, Integrating the flash chip on the motherboard provides plenty of room. The flash memory unit 10 may include a single chip flash chip or or include at least two flash chips that are cascaded with each other. At present, the capacity of a single-chip flash chip can reach 16GB, but it still cannot meet the requirements of computer storage. This requires cascading to expand the overall capacity of the flash storage unit. In Figure 10, a K9GCG08U1M flash chip is used as an example to illustrate a two-channel 8-chip flash chip cascading method, thus constructing a 64GB flash memory cell. The cascading manner of the flash chips in the flash memory unit includes the method shown in Fig. 10, but is not limited thereto. It can be cascaded with more flash chips, or even with four channels.
[59] 图 2给出了根据本申请第一实施方式的提供闪存存储功能的主板工作原理图。 FIG. 2 is a schematic diagram showing the operation of a motherboard providing a flash memory storage function according to a first embodiment of the present application.
参见图 2, CPU模块 6对闪存存储单元 10进行写操作吋, CPU模块 6通过内存控制 模块 12和输入 /输出控制模块 1将控制命令发送到直接内存访问控制器 3和闪存控 制器 2, 所述控制命令从直接内存访问控制器 3传输到缓存 5中。 闪存控制器 2接 收到控制命令后, 判断是否可对闪存存储单元 10执行写操作, 并为待写入数据 分配地址, 再将缓存 5中的数据发送到闪存存储单元 10; CPU模块 6对闪存存储单 元 10进行读操作吋, 将读指令发送到直接内存访问控制器 3和闪存控制器 2, 闪 存控制器 2从闪存存储单元 10读取数据, 传送到缓存 5中, 缓存 5中的数据在直接 内存访问控制器的控制下, 通过内存 7发送到 CPU模块 6。 Referring to FIG. 2, the CPU module 6 performs a write operation to the flash memory unit 10, and the CPU module 6 sends a control command to the direct memory access controller 3 and the flash controller 2 through the memory control module 12 and the input/output control module 1. The control commands are transferred from the direct memory access controller 3 to the cache 5. After receiving the control command, the flash controller 2 determines whether a write operation can be performed on the flash memory unit 10, and allocates an address for the data to be written, and then transmits the data in the cache 5 to the flash memory unit 10; the CPU module 6 pairs the flash memory The memory unit 10 performs a read operation, and sends a read command to the direct memory access controller 3 and the flash controller 2, The memory controller 2 reads data from the flash memory unit 10 and transfers it to the cache 5. The data in the buffer 5 is sent to the CPU module 6 through the memory 7 under the control of the direct memory access controller.
[60] 第一实施方式通过上述方式实现了对现有的硬盘接口和硬盘的替代。 可选地, 闪存控制器、 直接内存访问控制器、 缓存能够集成在一个 IC芯片中。  [60] The first embodiment achieves an alternative to the existing hard disk interface and hard disk by the above manner. Alternatively, the flash controller, direct memory access controller, and cache can be integrated into one IC chip.
[61] 图 3示出了根据本申请的第二实施方式的提供闪存存储功能的主板结构。 本实 施方式通过内置在输入 /输出控制模块中的闪存控制芯片与主板上的闪存存储单 元进行通信, 实现对闪存存储单元的数据写入、 读取、 擦除等操作。  FIG. 3 illustrates a motherboard structure providing a flash memory storage function according to a second embodiment of the present application. In this embodiment, the flash memory control chip built in the input/output control module communicates with the flash memory storage unit on the main board to realize data writing, reading, erasing, and the like to the flash memory unit.
[62] 如图 3所示, 根据第二实施方式, 闪存控制器 2、 直接内存访问控制器 3和 /或缓 存 5被内置到输入 /输出控制模块 1中。 并且, 在输入 /输出控制模块 1上设有闪存 通信接口 (未示出) 。 带有闪存控制器 2、 直接内存访问控制器 3和缓存 5的输入 / 输出控制模块 1通过闪存通信接口, 能够实现对闪存存储单元 10的控制和通信。 具体的控制和通信的原理与第一实施方式相同, 此处不再重复。 这样的设计, 节省了主板上需要布置的芯片数量并且简化了线路。  As shown in FIG. 3, according to the second embodiment, the flash controller 2, the direct memory access controller 3, and/or the cache 5 are built into the input/output control module 1. Also, a flash communication interface (not shown) is provided on the input/output control module 1. The input/output control module with the flash controller 2, the direct memory access controller 3, and the cache 5 enables control and communication of the flash memory unit 10 through the flash communication interface. The principles of specific control and communication are the same as those of the first embodiment and will not be repeated here. This design saves the number of chips that need to be placed on the motherboard and simplifies the wiring.
[63] 根据本申请的第一和第二实施方式提供的带有闪存存储单元的主板, 利用主板 空间将闪存存储单元直接集成在主板上, 并直接与闪存控制器连接进行数据传 输, 省去了闪存存储单元与闪存控制器之间的通信接口, 简化了主板的连接结 构。  [63] According to the first and second embodiments of the present application, the motherboard with the flash memory unit directly integrates the flash memory unit on the motherboard by using the motherboard space, and directly connects to the flash controller for data transmission, eliminating the need for The communication interface between the flash memory unit and the flash controller simplifies the connection structure of the motherboard.
[64] 上述第一和第二实施方式中, 如图 4所示, 根据闪存存储单元本身的特性, 在 安装操作系统后, 在操作系统 8中还可增加控制闪存存储单元数据读写的算法, 如: 映射算法 81、 均衡算法 82、 ECC算法 83等。  [64] In the foregoing first and second embodiments, as shown in FIG. 4, according to the characteristics of the flash memory storage unit itself, after the operating system is installed, an algorithm for controlling data read and write of the flash memory storage unit may be added in the operating system 8. For example, the mapping algorithm 81, the equalization algorithm 82, the ECC algorithm 83, and the like.
[65] 映射算法 81, 用于管理闪存存储器中的物理块。 例如, NAND  [65] Mapping algorithm 81, used to manage physical blocks in flash memory. For example, NAND
闪存存储器内所含的存储单元以页 (Page) 和块 (Block) 为基本单位进行操作 , 并不能保证每个物理块出厂后都是可正常使用的。 因此, 需要确保数据存储 到可正常使用的物理块中。 映射算法实现闪存存储器中逻辑块的逻辑地址与物 理块的物理地址之间有效映射, 保证读写数据的各逻辑块可以对应到无缺陷的 物理块, 以保证数据的可靠性和完整性。  The memory cells contained in the flash memory operate in the basic unit of page and block, and there is no guarantee that each physical block can be used normally after leaving the factory. Therefore, you need to ensure that the data is stored in a physical block that is working properly. The mapping algorithm implements an effective mapping between the logical address of the logical block in the flash memory and the physical address of the physical block, ensuring that each logical block of the read and write data can correspond to a defect-free physical block to ensure data reliability and integrity.
[66] 均衡算法 82, 用于均衡闪存存储器中逻辑块的逻辑地址的读写概率, 以提高闪 存存储器的使用寿命。 [67] 错误检査和纠错 (Error cheching and [66] The equalization algorithm 82 is used to balance the read and write probabilities of logical addresses of logical blocks in the flash memory to improve the lifetime of the flash memory. [67] Error checking and error correction (Error cheching and
correcting, ECC) 算法 83, 用于完成对闪存存储器存储读取数据吋的错误进行 检测和纠错, 控制位错误比率。 在其他闪存控制器 (像闪存盘、 MP3控制器) 上 , 由于运算能力有限, ECC算法都以固件的形式实现。 而在本申请中, 基于计算 机 CPU强大的运算能力, 可以将 ECC算法包含在操作系统中, 这样就可以通过升 级操作系统对算法升级。 由此, 不需要改变主板的硬件结构就可以支持最新技 术的闪存存储器。  Correcting, ECC) Algorithm 83, used to detect and correct errors in the flash memory to store read data, control bit error ratio. On other flash controllers (like flash drives, MP3 controllers), ECC algorithms are implemented in firmware due to limited computing power. In this application, based on the powerful computing power of the computer CPU, the ECC algorithm can be included in the operating system, so that the algorithm can be upgraded by upgrading the operating system. As a result, the latest technology flash memory can be supported without changing the hardware structure of the motherboard.
[68] 图 5示出了本申请的第三种实施方式提供的带有闪存存储功能的主板结构图。  FIG. 5 is a structural diagram of a motherboard with a flash memory function provided by a third embodiment of the present application.
该主板与 CPU模块 6和内存 7连接。 主板包括内存控制模块 12和输入 /输出控制模 块 1, 还包括:  The motherboard is connected to the CPU module 6 and the memory 7. The motherboard includes a memory control module 12 and an input/output control module 1, which also includes:
[69] 闪存存储单元接口 4, 集成在主板上并能够与闪存存储单元 (未示出)连接; [70] 闪存控制器 2, 与闪存存储单元接口 4相连, 接收输入 /输出控制模块 1的指令, 通过闪存存储单元接口 4控制闪存存储单元; [69] The flash memory unit interface 4 is integrated on the motherboard and can be connected to a flash memory unit (not shown); [70] the flash controller 2 is connected to the flash memory unit interface 4, and receives the input/output control module 1 An instruction to control the flash memory unit through the flash memory unit interface 4;
[71] 直接内存访问控制器 3, 连接闪存控制器 2并接收输入 /输出控制模块 1的指令, 协同闪存控制器 2通过闪存存储单元接口 4控制与闪存存储单元; [71] Direct memory access controller 3, connected to the flash controller 2 and receives the instruction of the input/output control module 1, and the flash memory controller 2 controls the flash memory unit through the flash memory unit interface 4;
[72] 缓存 5, 连接直接内存访问控制器 3, 通过闪存存储单元接口 4与闪存存储单元 之间进行通信。 [72] Cache 5, Connect the direct memory access controller 3, communicate with the flash memory unit via the flash memory unit interface 4.
[73] 主板上的输入 /输出控制模块 1通过内存控制模块 12与 CPU模块 6进行通信, 实现 对输入 /输出总线的控制。 CPU模块 6—般通过将 CPU安装在主板上提供的 CPU插 槽中来实现。 可选地, CPU模块 6也可以是集成在主板上的 CPU。  [73] The input/output control module on the main board communicates with the CPU module 6 via the memory control module 12 to control the input/output bus. The CPU module 6 is generally implemented by mounting the CPU in a CPU socket provided on the main board. Alternatively, the CPU module 6 may also be a CPU integrated on the main board.
[74] 内存控制模块 12与 CPU模块 6相连并控制内存 7。 内存控制模块 12主要负责  [74] The memory control module 12 is connected to the CPU module 6 and controls the memory 7. Memory control module 12 is mainly responsible
CPU模块 6与内存 7之间的交流;  Communication between CPU module 6 and memory 7;
CPU模块与外设之间的交流; 支持内存的种类及最大容量的控制。  Communication between the CPU module and peripherals; support for the type of memory and maximum capacity control.
[75] 闪存控制器 2通过闪存存储单元接口 4控制闪存存储单元与输入 /输出控制模块 1 和直接内存访问控制器 3之间的通信。 [75] The flash controller 2 controls the communication between the flash memory unit and the input/output control module 1 and the direct memory access controller 3 via the flash memory unit interface 4.
[76] 闪存存储单元接口 4包括数据总线 41和控制总线 42: 数据总线 41可以是 8位、 16 位、 32位或 64位等, 可以支持 8/16位闪存存储单元, 可以实现单通道、 双通道甚 至四通道; 控制总线 42可以包括 RE#、 WE#、 ALE、 CLE、 WP#、 RB和若干 CE# 信号等。 [76] The flash memory cell interface 4 includes a data bus 41 and a control bus 42: The data bus 41 can be 8-bit, 16-bit, 32-bit or 64-bit, etc., can support 8/16-bit flash memory cells, and can realize single channel, Dual or even four channels; control bus 42 may include RE#, WE#, ALE, CLE, WP#, RB, and several CE# Signals, etc.
[77] 直接内存访问控制器 3控制外部设备和内存之间直接读写数据, 既不通过 CPU 模块 6, 也不需要 CPU模块 6干预。 CPU模块 6除了在数据传输开始和结束吋做一 些处理外, 在传输过程中 CPU模块 6可以进行其他的工作。 这样, 在大部分吋间 里, CPU模块 6和输入 /输出控制模块 1都处于并行操作。 因此, 使整个计算机系 统的效率大大提高。  [77] Direct Memory Access Controller 3 Controls direct reading and writing of data between external devices and memory, neither through CPU module 6 nor CPU module 6 intervention. The CPU module 6 can perform other operations during the transmission except for some processing at the beginning and end of data transmission. Thus, in most of the time, the CPU module 6 and the input/output control module 1 are operated in parallel. Therefore, the efficiency of the entire computer system is greatly improved.
[78] 直接内存访问控制器 3包括主存地址寄存器、 数据数量计数器  [78] Direct Memory Access Controller 3 includes main memory address register, data quantity counter
、 直接内存访问的控制 Z状态逻辑、 直接内存访问请求触发器、 数据缓冲寄存 器、 中断机构。  Direct memory access control Z-state logic, direct memory access request trigger, data buffer register, interrupt mechanism.
[79] 图 6给出了闪存存储单元 (未示出) 通过闪存存储单元接口 4与 CPU模块 6通信 的示意图。 参见图 6, CPU模块 6通过闪存存储单元接口 4对闪存存储单元进行写 操作吋, CPU模块 6将写命令发送到直接内存访问控制器 3和闪存控制器 2, 从而 将待写的数据从内存 7传送到缓存 5中, 闪存控制器 2接收到控制命令后, 判断是 否可对与闪存存储单元接口 4相连的闪存存储单元 10执行写操作, 并为待写入数 据分配地址, 再将缓存 5中数据通过闪存存储单元接口 4发送到闪存存储单元 10 ; CPU模块 6通过闪存存储单元接口 4对闪存存储单元 10进行读操作吋, CPU模块 6将读命令发送到直接内存访问控制器 3和闪存控制器 2, 闪存控制器 2通过闪存 存储单元接口 4读取闪存存储单元中的数据, 并传送到缓存 5中, 缓存 5中的数据 再通过内存 7给到 CPU模块 6。 FIG. 6 shows a schematic diagram of a flash memory unit (not shown) communicating with the CPU module 6 via the flash memory unit interface 4. Referring to FIG. 6, the CPU module 6 writes the flash memory cell through the flash memory cell interface 4, and the CPU module 6 sends a write command to the direct memory access controller 3 and the flash controller 2, thereby drawing the data to be written from the memory. 7 is transferred to the cache 5, after receiving the control command, the flash controller 2 determines whether the flash memory storage unit 10 connected to the flash memory cell interface 4 can be written, and allocates an address for the data to be written, and then caches 5 The middle data is sent to the flash memory unit 10 through the flash memory unit interface 4; the CPU module 6 reads the flash memory unit 10 through the flash memory unit interface 4, and the CPU module 6 sends a read command to the direct memory access controller 3 and the flash memory. The controller 2, the flash controller 2 reads the data in the flash storage unit through the flash storage unit interface 4, and transfers it to the cache 5, and the data in the cache 5 is then sent to the CPU module 6 through the memory 7.
[80] 根据本申请的第三实施方式通过闪存控制器 2、 直接内存访问控制器 3、 缓存 5 和闪存存储单元接口 4实现了对现有的硬盘接口的替代, 其中, 闪存控制器 2、 直接内存访问控制器 3、 以及缓存 5可以集成在一个 IC芯片中。  [80] According to the third embodiment of the present application, an alternative to an existing hard disk interface is realized by the flash controller 2, the direct memory access controller 3, the cache 5, and the flash memory unit interface 4, wherein the flash controller 2 The direct memory access controller 3, and the cache 5 can be integrated in one IC chip.
[81] 如图 7所示, 与上述的第三实施方式不同, 在第四实施方式中, 闪存控制器 2、 直接内存访问控制器 3和 /或缓存 5被内置到输入 /输出控制模块 1中, 并且在输入 / 输出控制模块 1上设有闪存接口 (未示出) 。 带有闪存控制器 2、 直接内存访问 控制器 3和缓存 5的输入 /输出控制模块 1通过闪存接口连接闪存存储控制接口 4, 从而实现与闪存存储之间的通信, 其数据传输的原理与第三实施方式相同, 此 处不再重复。 这样的设计, 节省了主板上需要布置的芯片数量, 简化了线路。 [82] 上述第三和第四实施方式中, 根据闪存存储单元本身的特性, 如图 8所示, 在 安装操作系统后, 在操作系统 8中还可增加了一些控制闪存存储单元数据读写的 算法, 如: 映射算法 81、 均衡算法 82、 错误检査和纠错 (Error cheching and correcting, ECC) 算法 83等。 [81] As shown in FIG. 7, unlike the third embodiment described above, in the fourth embodiment, the flash controller 2, the direct memory access controller 3, and/or the cache 5 are built into the input/output control module 1. And a flash interface (not shown) is provided on the input/output control module 1. The input/output control module 1 with the flash controller 2, the direct memory access controller 3, and the cache 5 is connected to the flash memory control interface 4 through a flash interface, thereby realizing communication with the flash memory, and the principle and data transmission thereof The three implementations are the same and will not be repeated here. This design saves the number of chips that need to be placed on the motherboard and simplifies the wiring. [82] In the foregoing third and fourth embodiments, according to the characteristics of the flash memory storage unit itself, as shown in FIG. 8, after the operating system is installed, some control flash memory storage unit data read and write may be added in the operating system 8. The algorithm, such as: mapping algorithm 81, equalization algorithm 82, error checking and correcting (ECC) algorithm 83, and the like.
[83] 上述第三和第四实施方式提供的主板与现有的用闪存芯片代替磁体作为存储介 质的硬盘相比, 将闪存控制器和直接内存访问控制器还有缓存都集成在主板上 , 由于在计算机内部的各个部件中, 硬盘由于容量或质量问题是一个随吋需要 增加或者更换的部件, 将闪存控制器和直接内存访问控制器还有缓存置于硬盘 中, 增加了每个硬盘的成本, 而将闪存控制器和直接内存访问控制器还有缓存 集成在主板上将使得增加和更换存储器的成本降低, 与之配合使用的闪存存储 单元中无需再有闪存控制器和直接内存访问控制器还有缓存, 所以下面的第五 实施方式提供了一种与本实施方式的带有闪存存储的主板配合使用的闪存存储 单元。  [83] The motherboard provided in the third and fourth embodiments described above integrates the flash controller and the direct memory access controller and the cache on the main board, compared with the existing hard disk in which the flash chip is used as the storage medium instead of the magnet. Since the hard disk is a component that needs to be added or replaced as a function of capacity or quality among the various components inside the computer, the flash controller and the direct memory access controller and the cache are placed in the hard disk, and each hard disk is added. Cost, and the integration of the flash controller and direct memory access controller with the cache on the motherboard will reduce the cost of adding and replacing memory, and there is no need for flash controllers and direct memory access control in the flash memory cells used with it. There is also a cache, so the fifth embodiment below provides a flash memory unit for use with the motherboard with flash memory of the present embodiment.
[84] 本申请的第五实施方式提供了一种配合上述第三或第四实施方式中提供的主板 使用的闪存存储单元, 图 9示出了本申请提供的闪存存储单元 9结构示意图, 闪 存存储单元 9包含有闪存存储器 910和通信接口 920。 通信接口 920能够与第三或 第四实施方式中提供的闪存存储控制接口 4相互配合。 闪存存储器 910内的数据 操作通过通信接口 920传输。  The fifth embodiment of the present application provides a flash memory storage unit for use with the motherboard provided in the third or fourth embodiment, and FIG. 9 is a schematic structural diagram of the flash memory storage unit 9 provided by the present application. The storage unit 9 includes a flash memory 910 and a communication interface 920. The communication interface 920 can cooperate with the flash storage control interface 4 provided in the third or fourth embodiment. Data operations within flash memory 910 are transmitted over communication interface 920.
[85] 闪存存储器 910可以包括单个闪存芯片或包括相互级联的至少二个闪存芯片。  The flash memory 910 may include a single flash chip or include at least two flash chips that are cascaded with each other.
其中, 级联方式可以釆用以上根据本申请的第一实施方式参照图 10所描述的级 联方式。  The cascading mode may employ the cascading mode described above with reference to FIG. 10 according to the first embodiment of the present application.
[86] 通信接口 920总线包括数据总线 921和控制总线 922, 数据总线 921可以是 8位、 1 6位、 32位或 64位等, 可以支持 8/16位闪存存储单元, 可以实现单通道、 双通道 甚至四通道; 控制总线 922可以包括 RE#、 WE#、 ALE、 CLE、 WP#、 RB和若干 。5#信号等。  [86] The communication interface 920 bus includes a data bus 921 and a control bus 922, and the data bus 921 can be 8-bit, 16-bit, 32-bit or 64-bit, etc., can support 8/16-bit flash memory cells, and can realize single channel, Dual or even four channels; Control Bus 922 may include RE#, WE#, ALE, CLE, WP#, RB, and several. 5# signal, etc.
[87] 第五实施方式提供的闪存存储单元的通信接口的数据总线的规格和控制总线的 信号均和第三和第四实施方式中的带有闪存存储的主板的通信接口的据总线的 规格和控制总线的信号一致, 实现连接后即可进行通信, 闪存存储单元也由于 简单的结构而降低了使用成本。 [87] The specification of the data bus of the communication interface of the flash memory unit provided by the fifth embodiment and the signal of the control bus are both the specifications of the bus of the communication interface of the motherboard with the flash memory in the third and fourth embodiments. It is consistent with the signal of the control bus. After the connection is made, communication can be performed. The flash memory unit is also The simple structure reduces the cost of use.
[88] 第六实施方式提供了一种基于带有闪存存储单元的主板实现数据通信控制的读 取方法, 各部件传输关系参照图 2, 如图 11所示, 该读取方法包含以下步骤: [89] S110、 直接内存访问控制器和闪存控制器接收读取控制命令;  [6] The sixth embodiment provides a reading method for implementing data communication control based on a main board with a flash memory unit. The transmission relationship of each component is as shown in FIG. 2. As shown in FIG. 11, the reading method includes the following steps: [89] S110, the direct memory access controller and the flash controller receive the read control command;
[90] S120、 闪存控制器控制闪存存储单元将数据发送到缓存; [90] S120, the flash controller controls the flash storage unit to send data to the cache;
[91] S130、 直接内存访问控制器控制缓存将数据发送到内存。 [91] S130. The direct memory access controller controls the cache to send data to the memory.
[92] 如图 12所示, 第七实施方式在第六实施方式的直接内存访问控制器控制缓存将 数据发送到内存步骤后还包括对读取数据错误检测和纠错 (ECC) 步骤 1301, 用 于完成对闪存存储器存储读取数据吋的错误检测和纠错, 控制位错误比率。 在 其他闪存控制器 (像闪存盘、 MP3控制器) 上, 由于控制的运算能力有限, ECC 算法都以固件的形式实现。 也可以基于计算机 CPU强大的运算能力, 将 ECC算法 包含在操作系统中, 这样就可以通过升级操作系统对算法升级。 由此, 不需重 新掩膜就可以支持最新技术的闪存存储器。  [92] As shown in FIG. 12, the seventh embodiment further includes a read data error detection and error correction (ECC) step 1301 after the direct memory access controller of the sixth embodiment controls the buffer to send data to the memory step. Used to complete error detection and error correction for reading data in the flash memory, and control the bit error ratio. On other flash controllers (like flash drives, MP3 controllers), ECC algorithms are implemented in firmware due to limited computing power. It is also possible to include the ECC algorithm in the operating system based on the powerful computing power of the computer CPU, so that the algorithm can be upgraded by upgrading the operating system. This allows the latest technology flash memory to be supported without re-masking.
[93] 第八实施方式提供了一种基于带有闪存存储单元的主板实现数据通信控制的读 取方法, 各部件传输关系参照图 2, 如图 13所示, 读取步骤包含以下步骤: 写入 步骤包含以下步骤: [93] The eighth embodiment provides a reading method for implementing data communication control based on a main board with a flash memory unit. The transmission relationship of each component is as shown in FIG. 2. As shown in FIG. 13, the reading step includes the following steps: The step in the steps consists of the following steps:
[94] S210、 内存访问控制器和闪存控制器接收写入控制命令, [94] S210, memory access controller and flash controller receive write control commands,
[95] S220、 直接内存访问控制器控制要写入的数据从内存写入到缓存中; [95] S220, the direct memory access controller controls the data to be written from the memory to the cache;
[96] S230、 闪存控制器对闪存存储单元分配地址; [96] S230. The flash controller allocates an address to the flash storage unit;
[97] S240、 闪存控制器将缓存中的数据写入到闪存存储单元中。 [97] S240. The flash controller writes the data in the cache to the flash storage unit.
[98] 上述方法实现了基于闪存存储单元的主板实现数据通信控制, 但在通信过程中 由于数据的错误和闪存存储单元的好坏会影响数据通信的质量, 所以在第六实 施方式的基础上提出第七实施方式。 [98] The above method implements data communication control of a motherboard based on a flash memory unit, but in the communication process, due to data errors and the quality of the flash memory unit, the quality of the data communication is affected, so on the basis of the sixth embodiment. A seventh embodiment is proposed.
[99] 如图 14所示, 第九实施方式在第八实施方式中的闪存控制器对闪存存储单元分 配地址之前还包括: 保证读写数据对应到无缺陷的物理块的地址映射步骤 2301 。 映射步骤 2301通过映射算法实现闪存存储器中逻辑块地址与物理块地址之间 的有效映射, 保证读写数据的各逻辑块可以对应到无缺陷的物理块, 以保证数 据的可靠性和完整性。 以上所述仅为本申请的实施方式, 并非因此限制本申请的专利范围, 凡是利用 本申请说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运用 在其他相关的技术领域, 均同理包括在本申请的专利保护范围内。 [99] As shown in FIG. 14, the ninth embodiment further includes: before the allocation of the address to the flash memory unit by the flash controller in the eighth embodiment, the address mapping step 2301 of ensuring that the read/write data corresponds to the physical block without defects. The mapping step 2301 implements an effective mapping between the logical block address and the physical block address in the flash memory by the mapping algorithm, and ensures that each logical block of the read and write data can correspond to a defect-free physical block to ensure data reliability and integrity. The above description is only the embodiment of the present application, and thus does not limit the scope of the patent application, and the equivalent structure or equivalent process transformation made by using the specification and the drawings of the present application, or directly or indirectly applied to other related technologies. The scope of the invention is included in the scope of patent protection of this application.

Claims

权利要求书 Claim
1、 一种提供闪存存储功能的主板, 所述主板包括输入 /  1. A motherboard for providing a flash memory function, the motherboard comprising an input /
输出控制模块, 其特征在于, 还包括: An output control module, further comprising:
闪存存储单元, 集成在主板上用于存储数据; a flash storage unit integrated on the motherboard for storing data;
闪存控制器, 与闪存存储单元连接, 所述闪存控制器能够从所述输入 / 输出控制模块接收指令, 并根据接收到的指令控制所述闪存存储单元; 直接内存访问控制器, 与所述闪存控制器连接, 所述直接内存访问控制器 能够从所述输入 I a flash controller, coupled to the flash memory unit, the flash controller capable of receiving an instruction from the input/output control module, and controlling the flash memory unit according to the received instruction; a direct memory access controller, and the flash memory a controller connection, the direct memory access controller being capable of inputting from the input
输出控制模块接收指令, 并根据接收到的指令协同所述闪存控制器控制所 述闪存存储单元; The output control module receives the instruction, and cooperates with the flash controller to control the flash memory storage unit according to the received instruction;
缓存, 与所述直接内存访问控制器连接, 并根据所述直接内存访问控制器 以及所述闪存控制器的控制, 实现与所述闪存存储单元之间的通信。a cache, coupled to the direct memory access controller, and in communication with the flash memory unit in accordance with control of the direct memory access controller and the flash controller.
2、 如权利要求 1 2. As claimed in claim 1
所述的主板, 其特征在于: 所述闪存控制器、 所述直接内存访问控制器和 所述缓存内置在所述输入 I输出控制模块中。 The motherboard is characterized in that: the flash controller, the direct memory access controller and the cache are built in the input I output control module.
3、 如权利要求 1或 2  3. According to claim 1 or 2
所述的主板, 其特征在于: 所述闪存存储单元包括单片闪存芯片或相互级 联的至少二片闪存芯片。 The motherboard is characterized in that: the flash memory unit comprises a single chip flash chip or at least two flash chips that are cascaded with each other.
4、 一种提供闪存存储功能的主板, 主板上包括内存控制模块和输入 / 输出控制模块, 其特征在于, 还包括:  4. A motherboard for providing a flash memory function, the motherboard includes a memory control module and an input/output control module, and the method further includes:
闪存存储单元通信接口, 能够与闪存存储单元连接; a flash memory unit communication interface capable of being connected to a flash memory unit;
闪存控制器, 与所述闪存存储单元通信接口连接, 所述闪存控制器能够从 所述输入 / a flash controller, communicatively coupled to the flash memory unit, the flash controller being capable of inputting from the
输出控制模块接收指令, 并根据接收到的指令通过所述闪存存储单元通信 接口控制与所述闪存存储单元通信接口连接的闪存存储单元; The output control module receives the instruction, and controls, by the flash memory storage unit communication interface, a flash memory storage unit connected to the flash memory unit communication interface according to the received instruction;
直接内存访问控制器, 与所述闪存控制器连接, 所述直接内存访问控制器 能够从所述输入 I a direct memory access controller coupled to the flash controller, the direct memory access controller being capable of inputting from the input
输出控制模块的接收指令, 并根据接收到的指令协同所述闪存控制器通过 所述闪存存储单元通信接口控制与所述闪存存储单元通信接口连接的闪存 存储单元; Outputting a control command of the control module, and cooperating with the flash controller according to the received command The flash memory unit communication interface controls a flash memory unit connected to the flash memory unit communication interface;
缓存, 与所述直接内存访问控制器连接, 并根据所述直接内存访问控制器 以及所述闪存控制器的控制, 通过所述闪存存储单元通信接口和与所述闪 存存储单元通信接口连接的闪存存储单元进行通信。 Cache, connected to the direct memory access controller, and according to the direct memory access controller and the control of the flash controller, through the flash memory unit communication interface and a flash memory connected to the flash memory unit communication interface The storage unit communicates.
5、 如权利要求 4  5. According to claim 4
所述的主板, 其特征在于: 所述闪存控制器、 所述直接内存访问控制器和 所述缓存内置在所述输入 I输出控制模块中。 The motherboard is characterized in that: the flash controller, the direct memory access controller and the cache are built in the input I output control module.
6、 一种能够与如权利要求 4  6. One capable of complying with claim 4
所述的主板配合使用的闪存存储单元, 其特征在于, 所述闪存存储单元包 括: The flash memory unit used in conjunction with the motherboard is characterized in that: the flash storage unit comprises:
闪存存储模块; 以及 Flash memory module;
与所述主板上的闪存存储单元通信接口相配合的通信接口。 A communication interface that cooperates with a flash memory unit communication interface on the motherboard.
7、 如权利要求 6  7. According to claim 6
所述的闪存存储单元, 其特征在于: 所述闪存存储模块包括单片闪存芯片 或相互级联的至少二片闪存芯片。 The flash memory storage unit is characterized in that: the flash memory storage module comprises a single chip flash chip or at least two flash chips that are cascaded with each other.
8、 一种基于如权利要求 1  8. A claim based on claim 1
所述主板实现的数据读取方法, 其特征在于, 所述读取方法包含以下步骤 直接内存访问控制器和闪存控制器接收读取控制命令; The data reading method implemented by the main board is characterized in that: the reading method comprises the following steps: the direct memory access controller and the flash controller receive the read control command;
闪存控制器控制闪存存储单元将待读取的数据发送到缓存; The flash controller controls the flash storage unit to send the data to be read to the cache;
直接内存访问控制器控制缓存将数据发送到内存。 The direct memory access controller controls the cache to send data to memory.
9、 如权利要求 8  9. According to claim 8
所述的读取方法, 其特征在于: 在所述直接内存访问控制器控制缓存将数 据发送到内存步骤后, 还包括对所述数据进行错误检测和纠错的步骤。 The reading method is characterized in that: after the direct memory access controller controls the buffer to send data to the memory step, the method further comprises the steps of performing error detection and error correction on the data.
10、 一种基于如权利要求 1 10. A method based on claim 1
所述主板实现的数据写入方法, 其特征在于, 所述写入方法包含以下步骤 内存访问控制器和闪存控制器接收写入控制命令; The data writing method implemented by the main board is characterized in that the writing method comprises the following steps The memory access controller and the flash controller receive a write control command;
直接内存访问控制器控制待写入的数据从内存写入到缓存中; The direct memory access controller controls the data to be written from the memory to the cache;
闪存控制器对闪存存储单元分配地址; The flash controller allocates an address to the flash memory unit;
根据所述分配的地址, 闪存控制器将缓存中的数据写入到闪存存储单元中 11、 如权利要求 10 The flash controller writes the data in the cache to the flash storage unit according to the assigned address. 11. According to claim 10
所述的写入方法, 其特征在于: 所述闪存控制器对闪存存储单元分配地址 步骤前, 还包括保证闪存存储单元中逻辑地址与物理地址之间正确映射的 映射步骤。 The writing method is characterized in that: the flash controller allocates an address to the flash memory unit, and further includes a mapping step of ensuring a correct mapping between the logical address and the physical address in the flash memory unit.
PCT/CN2009/070945 2008-03-21 2009-03-23 Mainboard for providing flash storage function and storage method thereof WO2009115058A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810084052.6 2008-03-21
CN2008100840526A CN101539785B (en) 2008-03-21 2008-03-21 Mainboard with integrated flash memory storage unit

Publications (1)

Publication Number Publication Date
WO2009115058A1 true WO2009115058A1 (en) 2009-09-24

Family

ID=41090515

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070945 WO2009115058A1 (en) 2008-03-21 2009-03-23 Mainboard for providing flash storage function and storage method thereof

Country Status (3)

Country Link
CN (1) CN101539785B (en)
HK (1) HK1136368A1 (en)
WO (1) WO2009115058A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10448670B2 (en) 2011-12-30 2019-10-22 Philip Morris Products S.A. Aerosol generating system with consumption monitoring and feedback

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873904B (en) * 2016-12-30 2020-02-14 深圳忆联信息系统有限公司 Data writing method and solid state disk
CN110727401B (en) * 2019-09-09 2021-03-02 无锡江南计算技术研究所 Memory access system
CN112346660A (en) * 2020-11-13 2021-02-09 北京泽石科技有限公司 Data storage method and device and data reading method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350216A (en) * 2000-10-19 2002-05-22 周先谱 Computer main board design and processing method
CN2570853Y (en) * 2002-09-10 2003-09-03 深圳市元美达科技有限公司 Computer motherboard with built-in general purpose serial bus flash memory
US20050200628A1 (en) * 2004-03-10 2005-09-15 Eugene Feng Motherboard having a non-volatile memory which is reprogrammable through a video display port and a non-volatile memory switchable between two communication protocols

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350216A (en) * 2000-10-19 2002-05-22 周先谱 Computer main board design and processing method
CN2570853Y (en) * 2002-09-10 2003-09-03 深圳市元美达科技有限公司 Computer motherboard with built-in general purpose serial bus flash memory
US20050200628A1 (en) * 2004-03-10 2005-09-15 Eugene Feng Motherboard having a non-volatile memory which is reprogrammable through a video display port and a non-volatile memory switchable between two communication protocols

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10448670B2 (en) 2011-12-30 2019-10-22 Philip Morris Products S.A. Aerosol generating system with consumption monitoring and feedback

Also Published As

Publication number Publication date
HK1136368A1 (en) 2010-06-25
CN101539785A (en) 2009-09-23
CN101539785B (en) 2013-04-17

Similar Documents

Publication Publication Date Title
TWI704487B (en) Data storage device and operating method thereof
KR100708128B1 (en) An apparatus and method for controlling nand flash memory
US8949492B2 (en) Apparatus including buffer allocation management and related methods
US9164833B2 (en) Data storage device, operating method thereof and data processing system including the same
JP5918359B2 (en) Apparatus including memory system controller and associated method
EP2715732B1 (en) Apparatus including memory system controllers and related methods
EP2715730B1 (en) Apparatus including memory system controllers and related methods for memory management using blok tables
US8904095B2 (en) Data storage device and operating method thereof
US9524121B2 (en) Memory device having a controller unit and an information-processing device including a memory device having a controller unit
KR102114109B1 (en) Data storage device
KR101925870B1 (en) A Solid State Drive controller and a method controlling thereof
US20080046608A1 (en) Low-Power Extended USB Flash Device Without Polling
US9164804B2 (en) Virtual memory module
KR20130070251A (en) Bridge chipset and data storage system including the same
US9372741B2 (en) Data storage device and operating method thereof
CN115495389B (en) Memory controller, calculation memory device, and operation method of calculation memory device
US11204833B1 (en) NVM endurance group controller using shared resource architecture
TWI828963B (en) Apparatus and computer program product for controlling different types of storage units
KR20190022933A (en) Hybrid memory drives, computer systems, and related methods for operating multimode hybrid drives
WO2009115058A1 (en) Mainboard for providing flash storage function and storage method thereof
EP4105771A1 (en) Storage controller, computational storage device, and operational method of computational storage device
WO2024017073A1 (en) Method, apparatus, and system for sharing memory device
CN106775663B (en) SATA hard disk driving method based on SI L3132 controller under SYS/BIOS system
KR20240006932A (en) Memory controller and storage device including the same
CN112083878A (en) Disk controller

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09722328

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09722328

Country of ref document: EP

Kind code of ref document: A1