Flash memory centralized control method, device, control chip and storage medium

By implementing the flash memory centralized control method on the control chip, the problem of circuit complexity in the existing technology is solved, the integration of NAND and NOR functions on the same SPI chip is realized, the circuit design is simplified and the work efficiency is improved.

CN115033178BActive Publication Date: 2024-09-10NANJING HEYANGTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210701892.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-21
Publication Date
2024-09-10
Estimated Expiration
2042-06-21

AI Technical Summary

Technical Problem

In the existing technology, users need to set up two independent chips, SPI-NOR Flash and SPI-NAND Flash, at the same time, which increases the complexity of the circuit and makes it difficult to realize both NOR and NAND functions on one chip.

Method used

By implementing the flash memory centralized control method on the control chip, the I/O unit is used to receive external instructions and send them to the digital logic unit. The digital logic unit judges and analyzes the validity of the instructions, and the controller unit parses the operation codes and searches for standard operating instructions. Send operation information to NAND Flash or NOR Flash based on identity information to achieve multi-functional control of the same chip.

Benefits of technology

It realizes both NAND and NOR functions on the same SPI chip, simplifies circuit design, reduces the possibility of instruction loss when the digital logic unit is busy, and improves work efficiency and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033178B
    Figure CN115033178B
Patent Text Reader

Abstract

The present application relates to a flash memory centralized control method, device, control chip and storage medium, which are applied in the field of chip design, wherein the method includes: when the I / O unit receives an external instruction, the external instruction is sent to the digital logic unit; the digital logic unit sends the external instruction to the controller unit; the controller unit parses the external instruction to obtain an external operation code and compares the external operation code with the standard operation code in the standard library; if there is a standard operation code consistent with the external operation code, the operation instruction corresponding to the standard operation code is searched in the standard library, and the operation instruction is sent to the digital logic unit; when the digital logic unit receives the operation instruction, the operation information is sent to the NAND Flash or NOR Flash according to the identity information. The technical effect of the present application is that the same SPI chip can have both NAND and NOR functions, so that the control chip used by the customer can no longer distinguish between NOR and NAND products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of chip design, and in particular to a flash memory centralized control method, device, control chip and storage medium. Background Art

[0002] NOR Flash devices are a type of non-volatile flash memory, which is characterized by on-chip execution, so that the application can run directly in the Flash memory, without having to read the code into the system RAM, making it have a higher transmission efficiency. It is a better storage device than a hard disk drive, especially in low-capacity applications not exceeding 4GB. As people continue to pursue products with lower power consumption, lighter weight and better performance, NAND Flash has proven to be extremely attractive. NAND Flash is a non-volatile storage technology, which means that data can still be saved after power failure.

[0003] There are two different types of products on the market: SPI-NOR Flash and SPI-NAND Flash. Although their application fields are similar, due to the different characteristics of NAND Flash and NOR Flash, manufacturers will place two independent chips on the same circuit board for product storage applications.

[0004] In the process of implementing the present application, the inventors found that there are at least the following problems in the technology: when users use SPI flash memory, in order to distinguish between NOR Flash and NAND Flash products, they need to set up two SPI chips at the same time, which increases the complexity of the circuit. Summary of the invention

[0005] In order to realize both NOR and NAND functions on one chip, the present application provides a flash memory centralized control method, device, control chip and storage medium.

[0006] In a first aspect, the present application provides a flash memory centralized control method, which adopts the following technical solution: the flash memory centralized control method is applied to a control chip, and the method includes:

[0007] When the I / O unit receives an external instruction from an external device, the external instruction is sent to the digital logic unit;

[0008] When receiving the external instruction, the digital logic unit judges the legality of the external instruction; if the external instruction is legal, the external instruction is sent to the controller unit;

[0009] When receiving the external instruction, the controller unit parses the external instruction to obtain an external operation code;

[0010] The controller unit compares the external operation code with the standard operation code in the preset standard library; if there is a standard operation code consistent with the external operation code, the controller unit searches for an operation instruction corresponding to the standard operation code in the preset standard library according to the standard operation code, the operation instruction including identity information and operation information corresponding to the NAND Flash and the NOR Flash, and sends the operation instruction to the digital logic unit;

