Memory control system with sequence processing unit
By introducing sequence processing units and finite state machines into the memory control system, the circuits of the memory devices are directly controlled, solving the problems of low resource utilization and performance in the traditional memory control architecture, and achieving more efficient memory device control and flexible development. process.
Patent Information
- Application Number
- CN202110339570.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-05-05
AI Technical Summary
In traditional memory control architecture, microcontrollers have low resource utilization and performance, and are difficult to maintain or update due to unintuitive operating instructions.
A memory control system is designed, which includes a memory interface circuit, a microcontroller and a sequence processing unit. It uses a finite state machine to receive and process task instructions, directly controls the circuit of the memory device, and updates the sequence of task instructions through a scheduling algorithm.
It improves resource utilization and performance, simplifies the control of storage devices, and enhances development flexibility and maintenance convenience.
Smart Images

Figure CN112925728B
Abstract
Description
[0001] This application is a divisional application of the invention patent application with the application date of May 5, 2019, application number 201980000831.X, and name “Memory control system with serial processing unit”. Technical Field
[0002] The present invention relates to a memory control system, and more particularly, to a memory control system having a sequence processing unit. Background Art
[0003] Since memory operations such as program operations and read operations usually involve complex signal control and address decoding, the memory is usually accessed through an internal memory control architecture. The traditional memory control architecture is usually based on a microcontroller to handle complex control, such as control of charge pumps, power regulators, address decoders, and sense amplifiers.
[0004] However, due to the conventional processing, such as read, decode and execute cycles required by the microcontroller, resource utilization and microcontroller performance are quite low. In addition, since the development of memory control is based on non-intuitive and readable operating instructions, it is difficult to maintain or update. Summary of the invention
[0005] An embodiment of the present invention discloses a memory control system, which includes a memory interface circuit, a microcontroller and a sequence processing unit.
[0006] The memory interface circuit receives a memory operation command and generates a plurality of operation instructions according to the memory operation command. The microcontroller is coupled to the memory interface circuit. The microcontroller receives a plurality of operation instructions and generates a plurality of task instructions according to a scheduling algorithm through a predetermined protocol. The sequence processing unit is coupled to the microcontroller and includes at least one finite state machine. The sequence processing unit receives a plurality of task instructions through a predetermined protocol and controls a plurality of circuits of a memory device according to the plurality of task instructions using the at least one finite state machine.
[0007] Another embodiment of the present invention discloses a method for operating a memory control system. The memory control system includes a memory interface circuit, a microcontroller, and a sequence processing unit. The sequence processing unit includes at least one finite state machine.
[0008] The method includes: the memory interface circuit generates a plurality of operation instructions according to the memory operation command, the microcontroller receives the plurality of operation instructions, the microcontroller issues a plurality of task instructions according to a scheduling algorithm through a predetermined protocol, the sequence processing unit receives the plurality of task instructions through a predetermined protocol, and the sequence processing unit uses the at least one finite state machine to control a plurality of circuits of the memory device according to the plurality of task instructions.
[0009] These and other objects of the present invention will no doubt become apparent to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment which is illustrated in the various figures and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A memory control system according to an embodiment of the present invention is shown.
[0011] Figure 2 A timing diagram showing the communication between the microcontroller and the sequence processing unit.
[0012] Figure 3 A task instruction set stored in an internal storage unit according to a scheduling algorithm is shown.
[0013] Figure 4 A task instruction set stored in an internal storage unit according to another scheduling algorithm is shown.
[0014] Figure 5 A method for operating the system according to an embodiment of the present invention is shown. Figure 1 A method for controlling a memory control system in a system. DETAILED DESCRIPTION
[0015] Figure 1 1 shows a memory control system 100 according to an embodiment of the present invention. The memory control system 100 includes a memory interface circuit 110, a microcontroller 120 and a sequence processing unit 130. Figure 1 In some embodiments, the memory control system 100 can be used to assist the host H1 in accessing the memory device M1, so the host H1 can control the memory device M1 through simple operations. In some embodiments, the memory interface circuit 110, the microcontroller 120 and the sequence processing unit 130 can be arranged in the same chip.
[0016] The memory interface circuit 110 may receive a memory operation command OC1. In some embodiments, the memory operation command OC1 may be a relatively high-level command generated by a host H1 (e.g., a central processing unit of a computer system) for controlling the memory device M1. The memory interface circuit 110 may decode the memory operation command OC1 and generate a plurality of operation instructions INS1 to INS2. X , to trigger the microcontroller 120 according to the memory operation command OC1, where X is a positive integer.
[0017] In some embodiments, the memory interface circuit 110 and the microcontroller 120 may communicate via a standard bus protocol, such as, but not limited to, a system management bus or an integrated circuit bus. In this case, the memory interface circuit 110 may generate operation instructions INS1 to INS2 by reorganizing the memory operation command OC1 to conform to the bus protocol used. X .
[0018] The microcontroller 120 is coupled to the memory interface circuit 110. The microcontroller 120 may receive the plurality of operation instructions INS1 to INS X , and generates multiple task instructions TSK1 to TSK according to the scheduling algorithm Y , where Y is a positive integer.
[0019] The sequence processing unit 130 is coupled to the microcontroller 120 and includes finite state machines FSM1 and FSM2. The sequence processing unit 130 may receive task instructions TSK1 to TSK2. Y , and use finite state machines FSM1 and FSM2 to follow task instructions TSK1 to TSK Y A circuit that controls the memory device M1.
[0020] In some embodiments, the microcontroller 120 and the sequence processing unit 130 can communicate via a predetermined protocol. For example, the sequence processing unit 130 may also include a load pin PIN LD , Operation instruction pin PIN INS and complete the pin PIN CM . Figure 2 A timing diagram of the communication between the microcontroller 120 and the sequence processing unit 130 is shown.
[0021] exist Figure 2 , the microcontroller 120 can increase the load pin PIN LD voltage to indicate that the upcoming task instruction TSK1 is valid. Therefore, when the microcontroller 120 sets the load pin PIN LD When the voltage of is pulled high, the sequence processing unit 130 will receive the task instruction TSK1.
[0022] In addition, after the task instruction TSK1 has been executed, the sequence processing unit 130 may increase the completion pin PIN CM The voltage is used to notify the microcontroller 120. However, in some other embodiments, the microcontroller 120 and the sequence processing unit 130 may communicate using different schemes and / or different pins according to system requirements.
[0023] In some embodiments, the sequence processing unit 130 may control circuits of the memory device M1, such as a power regulator for providing a required word line voltage, an address decoder for selecting a target memory cell, and / or a sense amplifier for sensing a read current. In addition, in some embodiments, the memory device M1 may be a non-volatile memory (NVM). Since the non-volatile memory may require a high programming voltage for a programming operation, the sequence processing unit 130 may also control a charge pump to provide a high program voltage.
[0024] In addition, in some embodiments, the sequence processing unit 130 may use different finite state machines to process different types of circuits. For example, the finite state machine FSM1 may be used to control circuits related to the core voltage, while the finite state machine FSM2 may be used to control circuits related to the page buffer. However, in some other embodiments, the sequence processing unit 130 may include more or fewer finite state machines to control the circuits of the memory device 100 according to system requirements.
[0025] Since the sequence processing unit 130 can control the memory device M1 using the finite state machines FSM1 and FSM2, it can perform control operations in a more direct manner without redundant routine operations required by the microcontroller used in the prior art. Therefore, resource utilization and performance of the sequence processing unit 130 can be improved.
[0026] Although the sequence processing unit 130 may directly control the circuits of the memory device 100, the microcontroller 120 may control the scheduling of the tasks executed by the sequence processing unit 130. That is, the microcontroller 120 may assign the task instructions TSK1 to TSK2 in a desired order according to the scheduling algorithm. Y In some embodiments, the task instructions may be stored in the internal storage unit 122 of the microcontroller 120 as a set having a desired order, and the microcontroller 120 may issue the task instructions in a predetermined order corresponding to the operation instructions sent from the memory interface circuit 110 .
[0027] Figure 3 FIG. 1 shows a task instruction set stored in the internal storage unit 122 corresponding to the operation instruction INS1 according to the scheduling algorithm. Figure 3In the example, when the microcontroller 120 receives the operation instruction INS1 , the microcontroller 120 may sequentially issue task instructions TSK1 , TSK2 , and TSK3 , as indicated by the task instruction set stored in the internal storage unit 122 .
[0028] For example, the task instruction TSK1 may mean that the read current is to be sensed, and the task instructions TSK2 and TSK3 may mean that the corresponding data in the page buffer are to be transferred respectively.
[0029] In this case, the order of task instructions to be issued can be easily adjusted by updating the task instruction set stored in the storage unit 122. For example, Figure 4 FIG. 2 shows a task instruction set stored in the internal storage unit 122 corresponding to the operation instruction INS1 according to the updated scheduling algorithm. Figure 4 In the example, when the microcontroller 120 receives the operation instruction INS1 , the microcontroller 120 will sequentially issue task instructions TSK2 , TSK1 , TSK3 , and TSK4 , as indicated by the task instruction set stored in the internal storage unit 122 .
[0030] That is, by updating the task instruction set stored in the storage unit 122 according to the desired scheduling algorithm, the task instructions and the order of the task instructions to be executed can be easily changed. Therefore, the scheduling algorithm can be updated during the development of the memory control system 100, thereby improving flexibility.
[0031] In addition, in some embodiments, the sequence processing unit 130 may also be directly coupled to the memory interface circuit 110. In this case, the memory interface circuit 110 may control the sequence processing unit 130 to directly access the memory device 100 in the test mode of the memory control system 100. This function may be useful during the development stage of the memory control system 100. For example, when the microcontroller 120 is stuck, the memory interface circuit 110 may bypass the microcontroller 120 and directly control the sequence processing unit 130 to locate the problem for debugging. In addition, this function may be convenient when testing new algorithms.
[0032] Figure 5 A method 200 for operating a memory control system 100 according to an embodiment of the present invention is shown. The method 200 includes steps S210 to S270.
[0033] S210: The memory interface circuit 110 generates a plurality of operation instructions INS1 to INS2 according to the memory operation command OC1. X ;
[0034] S220: The microcontroller 120 receives the plurality of operation instructions INS1 to INSX ;
[0035] S230: The microcontroller 120 issues a plurality of task instructions TSK1 to TSK2 according to a scheduling algorithm through a predetermined protocol. Y ;
[0036] S240: The sequence processing unit 130 receives the plurality of task instructions TSK1 to TSK2 through the predetermined protocol. Y ;
[0037] S250: The sequence processing unit 130 uses the finite state machines FSM1 and FSM2 to process the task instructions TSK1 to TSK2. Y A circuit for controlling the memory device M1;
[0038] S260: Update the scheduling algorithm of the microcontroller 120 to change the task instruction TSK1 to TSK Y The order of transmission; and
[0039] S270 : In the test mode of the memory control system 100 , the memory interface circuit 110 controls the sequence processing unit 120 to directly access the memory device M1 .
[0040] In some embodiments, the memory interface circuit 110 and the microcontroller 120 may communicate via a standard bus protocol, while the microcontroller 120 and the sequence processing unit 130 may communicate via a specially defined communication protocol. For example, in steps S230 and S240, the sequence processing unit 130 may communicate by following Figure 2 The timing diagram shown in the figure is used to receive the task instruction TSK1 to TSK Y However, in some other embodiments, the microcontroller 120 and the sequence processing unit 130 may communicate using other protocols according to system requirements.
[0041] In summary, the memory control system and the method for operating the memory control system can control the memory device using the sequence processing unit of the memory control system. Since the sequence processing unit is based on a finite state machine, the control of the memory device can be simplified with higher utilization and higher performance. In addition, since the memory control system also uses a microcontroller to schedule tasks, the scheduling algorithm can be flexibly updated by updating the instruction set stored in the internal storage unit of the microcontroller, thereby improving development efficiency.
[0042] Those skilled in the art will readily observe that various modifications and changes can be made to the apparatus and methods while retaining the teachings of the present invention. Therefore, the above disclosure should be interpreted as being limited only by the scope and metes and bounds of the appended claims.
Claims
1. A memory control system, include: A memory interface circuit configured to receive a memory operation command from a host and decode the memory operation command to generate an operation instruction; a microcontroller coupled to the memory interface circuit and configured to receive an operation instruction and generate a plurality of task instructions according to a scheduling algorithm through a predetermined protocol; as well as A sequence processing unit is coupled to the microcontroller and includes at least one finite state machine, and is configured to receive the plurality of task instructions through the predetermined protocol and control a plurality of circuits of a memory device according to the plurality of task instructions using the at least one finite state machine, wherein, in a test mode of the memory control system, the memory interface circuit controls the sequence processing unit to access the memory device.
2. The memory control system according to claim 1, It is characterized in that The memory interface circuit and the microcontroller communicate via a standard bus protocol.
3. The memory control system according to claim 1, It is characterized in that The sequence processing unit further includes a load pin and an operation instruction pin; and When the voltage of the load pin is pulled high by the microcontroller, the sequence processing unit receives a task instruction.
4. The memory control system according to claim 3, It is characterized in that The sequence processing unit also includes a completion pin; and When the task instruction has been executed, the sequence processing unit raises the voltage of the completion pin to notify the microcontroller.
5. The memory control system according to claim 1, It is characterized in that The storage device is a non-volatile memory (NVM).
6. The memory control system according to claim 1, It is characterized in that The plurality of circuits of the memory device include a charge pump, a power regulator, an address decoder, and / or a sense amplifier.
7. The memory control system according to claim 1, It is characterized in that The microcontroller is further configured to update the scheduling algorithm to change the order of the plurality of task instructions.
8. The memory control system according to claim 1, It is characterized in that The sequence processing unit is also coupled to the memory interface circuit.
9. The memory control system according to claim 1, It is characterized in that The sequence processing unit includes a plurality of finite state machines.
10. The memory control system according to claim 9, It is characterized in that The plurality of finite state machines are each coupled to a different circuit.
11. A storage device, include: Storage devices; as well as A memory control system, which controls the memory device, the memory control system comprising: A memory interface circuit configured to receive a memory operation command from a host and decode the memory operation command to generate an operation instruction; a microcontroller coupled to the memory interface circuit and configured to receive an operation instruction and generate a plurality of task instructions according to a scheduling algorithm through a predetermined protocol; and A sequence processing unit is coupled to the microcontroller and includes at least one finite state machine, and is configured to receive the plurality of task instructions through the predetermined protocol and control the plurality of circuits of the memory device according to the plurality of task instructions using the at least one finite state machine, wherein, in a test mode of the memory control system, the memory interface circuit controls the sequence processing unit to directly access the memory device.
12. A memory control system, include: A memory interface circuit configured to receive a memory operation command from a host and decode the memory operation command to generate an operation instruction; as well as A sequence processing unit is coupled to the memory interface circuit and the memory device and includes at least one finite state machine, wherein the sequence processing unit is configured to receive the operation instruction and access the memory device using the finite state machine based on the operation instruction, wherein in a test mode of the memory control system, the memory interface circuit controls the sequence processing unit to access the memory device.
13. A memory control system, include: A memory interface circuit configured to receive a memory operation command from a host and decode the memory operation command to generate an operation instruction; a microcontroller coupled to the memory interface circuit and configured to receive an operation instruction and generate a plurality of task instructions according to a scheduling algorithm through a predetermined protocol; as well as A sequence processing unit is coupled to the microcontroller and the memory interface circuit and includes at least one finite state machine, wherein the sequence processing unit is configured to control a memory device according to the plurality of task instructions, wherein in a test mode of the memory control system, the memory interface circuit controls the sequence processing unit to access the memory device.
14. A method for operating a memory control system, the memory control system comprising a memory interface circuit, a microcontroller and a sequence processing unit, in, The sequence processing unit includes at least one finite state machine, and the method includes: The memory interface circuit decodes the memory operation command received from the host to generate an operation instruction; The microcontroller receives an operation instruction; The microcontroller issues a plurality of task instructions according to a scheduling algorithm through a predetermined protocol; The sequence processing unit receives the plurality of task instructions through the predetermined protocol; and The sequence processing unit uses the at least one finite state machine to control multiple circuits of the memory device according to the multiple task instructions, wherein in a test mode of the memory control system, the memory interface circuit controls the sequence processing unit to directly access the memory device.
15. The method according to claim 14, It is characterized in that The memory interface circuit and the microcontroller communicate via a standard bus protocol.
16. The method according to claim 14, It is characterized in that The sequence processing unit further includes a load pin and an operation instruction pin, and the method further includes: The microcontroller increases the voltage of the load pin; and When the voltage of the load pin is pulled high, the sequence processing unit receives a task instruction.
17. The method according to claim 16, It is characterized in that The sequence processing unit further includes a completion pin, and the method further includes: When the task instruction has been executed, the sequence processing unit raises the voltage of the completion pin to notify the microcontroller.
18. The method according to claim 14, It is characterized in that The plurality of circuits of the memory device include a charge pump, a power regulator, an address decoder, and / or a sense amplifier.
19. The method according to claim 14, Features Also includes: The scheduling algorithm of the microcontroller is updated to change the order of the plurality of task instructions.