[0011] When receiving the operation instruction, the digital logic unit sends the operation information to the NAND Flash or the NOR Flash according to the identity information in the operation instruction.

[0012] Through the above technical solution, the I / O unit on the control chip receives an external instruction, and the controller unit parses the external instruction to obtain an external operation code, which includes identity information and operation information corresponding to NAND Flash and NOR Flash. The digital logic unit sends the operation information to NAND Flash or NOR Flash according to the identity information; so that the controller unit and the digital logic unit can centrally control NAND Flash and NOR Flash on the same chip, thereby achieving the effect of making the same SPI chip have both NAND and NOR functions, so that the control chip used by the customer can no longer distinguish between NOR and NAND products.

[0013] In a specific implementation scheme, the digital logic unit includes a state identification bit; the state identification bit includes an idle state or a busy state; and sending the external instruction to the digital logic unit includes:

[0014] The I / O unit queries the status identification bit of the digital logic unit;

[0015] If the status flag is in a busy state, the I / O unit continues to query the status flag;

[0016] If the state flag is in an idle state, the I / O unit sends the external instruction to the digital logic unit.

[0017] Through the above technical solution, before sending an external instruction to the digital logic unit, the I / O unit will query the status flag of the digital logic unit; if the status flag shows an idle state, the I / O unit will send the external instruction to the digital logic unit; if the status flag shows a busy state, the I / O unit will continue to query the status flag of the digital logic unit until the status flag shows an idle state. This reduces the possibility that the I / O unit sends an external instruction to the digital logic unit when the digital logic unit is busy, thereby reducing the possibility that the external instruction is lost due to the digital logic unit being unable to receive the external instruction.

[0018] In a specific embodiment, the method further comprises:

[0019] When receiving the external instruction, the digital logic unit modifies the status flag to a busy state.

[0020] Through the above technical solution, once the digital logic unit receives an external instruction, it modifies the status flag to a busy state; this helps the digital logic unit to no longer receive other external instructions when judging the legality of the external instruction, so that no other external instructions will interfere with the digital logic unit, thereby improving the working efficiency of the digital logic unit.

[0021] In a specific implementation scheme, the judging of the legality of the external instruction includes:

[0022] The digital logic unit compares the external instruction with a comparison instruction in a preset instruction library;

[0023] If there is a comparison instruction that is consistent with the external instruction, then the external instruction is determined to be legal;

[0024] Through the above technical solution, the digital logic unit judges the legality of external instructions by comparing them with the comparison instructions in a preset instruction library, which helps to reduce the possibility of subsequent parsing errors due to illegal external instructions. Since the legality of the external instructions has been judged in advance, the external instructions sent to the controller unit are all legal instructions, reducing the occurrence of parsing failures of the controller unit due to illegal external instructions, thereby minimizing the problem of waste of controller unit resources.

[0025] In a specific embodiment, the method further comprises:

[0026] When the digital logic unit sends the external instruction to the controller unit, the digital logic unit modifies the state flag bit to an idle state.

[0027] Through the above technical solution, after the digital logic unit has determined the legitimacy of an instruction and sent the external instruction to the controller unit, it can receive other external instructions, which helps to improve the working efficiency and resource utilization of the digital logic unit.

[0028] In a specific possible implementation scheme, sending the operation information to the NAND Flash or the NOR Flash according to the identity information in the operation instruction specifically includes:

[0029] The digital logic unit queries the status of the NAND Flash or the NOR Flash according to the identity information;

[0030] If the NAND Flash or the NOR Flash is in an idle state, sending the operation information to the NAND Flash or the NOR Flash in the idle state;

[0031] Otherwise, the digital logic unit continues to query the status of the NAND Flash or the NOR Flash.

[0032] Through the above technical solution, when the digital logic unit sends operation information to NAND Flash or NOR Flash, it will first query the status of NAND Flash or NOR Flash, and only when the status bit of NAND Flash or NOR Flash is idle, will the operation information be sent to NAND Flash or NOR Flash according to the identity information, thereby reducing the possibility that NAND Flash or NOR Flash cannot respond in time or the operation information is lost due to receiving the operation information sent by the digital logic unit while the NAND Flash or NOR Flash is in an occupied state, thereby further improving the reliability of the control chip.

[0033] In a specific possible implementation manner, after sending the operation information to the NAND Flash or the NOR Flash according to the identity information in the operation instruction, the method further includes:

[0034] When the NAND Flash or the NOR Flash receives the operation information, the NAND Flash or the NOR Flash changes the state to a busy state;

[0035] If the NAND Flash or the NOR Flash fails to execute the operation information, a feedback signal is generated, and the feedback signal is sent to the digital logic unit, the digital logic unit sends the feedback signal to the I / O unit, and the I / O unit sends the feedback signal to the external device;

[0036] When the NAND Flash or the NOR Flash finishes executing the operation information, the state of the NAND Flash or the NOR Flash is modified to an idle state.

[0037] Through the above technical solution, after receiving the operation information, the NAND Flash or NOR Flash will first modify the state to a busy state, thereby reducing the possibility of the digital logic unit continuing to send operation instructions to the NAND Flash or NOR Flash; after the NAND Flash or NOR Flash modifies its own state, it starts to execute the operation information. If the execution of the operation information fails, the NAND Flash or NOR Flash will send a feedback signal to the external device to inform the user that the operation has failed, which helps to improve the interactivity with the user; when the execution of the operation information is completed, the NAND Flash or NOR Flash will modify the state to an idle state, which helps to inform the digital logic unit that it can continue to send operation information.

[0038] In a second aspect, the present application provides a flash memory centralized control device, which adopts the following technical solution: the device includes an I / O unit, a digital logic unit, a controller unit, a NAND Flash and a NOR Flash; wherein:

[0039] The I / O unit is used to send the external command to the digital logic unit when receiving the external command from the external device;

[0040] A digital logic unit, configured to judge the legality of the external instruction upon receiving the external instruction; if the external instruction is legal, send the external instruction to the controller unit;

[0041] A controller unit, configured to parse the external instruction to obtain an external operation code upon receiving the external instruction;

[0042] The controller unit is also used to compare the external operation code with the standard operation code in the preset standard library; if there is a standard operation code consistent with the external operation code, the controller unit searches for an operation instruction corresponding to the standard operation code in the preset standard library according to the standard operation code, the operation instruction includes identity information and operation information corresponding to NAND Flash and NOR Flash, and sends the operation instruction to the digital logic unit;

[0043] The digital logic unit is further configured to send the operation information to the NAND Flash or the NOR Flash according to the identity information in the operation instruction when the operation instruction is received;

[0044] NAND Flash, used for executing the operation information upon receiving the operation information;

[0045] NOR Flash is used to execute the operation information when receiving the operation information.

[0046] Through the above technical solution, the I / O unit on the control chip receives an external instruction, and the controller unit parses the external instruction to obtain an external operation code, which includes identity information and operation information corresponding to NAND Flash and NOR Flash. The digital logic unit sends the operation information to NAND Flash or NOR Flash according to the identity information; so that the digital logic unit and the controller unit can centrally control NAND Flash and NOR Flash on the same chip, thereby achieving the effect that the same SPI chip can have both NAND and NOR functions, so that the control chip used by the customer can no longer distinguish between NOR and NAND products.

[0047] In a third aspect, the present application provides a control chip, which adopts the following technical solution: it includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and executes any of the above-mentioned flash memory centralized control methods.

[0048] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: storing a computer program that can be loaded by a processor and execute any of the above-mentioned flash memory centralized control methods.

[0049] In summary, the present application includes at least one of the following beneficial technical effects:

[0050] 1. NAND Flash and NOR Flash can be centrally controlled on the same chip, so that the same SPI chip can have both NAND and NOR functions, so that the control chip used by customers no longer needs to distinguish between NOR and NAND products;

[0051] 2. Reduce the possibility that the I / O unit sends external instructions to the digital logic unit when the digital logic unit is busy, thereby reducing the possibility that the external instructions are lost due to the digital logic unit being unable to receive the external instructions. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a flow chart of the flash memory centralized control method in an embodiment of the present application.

[0053] Figure 2 It is a structural block diagram of the flash memory centralized control device in an embodiment of the present application.

[0054] Reference numerals: 301, I / O unit; 302, digital logic unit; 303, controller unit; 304, NAND Flash; 305, NOR Flash. DETAILED DESCRIPTION

[0055] The following is combined with Figure 1-2 This application is described in further detail.

[0056] An embodiment of the present application discloses a method for centralized control of flash memory, which is applied to the field of chip control. The instructions corresponding to the method are preset and stored in the control chip. The control chip in this embodiment can be an SPI chip. The control chip and external devices realize data transmission through a bus. The control chip is provided with an I / O unit, a digital logic unit, a controller unit, and NAND Flash and NOR Flash, that is, a NAND memory and a NOR memory; the external device includes an input device and an output device, the input device can be a keyboard and a mouse, and the output device can be a display screen. The input device is used to send external instructions to the control chip, and the output device is used to display feedback information from the control chip.

[0057] like Figure 1 As shown, the method comprises the following steps:

[0058] S10, when the I / O unit receives an external instruction, it directly sends the external instruction to the digital logic unit.

[0059] Specifically, the user uses the input device of the external device to send external instructions to the I / O unit. When the I / O unit receives the external instructions from the input device, it sends the external instructions to the digital logic unit. The I / O unit only receives and sends external instructions and does not perform other operations on the external instructions.

[0060] S20, when the digital logic unit receives the external instruction, it determines the legality of the external instruction; if the external instruction is a legal instruction, the digital logic unit sends the external instruction to the controller unit.

[0061] Specifically, when the digital logic unit receives an external instruction, it compares the external instruction with the comparison instruction in the preset instruction library. The comparison instruction is a standard instruction for controlling NOR Flash and NAND Flash that is pre-entered by the technician in the instruction library; if there is an external instruction that is consistent with the comparison instruction, the external instruction is determined to be a legal instruction and sent to the controller unit; otherwise, the external instruction is determined to be an illegal instruction, and a warning instruction is generated and sent to the I / O unit. The I / O unit sends the warning instruction to the output device of the external device and the output device displays it to inform the user that the external instruction is an illegal instruction. Judging the legality of the external instruction reduces the possibility of program operation jams due to illegal external instructions, thereby improving the running smoothness of the control chip.

[0062] S30, when the controller unit receives a legal external instruction, it parses the external instruction to obtain an external operation code, searches for an operation instruction in a standard library through the external operation code, and sends the operation instruction to the digital logic unit.

[0063] Specifically, the controller unit parses the external instruction to obtain an external operation code, and compares the external operation code with the standard operation code in the preset standard library; the standard operation code is an instruction pre-entered by the technician in the standard library to inform the NAND Flash or NOR Flash of the operation content to be performed; if there is an external operation code consistent with the standard operation code, the operation instruction corresponding to the standard operation code is searched in the preset standard library according to the standard operation code, and the operation instruction includes operation information and identity information. The operation information is used to inform the NAND Flash or NOR Flash of the operation to be performed, and the identity information is used to inform the digital logic unit whether to send the operation information to the NAND Flash or the NOR Flash, and the controller unit sends the operation instruction to the digital logic unit;

[0064] If there is no external opcode that is consistent with the standard opcode, the controller unit generates a parsing failure signal, and the controller unit sends the parsing failure signal to the I / O unit, and the I / O unit sends the parsing failure signal to the output device of the external device, and the output device informs the user of the external command parsing failure by popping up a pop-up window, etc. Therefore, the controller unit can integrate the internal commands of NAND Flash and NOR Flash through a preset standard library, so that NAND and NOR functions can be on the same chip.

[0065] S40, when receiving the operation instruction, the digital logic unit sends the operation information in the operation instruction to the NAND Flash or the NOR Flash according to the identity information in the operation instruction.

[0066] Specifically, when the digital logic unit receives an operation instruction, it checks the identity information in the operation instruction and sends the operation information to the corresponding memory according to the identity information. For example, if the identity information contained in the operation instruction is displayed as NORFlash, the digital logic will send the operation information in the received operation instruction to NOR Flash. Therefore, the controller unit and the digital logic unit parse and convert external commands through firmware, so that users can control NOR Flash and NAND Flash on the same chip, so that one chip has both NOR and NAND functions, thereby simplifying customer applications; using this flash memory centralized control method, two chips with NAND and NOR functions can be integrated into one chip, the circuit design is simplified, and the cost of material preparation and cost will also be reduced.

[0067] In one embodiment, considering that when the I / O unit sends an external instruction to the digital logic unit, it may be unable to respond in time because the digital logic unit is occupied, after receiving the external instruction, the I / O unit may also perform the following steps: first query the status flag of the digital logic unit, the status flag is used to record the current status of the digital logic unit, and the status flag is divided into two states: idle and busy; the status flag is idle, indicating that the digital logic unit is currently in an unoccupied state, and the status flag is busy, indicating that the digital logic unit is currently in an occupied state; if the status flag of the digital logic unit is idle, the I / O unit sends the external instruction to the digital logic unit; if the status flag of the digital logic unit is busy, the I / O unit will continue to query the status flag of the digital logic unit at intervals of a preset time until the status flag is idle. Therefore, when the digital logic unit is busy, the I / O unit no longer sends external instructions to the digital logic unit, thereby reducing the possibility of external instructions being lost due to the inability to respond to the external instructions in time.

[0068] In one embodiment, considering that after receiving an external instruction, the digital logic unit needs to determine the legitimacy of the external instruction, which causes the digital logic unit to be occupied and unable to process other external instructions, the flash memory centralized control method also includes the following steps: after the digital logic unit receives the external instruction, the digital logic unit will modify the status flag to a busy state. Therefore, when the I / O unit wants to continue to send external instructions to the digital logic unit, it will query that the status flag of the digital logic unit is a busy state, and then will not continue to send external instructions to the digital logic unit, thereby reducing the possibility of external instructions being lost due to the inability to respond to the external instructions in a timely manner.

[0069] In one embodiment, consider the situation that after the digital logic unit sends the external instruction to the controller unit, the digital logic unit is in an idle state, while the status flag is in a busy state. After the digital logic unit sends the external instruction to the controller unit, the status flag can be modified to an idle state. Specifically, the digital logic unit modifies the status flag to an idle state by the following steps: first query its own status flag, if the status flag is in a busy state, modify the status flag to an idle state; if the status flag is in an idle state, do nothing. Therefore, the I / O unit queries that the status flag of the digital logic unit is in an idle state, and then continues to send external instructions to the digital logic unit, thereby avoiding the occurrence of process interruptions caused by the status flag of the digital logic unit being in a busy state as much as possible.

[0070] In one embodiment, before sending the operation information to the NAND Flash or NOR Flash, the digital logic unit may further perform the following steps: query the status of the NAND Flash or NOR Flash; if the status of the NAND Flash or NOR Flash is idle, directly send the operation information to the NAND Flash or NOR Flash corresponding to the identity information according to the identity information; if the status of the NAND Flash or NOR Flash is busy, the digital logic unit will continue to query the status of the NAND Flash or NOR Flash at a preset time interval until the status of the NAND Flash or NOR Flash is idle. Therefore, the operation of the digital logic unit querying the status of the NAND Flash or NOR Flash reduces the possibility of the digital logic unit sending the operation information to the NAND Flash or NOR Flash when the NAND Flash or NOR Flash is in an occupied state, thereby causing the loss of the operation information.

[0071] After receiving the operation information, NAND Flash or NOR Flash immediately executes the operation information. If NAND Flash or NOR Flash fails to execute the operation information, NAND Flash or NOR Flash generates feedback information, which is used to inform the user that the operation execution failed, and sends the feedback information to the digital logic unit, which sends the feedback information to the I / O unit, which sends the feedback information to the output device, and the output device informs the user of the operation execution failure by popping up a pop-up window, etc. Therefore, the user can clearly know whether the operation he wants to execute is successful, which improves the interactivity with the user.

[0072] After the NAND Flash or NOR Flash finishes executing the operation information, it can also perform the following steps: change its own state to an idle state. Specifically, the NAND Flash or NOR Flash first queries its own state. If the state is a busy state, the state is changed to an idle state; if the state is an idle state, no action is taken. Therefore, the process interruption caused by the NAND Flash or NOR Flash state being always busy is avoided as much as possible.

[0073] The implementation principle of the embodiment of the present application is as follows: the user sends an external instruction to the I / O unit through an input device, and the I / O unit first queries the status identifier of the digital logic unit. If the status identifier is an idle state, the I / O unit sends the external instruction to the digital logic unit, and the digital logic unit determines the legality of the received external instruction. If the external instruction is a legal instruction, the digital logic unit sends the external instruction to the controller unit, and the controller unit parses the external instruction to obtain an external operation code, and compares the external operation code with the standard operation code in a preset standard library; if there is a standard operation code consistent with the external operation code, the controller unit searches for an operation instruction corresponding to the standard operation code in the preset standard library according to the standard operation code, and sends the operation instruction to the digital logic unit. After receiving the operation instruction, the digital logic unit queries the status of the NAND Flash or NOR Flash. If the status of the NAND Flash or NOR Flash is an idle state, the digital logic unit sends the operation information to the NAND Flash or NOR Flash corresponding to the identity information according to the identity information in the operation instruction.

[0074] Figure 1 FIG. 1 is a flow chart of a flash memory centralized control method in one embodiment. It should be understood that although Figure 1The steps in the flowchart are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows; unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps may be executed in other orders; and Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0075] Based on the above method, an embodiment of the present application also discloses a flash memory centralized control device.

[0076] like Figure 2 As shown, the device includes an I / O unit 301, a digital logic unit 302, a controller unit 303, a NAND Flash 304, and a NOR Flash 305:

[0077] The I / O unit 301 is used to send the external command to the digital logic unit 302 when receiving the external command from the external device;

[0078] The digital logic unit 302 is used to judge the legality of the external instruction when receiving the external instruction; if the external instruction is legal, the external instruction is sent to the controller unit 303;

[0079] The controller unit 303 is used to parse the external instruction to obtain the external operation code when receiving the external instruction;

[0080] The controller unit 303 is also used to compare the external operation code with the standard operation code in the preset standard library; if there is a standard operation code that is consistent with the external operation code, the controller unit 303 searches for an operation instruction corresponding to the standard operation code in the preset standard library according to the standard operation code, and the operation instruction includes identity information and operation information corresponding to NAND Flash 304 and NOR Flash 305, and sends the operation instruction to the digital logic unit 302;

[0081] The digital logic unit 302 is also used to send the operation information to the NAND Flash 304 or the NOR Flash 305 according to the identity information in the operation instruction when receiving the operation instruction;

[0082] NAND Flash 304, used for executing the operation information when receiving the operation information;

[0083] NOR Flash 305 is used to execute the operation information when receiving the operation information.

[0084] The embodiment of the present application also discloses a control chip.

[0085] Specifically, the control chip includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute the above-mentioned flash memory centralized control method.

[0086] The embodiment of the present application also discloses a computer-readable storage medium.

[0087] Specifically, the computer-readable storage medium stores a computer program that can be loaded by a processor and executes the above-mentioned flash memory centralized control method. The computer-readable storage medium includes, for example: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0088] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.

Claims

1. A flash memory centralized control method, characterized in that: The flash memory centralized control method is applied to a control chip, the control chip includes an I / O unit, a digital logic unit, a controller unit, and NOR Flash and NAND Flash, and the method includes: When the I / O unit receives an external instruction from an external device, the external instruction is sent to the digital logic unit; the digital logic unit includes a state identification bit; the state identification bit includes an idle state or a busy state; sending the external instruction to the digital logic unit includes: The I / O unit queries the status identification bit of the digital logic unit; If the status flag is in a busy state, the I / O unit continues to query the status flag; If the state flag is in an idle state, the I / O unit sends the external instruction to the digital logic unit; When receiving the external instruction, the digital logic unit judges the legality of the external instruction; if the external instruction is legal, the external instruction is sent to the controller unit; When receiving the external instruction, the controller unit parses the external instruction to obtain an external operation code; The controller unit compares the external operation code with the standard operation code in the preset standard library; if there is a standard operation code consistent with the external operation code, the controller unit searches for an operation instruction corresponding to the standard operation code in the preset standard library according to the standard operation code, the operation instruction including identity information and operation information corresponding to NAND Flash and NOR Flash, and sends the operation instruction to the digital logic unit; When receiving the operation instruction, the digital logic unit sends the operation information to the NAND Flash or the NOR Flash according to the identity information in the operation instruction.

2. The flash memory centralized control method according to claim 1, characterized in that: The method further comprises: When receiving the external instruction, the digital logic unit modifies the status flag to a busy state.

3. The flash memory centralized control method according to claim 1, characterized in that: The judging of the legality of the external instruction includes: The digital logic unit compares the external instruction with a comparison instruction in a preset instruction library; If there is a comparison instruction that is consistent with the external instruction, it is determined that the external instruction is legal.

4. The flash memory centralized control method according to claim 1, characterized in that: The method further comprises: When the digital logic unit sends the external instruction to the controller unit, the digital logic unit modifies the state flag bit to an idle state.

5. The flash memory centralized control method according to claim 1, characterized in that: The sending the operation information to the NAND Flash or the NOR Flash according to the identity information in the operation instruction specifically includes: The digital logic unit queries the status of the NAND Flash or the NOR Flash according to the identity information; If the NAND Flash or the NOR Flash is in an idle state, sending the operation information to the NAND Flash or the NOR Flash in the idle state; Otherwise, the digital logic unit continues to query the status of the NAND Flash or the NOR Flash.

6. The flash memory centralized control method according to claim 1, characterized in that: After sending the operation information to the NAND Flash or the NOR Flash according to the identity information in the operation instruction, the method further includes: When the NAND Flash or the NOR Flash receives the operation information, the NAND Flash or the NOR Flash changes the state to a busy state; If the NAND Flash or the NOR Flash fails to execute the operation information, a feedback signal is generated, and the feedback signal is sent to the digital logic unit, the digital logic unit sends the feedback signal to the I / O unit, and the I / O unit sends the feedback signal to the external device; When the NAND Flash or the NOR Flash finishes executing the operation information, the state of the NAND Flash or the NOR Flash is modified to an idle state.

7. A flash memory centralized control device, characterized in that: The device comprises an I / O unit, a digital logic unit, a controller unit, a NAND Flash and a NOR Flash; wherein: The I / O unit is used to send the external instruction to the digital logic unit when receiving an external instruction from an external device; the digital logic unit includes a status identification bit; the status identification bit includes an idle state or a busy state; the sending of the external instruction to the digital logic unit includes: the I / O unit queries the status identification bit of the digital logic unit; if the status identification bit is a busy state, the I / O unit continuously queries the status identification bit; if the status identification bit is an idle state, the I / O unit sends the external instruction to the digital logic unit; A digital logic unit, configured to judge the legality of the external instruction upon receiving the external instruction; if the external instruction is legal, send the external instruction to the controller unit; A controller unit, configured to parse the external instruction to obtain an external operation code upon receiving the external instruction; The controller unit is further used to compare the external operation code with a standard operation code in a preset standard library; if there is a standard operation code that is consistent with the external operation code, the controller unit searches for an operation instruction corresponding to the standard operation code in the preset standard library according to the standard operation code, the operation instruction including identity information and operation information corresponding to the NAND Flash and the NOR Flash, and sends the operation instruction to the digital logic unit; The digital logic unit is further configured to send the operation information to the NAND Flash or the NOR Flash according to the identity information in the operation instruction when the operation instruction is received; NAND Flash, used for executing the operation information upon receiving the operation information; NOR Flash is used to execute the operation information when receiving the operation information.

8. A control chip, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 6.