Memory controller and method for controlling access to a memory module
By introducing the central buffer of the memory controller into the computer system and using the verification module and the access control module to determine the identity authentication information of the command/address signal, the problem that the existing technology cannot control the access of the memory module is solved, and the access command signal is realized. security management.
Patent Information
- Application Number
- CN202010440689.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-05-22
AI Technical Summary
The existing computer system cannot control access to the storage module by analyzing the identity source of the access signal, resulting in the inability to effectively manage the access command signal.
A memory controller is designed, including a central buffer, which receives command/address signals and identity authentication information, and determines whether the signals comply with permission management rules through the verification module. The access control module selectively sends signals to the storage module.
Effective control of access command signals is achieved, ensuring that only signals that comply with permissions are sent to the storage module, which improves the security and management capabilities of access to the storage module.
Smart Images

Figure CN113704144B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of memory technology, and more specifically, to a memory controller and a method for controlling access to a memory module. Background Art
[0002] In a computer system, a memory module provides data access and storage for the central processing unit (CPU) during operation. However, in current computer systems, the CPU accesses the memory module by sending a signal including an access command and an access address. Such a signal does not contain identity authentication information related to the signal source, so it is impossible to control access to the storage module by analyzing the identity source of the access signal.
[0003] Therefore, it is necessary to improve the existing computer system. Summary of the invention
[0004] An object of the present application is to provide a memory controller and a method for controlling access to a memory module to improve control over access command signals.
[0005] According to one aspect of the present application, a memory controller is provided, which is coupled between a memory module and a main controller to control the main controller's access to the memory module. The memory controller includes a central buffer, which is configured to be coupled between the main controller and the memory module, receive a command / address signal from the main controller via a command / address channel, and selectively provide the command / address signal to the memory module, and the central buffer also receives identity authentication information from the main controller for identifying the source of the command / address signal. The central buffer includes: a verification module, which is coupled to the command / address channel to receive the command / address signal and the identity authentication information, and the verification module is configured to determine whether the corresponding command / address signal complies with the authority management rule based on the identity authentication information, and generate a judgment result; and an access control module, which is coupled to the command / address channel to receive the command / address signal, and is coupled to the verification module to receive the judgment result generated by the verification module, and the access control module is configured to process the command / address signal based on the judgment result generated by the verification module to selectively send the command / address signal to the storage module.
[0006] In some embodiments, the permission management rules include: the access command type allowed by each of the identity authentication information; and / or the access address range of the storage module allowed by each of the identity authentication information.
[0007] In some embodiments, the verification module is further configured to: obtain the access command type allowed by the corresponding identity authentication information included in the permission management rule based on the identity authentication information corresponding to the command / address signal; compare the access command included in the command / address signal with the allowed access command type; and when the access command included in the command / address signal is consistent with the allowed access command type, judge that the command / address signal complies with the permission management rule; or when the access command included in the command / address signal is inconsistent with the allowed access command type, judge that the command / address signal does not comply with the permission management rule.
[0008] In some embodiments, the verification module is further configured to: obtain the access address range allowed by the corresponding identity authentication information included in the permission management rule based on the identity authentication information corresponding to the command / address signal; compare the access address included in the command / address signal with the allowed access address range; when the access address included in the command / address signal is within the allowed access address range, judge that the command / address signal complies with the permission management rule; or when the access address included in the command / address signal is not within the allowed access address range, judge that the command / address signal does not comply with the permission management rule.
[0009] In some embodiments, the verification module is further configured to: obtain the access address range and the allowed access command type allowed by the corresponding identity authentication information included in the permission management rule according to the identity authentication information corresponding to the command / address signal; compare the access address included in the command / address signal with the allowed access address range; compare the access command included in the command / address signal with the allowed access command type; and when the access address included in the command / address signal is within the allowed access address range and when the access command included in the command / address signal is consistent with the allowed access command type, judge that the command / address signal complies with the permission management rule; or when the access address included in the command / address signal is not within the allowed access address range or when the command signal included in the command / address signal is inconsistent with the allowed access command type, judge that the command / address signal does not comply with the permission management rule.
[0010] In some embodiments, the access control module is further configured to: when the verification module determines that the command / address signal complies with the permission management rule, provide the command / address signal to the storage module; when the verification module determines that the command / address signal does not comply with the permission management rule, not provide the command / address signal to the storage module.
[0011] In some embodiments, the access control module is configured to: provide the command / address signal to the storage module when the verification module determines that the command / address signal complies with the permission management rule; and convert the command / address signal into an invalid signal when the verification module determines that the command / address signal does not comply with the permission management rule.
[0012] In some embodiments, the access control module is configured to: when the verification module determines that the command / address signal complies with the permission management rule, provide the command / address signal to the storage module; when the verification module determines that one or more of the command / address signals do not comply with the permission management rule, count the number of the one or more command / address signals that do not comply with the permission management rule: when the number of the one or more command / address signals that do not comply with the permission management rule does not exceed a predetermined number, provide the one or more command / address signals that do not comply with the permission management rule to the storage module; and when the number of the one or more command / address signals that do not comply with the permission management rule exceeds a predetermined number, no longer provide subsequent command / address signals that the verification module determines do not comply with the permission management rule to the storage module or convert them into invalid signals.
[0013] In some embodiments, the verification module includes: an identification module, the identification module is coupled to the command / address channel to receive the command / address signal and the identity authentication information, the identification module is configured to identify the access command and / or access address in the command / address signal; a judgment module, the judgment module is coupled to the identification module to receive the access command and / or access address and the identity authentication information in each of the command / address signals, the judgment module is configured to judge whether the corresponding command / address signal complies with the permission management rule according to the identity authentication information; and a rule module, the rule module stores the permission management rule, the rule module is coupled to the judgment module to provide the permission management rule to the judgment module. In some such embodiments, the verification module also includes a configuration module coupled to the rule module, via which the permission management rule can be pre-configured or dynamically configured. In some such embodiments, the configuration module is also configured to receive configuration data from the main controller, so that the configuration module uses the configuration data to configure the permission management rule.
[0014] In some embodiments, the verification module includes: an identification module, the identification module is coupled to the command / address channel to receive the command / address signal and the identity authentication information, the identification module is configured to identify the access command and / or access address in the command / address signal; a judgment module, the judgment module is coupled to the identification module to receive the access command and / or access address in each of the command / address signals and the identity authentication information, the judgment module is configured to judge whether the corresponding command / address signal complies with the permission management rules based on the identity authentication information; and an input channel, the input channel is coupled to the judgment module, the input channel is configured to receive the permission management rules from outside the central buffer and provide the permission management rules to the judgment module.
[0015] In some embodiments, the central buffer further includes an output channel and a warning module, wherein the warning module is configured to send a warning to the user through the output channel when the verification module determines that the command / address signal does not comply with the permission management rule. In some such embodiments, the verification module includes the warning module and the output channel.
[0016] In some embodiments, the central buffer further comprises a recording module, wherein the recording module is configured to record the command / address signal that does not comply with the rights management rule when the verification module determines that the command / address signal does not comply with the rights management rule. In some such embodiments, the verification module comprises the recording module.
[0017] In another aspect of the present application, a memory is provided, which includes the memory controller and storage module of the above aspect; a computer system is also provided, which includes the memory of the above aspect.
[0018] In another aspect of the present application, a method for controlling access to a storage module is provided, characterized in that the method includes: receiving a command / address signal and corresponding identity authentication information for identifying the source of the command / address signal from a main controller; judging whether the corresponding command / address signal complies with the permission management rule based on the identity authentication information and generating a judgment result; processing the command / address signal based on the judgment result to selectively send the command / address signal to the storage module.
[0019] The above is an overview of the present application, which may be simplified, summarized, and omitted in detail. Therefore, those skilled in the art should recognize that this section is only illustrative and is not intended to limit the scope of the present application in any way. This summary section is neither intended to determine the key features or essential features of the claimed subject matter, nor is it intended to be used as an auxiliary means to determine the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features of the present application will be more fully understood through the following description and the attached claims in conjunction with the accompanying drawings. It is understood that these drawings only depict several embodiments of the present application and should not be considered as limiting the scope of the present application. By using the accompanying drawings, the present application will be more clearly and detailed.
[0021] Figure 1 A memory system according to an embodiment of the present application is shown;
[0022] Figure 2 A central buffer according to one embodiment of the present application is shown;
[0023] Figure 3 A central buffer according to another embodiment of the present application is shown;
[0024] Figure 4 A central buffer according to another embodiment of the present application is shown;
[0025] Figure 5 A central buffer according to another embodiment of the present application is shown;
[0026] Figure 6 A central buffer according to another embodiment of the present application is shown;
[0027] Figure 7A method for monitoring access to a storage module according to an embodiment of the present application is shown;
[0028] Figure 8 A method for monitoring access to a storage module according to another embodiment of the present application is shown. DETAILED DESCRIPTION
[0029] In the following detailed description, reference is made to the accompanying drawings which form a part thereof. In the drawings, similar symbols generally represent similar components unless the context indicates otherwise. The illustrative embodiments described in the detailed description, drawings, and claims are not intended to be limiting. Other embodiments may be employed and other changes may be made without departing from the spirit or scope of the subject matter of the present application. It is understood that various configurations, substitutions, combinations, and designs of various aspects of the present application generally described in this application and illustrated in the drawings may be made, all of which explicitly constitute a part of the present application.
[0030] Figure 1 A memory system 100 according to one embodiment of the present application is shown.
[0031] like Figure 1 As shown, the memory system 100 includes a storage module 102, which is constructed as a storage module in this embodiment for storing data. In some embodiments, the storage module 102 may be a storage module that complies with the JEDEC double rate synchronous dynamic random access memory (SDRAM) standard, such as JEDEC DDR, DDR2, DDR3, DDR4, DDR5 and other double rate memory standards. In addition, the storage module 102 may also be an internal memory that complies with other standards or protocols, such as RAMBUS internal memory, or a memory that complies with future memory standards or protocols. In some embodiments, the storage module 102 may include a volatile memory (such as a random access memory), a non-volatile memory (such as a flash memory, such as a NAND or NOR flash memory), or a combination of the two. In other embodiments, the storage module 102 may also be a new type of memory manufactured using different production processes, including but not limited to: magnetoresistive memory, phase change memory, resistive memory, semi-floating gate memory, or any other type of memory. It should be noted that, Figure 1 As an example only, in other embodiments, the storage module may also include only one storage body, or each storage body may include more than two storage units, and the number of storage units in each storage body may be the same or different. In addition, it should be noted that the storage module 102 described herein may be one memory particle, or may include two or more memory particles.
[0032] Furthermore, the structure of the storage array or storage particles included in the storage module 102 can adopt various suitable interconnection structures. For example, multiple storage particles can be connected in parallel to form a storage module; alternatively, multiple storage particles can also adopt a multi-level interconnection structure (for example, two levels). For example, one or more storage particles are used as the first-level storage, and another one or more storage particles can be used as the second-level storage, providing storage at different levels. The lower-level second storage level can exchange data with the external storage module as a whole through the first-level storage.
[0033] like Figure 1 As shown, the memory system 100 also includes a memory controller 104, which has a central buffer 106. Specifically, the central buffer 106 is coupled between the main controller 110 and the storage module 102, and can receive a command / address (C / A) signal including an access command and an access address from the main controller 110. For example, the C / A signal may include a data storage address (i.e., an access address) in the storage module 102 and a command to access (e.g., read or write) the access address. Further, the central buffer 106 may provide the received C / A signal to the storage module 102, so that the storage module 102 may perform a corresponding data access operation according to the C / A signal. For a memory system that complies with the DDR3 or DDR4 standard, the central buffer 106 may be integrated in a registered clock driver (RCD). Accordingly, the central buffer 106 is coupled between the main controller 110 and the storage module 102 through a C / A channel to receive the C / A signal from the main controller 110 and provide the received C / A signal to the storage module 102. For a memory system that complies with the DDR4 standard, the C / A channel may include pins A0-A17, pins BG0-BG1 and / or pins BA0-BA1. Among them, pins BG0-BG1 are used to determine which memory bank group (Memory Bank Group) in the memory module 102 is processed, such as being written or read; pins BA0-BA1 are used to determine which memory bank (Memory Bank) in the memory module 102 is processed; and pins A0-A17 are used to address and determine which memory cell in a memory bank is processed. In addition, the input of the four pins A16 (RAS_n), A15 (CAS_n), A14 (WE_n) and ACT_n can be used to determine the input data access command, such as a read command, a write command, and other pre-defined control commands.
[0034] The memory controller 104 may further include a data buffer (DB) 108, which is coupled between the memory module 102 and the main controller 110 and is used to exchange data between the memory module 102 and the main controller 110 under the control of the central buffer 106. The central buffer 106 may provide a C / A signal to the data buffer 108, and the data buffer 108 may control the data exchange between the accessed storage unit in the memory module 102 and the main controller 110 according to the received C / A signal.
[0035] For the C / A signals sent by the main controller 110, they all have corresponding sources, that is, they are signals or commands sent by a specific process or program according to the needs of data processing. In one embodiment, the computer system can execute multiple processes, such as process 1, process 2, process 3...process n, and a C / A signal may be a signal sent by a specific process (for example, process 3) for writing data to a specific storage address or reading data from a specific storage address. In another embodiment, for a computer system, it may execute processes or programs related to multiple users, such as user 1, user 2, user 3...user n, and a C / A signal may be a signal sent by a process or program logged in by a specific user (for example, user 3), that is, the source of the C / A signal is a process or program related to the specific user. Accordingly, when the main controller 110 sends the C / A signal, it will also send the corresponding identity authentication information for identifying the source of each C / A signal. In some embodiments, the main controller 110 can send the identity authentication information of the process source of the C / A signal when sending each C / A signal, such as the process ID (for example, PID) of the process. In other embodiments, the main controller 110 may send the identity authentication information of the user source of each C / A signal, such as the user ID of the user, together with each C / A signal. In still other embodiments, the C / A signal may also identify other types of sources, for example, each C / A signal may come from a different CPU core, and the main controller 110 may send the identity authentication information representing the different CPU cores together with each C / A signal. It is understood that one or more types of the aforementioned identity authentication information may be sent together with the C / A signal.
[0036] The central buffer 106 includes a main signal path A coupled between the receiving side (DCA side) and the output side (QCA side) of the C / A channel and a branch signal path B coupled to the main signal path A, wherein the verification module 112 is coupled to the branch signal path B, and the access control module 114 is coupled to the main signal path A. At the same time, the access control module 114 is also coupled to the verification module 112 to receive the judgment result generated by the verification module 112 on whether each C / A signal complies with the permission management rule (described in detail below).
[0037] For the branch signal path B of the central buffer 106, the verification module 112 is coupled to the main signal path A of the C / A signal to receive the C / A signal transmitted on the C / A channel and the identity authentication information issued by the main controller 110 as described above for identifying the source of each C / A signal (e.g., process source, user source, etc.). The verification module 112 can monitor the C / A signal transmitted on the C / A channel in real time, that is, it can extract the access command and / or access address included in the C / A signal. In addition, as further described below, the verification module 112 can store or receive permission management rules from the outside. In some embodiments, the permission management rules may include the access command type allowed by each identity authentication information and / or the access address range of the storage module 102 allowed. The verification module 112 can compare the identity authentication information corresponding to each C / A signal and the access command and / or access address included therein with the permission management rules to determine whether each C / A signal complies with the permission management rules.
[0038] In one embodiment, the memory system 100 is configured to manage each C / A signal according to the process source of each C / A signal. In such an embodiment, the main controller 110 sends the process identity authentication information corresponding to each C / A signal, such as the process ID, when sending each C / A signal. For example, the memory system 100 includes three processes: process 1, process 2, and process 3. The main controller 110 sends the process ID of the process source when sending each C / A signal. In such an embodiment, the permission management rules stored by the verification module 112 or received from the outside include the access command types allowed for each process, as shown in Table 1 below. When the verification module 112 receives a C / A signal from a specific process, it compares the access command included in the C / A signal with the type of access command allowed for the specific process in the permission management rule: For example, referring to the judgment about process 1 in Table 1, if the access command included in the C / A signal from process 1 is a write command, it is consistent with the permission management rule, and the verification module 112 determines that the C / A signal is consistent with the permission management rule; on the contrary, if the access command included in the C / A signal from process 1 is a read command, it is inconsistent with the permission management rule, and the verification module 112 determines that the C / A signal is inconsistent with the permission management rule. It can be understood by those skilled in the art that the permission management rule may not include any permission management rule for a certain process, and the memory system 100 can be set so that not setting any permission management rule for a certain process means that the process is allowed to perform any operation or that the process is not allowed to perform any operation.
[0039] Table 1
[0040]
[0041] In another embodiment, the memory system 100 manages each C / A signal according to the user source of each C / A signal. In such an embodiment, the main controller 110 sends the user identity authentication information corresponding to each C / A signal, such as a user ID, when sending each C / A signal. For example, the memory system 100 includes three users: user 1, user 2, and user 3, and the main controller sends the ID of its user source when sending each C / A signal. In such an embodiment, the permission management rules stored in the verification module 112 or received from the outside include the access address range allowed for each user (for example, the first storage unit to the third storage unit included in the first storage submodule in the storage module 102), as shown in Table 2 below. When the verification module 112 receives a C / A signal from a specific user, it compares the access address included in the C / A signal with the range of access addresses allowed for the specific user in the permission management rule: for example, referring to Table 2 regarding the C / A signal of user 2, if the access address included in the C / A signal from user 2 falls within the range of the first storage unit to the fifth storage unit of the third storage submodule in the storage module 102, the verification module 112 determines that the C / A signal complies with the permission management rule; on the contrary, if the access address included in the C / A signal from user 2 is not within the address range of the first storage unit to the fifth storage unit of the third storage submodule, it does not comply with the permission management rule, and the verification module 112 determines that the C / A signal does not comply with the permission management rule. Similarly, the permission management rule may not include any permission management rule for a certain user, and the memory system 100 may be configured such that not setting any permission management rule for a certain user indicates that the user is allowed to access any storage address or that the user is not allowed to access any storage address. In this embodiment, no permission management rule is set for user 3, which means that user 3 is allowed to access any storage address.
[0042] Table 2
[0043]
[0044] In some implementations, the permission management rules stored by the verification module 112 or received from the outside may include both the access command type allowed for each identity authentication information and the access address range of the storage module 102 allowed for each identity authentication information. For example, in an implementation in which the storage system 100 manages each C / A signal according to the process source of each C / A signal, as shown in Table 3 below, the permission management rules stored by the verification module 112 or received from the outside include both the access command type allowed for each process ID and the access address range allowed to be accessed. The verification module 112 will compare the access command and access address included in the C / A signal from a specific process with the permission management rules as described above: for example, referring to Table 3 for the C / A signal of process 1, if the access command included in the C / A signal from process 1 is a read command and the access address falls within the address range from the 1st storage unit to the 3rd storage unit of the 1st storage submodule, then the C / A signal is judged to comply with the permission management rules; otherwise, referring to Table 1 for the C / A signal of process 1, if the access command included in the C / A signal from process 1 is not a write operation, or referring to Table 3 for the C / A signal of process 2, the access address included in the C / A signal from process 2 does not fall within the address range from the 1st storage unit to the 5th storage unit of the 3rd storage submodule, the verification module 112 determines that the C / A signal does not comply with the permission management rules. Similarly, the permission management rules may not include any permission management rules for a certain process, and the memory system 100 may be configured such that not setting any permission management rules for a certain process means that the process is allowed to access any storage address or that the user is not allowed to access any storage address. In this embodiment, no permission management rules are set for process 3, which means that process 3 is not allowed to access any storage address.
[0045] Table 3
[0046]
[0047] Those skilled in the art will appreciate that the memory system 100 can manage each C / A signal for different types of sources of each C / A signal. For example, in some embodiments, the memory system 100 can also manage each C / A signal for different CPU cores that issue each C / A signal. In addition, in some embodiments, the memory system 100 can manage each C / A signal for multiple different types of sources of the C / A signal at the same time. For example, the memory system 100 can manage the process source and user source of each C / A signal at the same time, and the main controller 110 will send the identity authentication information representing the process source and user source of each C / A signal at the same time when issuing each C / A signal (for example, sending the process ID and user ID of each C / A signal at the same time), and correspondingly, the permission management rules will include the access command type and / or access address range allowed by the corresponding process source and user source.
[0048] For the main signal path A of the central buffer 106, the access control module 114 receives the C / A signal from the main controller 110 through the main signal path A and is coupled to the verification module 112 to receive the judgment result generated by it on whether each C / A signal complies with the permission management rule. According to the judgment result received from the verification module 112, the access control module 114 processes each C / A signal accordingly to selectively provide the C / A signal to the storage module 102.
[0049] In one embodiment, for a C / A signal that the verification module 112 determines complies with the permission management rules, the access control module 114 directly provides it to the storage module 102; for a C / A signal that the verification module 112 determines does not comply with the permission management rules, the access control module 114 will block it, that is, the C / A signal will no longer be sent to the storage module 102.
[0050] In another embodiment, for a C / A signal that the verification module 112 determines complies with the permission management rules, the access control module 114 directly provides it to the storage module 102; for a C / A signal that the verification module 112 determines does not comply with the permission management rules, the access control module 114 converts it into an invalid signal, and optionally provides or does not provide the invalid signal to the storage module 102.
[0051] In another embodiment, for C / A signals that do not comply with the rights management rules, the memory system 100 no longer controls a single C / A signal but selects to analyze the trend of such C / A signals that do not comply with the rights management rules. The access control module 114 may allow a small number of C / A signals that do not comply with the rights management rules to be provided to the storage module 102, and when the number of such C / A signals that do not comply with the rights management rules exceeds a certain preset value, the subsequent C / A signals that do not comply with the rights management rules will no longer be provided to the storage module 102. In such an embodiment, the access control module 114 may include a preset value. When the verification module 112 determines that the number of C / A signals that do not comply with the permission management rules does not exceed the preset value, the access control module 114 still provides these C / A signals to the storage module 102; at the same time, the access control module 114 counts the number of C / A signals that do not comply with the permission management rules. After the number of C / A signals that do not comply with the permission management rules determined by the verification module 112 exceeds the preset value, the subsequent C / A signals that the verification module 112 determines do not comply with the permission management rules will no longer be provided to the storage module or these subsequent C / A signals that do not comply with the permission management rules will be converted into invalid signals.
[0052] Optionally, the verification module 112 may exchange data externally with the central buffer 106 via input and / or output channels, as described in detail below.
[0053] Figure 2 An exemplary structure of a central buffer 200 according to an embodiment of the present application is shown.
[0054] like Figure 2 As shown, the central buffer 200 includes a main signal path A coupled between the receiving side (DCA side) and the output side (QCA side) of the C / A channel and a branch signal path B coupled to the main signal path A, wherein the verification module 202 is coupled to the branch signal path B, and the access control module 204 is coupled to the main signal path A. At the same time, the access control module 204 is also coupled to the verification module 202 to receive the judgment result generated by it on whether each C / A signal complies with the authority management rule. The verification module 202 and the access control module 204 are combined as above. Figure 1 The described approach manages the C / A signal received from the master controller.
[0055] The verification module 202 further includes an identification module 206. The identification module 206 is coupled to the main signal path A of the C / A channel to receive the C / A signal transmitted on the C / A channel. The identification module 206 can monitor the C / A signal transmitted on the C / A channel in real time, that is, it can extract the access command and / or access address included in the C / A signal. In some embodiments, such as described above in conjunction with Table 1, the access identification rules used by the verification module 202 only include the access command types allowed by each identity authentication information. In such an embodiment, the identification module 206 can only send the access command extracted from the C / A signal to the judgment module 208 without sending the access address, or directly choose not to extract the access address but only extract the access command. In some embodiments, such as described above in conjunction with Table 2, the access identification rules used by the verification module 202 only include the access address range of the storage module allowed by each identity authentication information. In such an embodiment, the identification module 206 may only send the access address extracted from the C / A signal to the judgment module 208 without sending an access command, or directly choose not to extract the access command but only extract the access address. In some embodiments, such as described above in conjunction with Table 3, the access identification rules used by the verification module 202 also include the access command type allowed for each identity authentication information and the access address range of the storage module allowed for each identity authentication information. In such an embodiment, the identification module 206 may simultaneously send the access command and access address extracted from the C / A signal to the judgment module 208. The identification module 206 may selectively extract the access command and / or access address of the C / A signal according to actual needs and send the access command and / or access address extracted from the C / A signal to the judgment module 208 for judgment on whether it complies with the authority management rules (as further described below), and this application does not limit it.
[0056] In some embodiments, the identification module 206 may extract the access address and / or access command included in each C / A signal and send the access address and / or access command extracted from each C / A signal to the judgment module 208 in real time. In other words, the identification module 206 may send the extracted access command and / or access address to the judgment module 208 immediately after intercepting each C / A signal. In some embodiments, the identification module 206 may also send the access addresses and / or access commands extracted from the multiple C / A signals to the judgment module 208 after intercepting a predetermined number of multiple C / A signals. For example, the identification module 206 may send the access addresses and / or access commands extracted from the five C / A signals to the judgment module 208 in batches after intercepting five C / A signals, and then send the access addresses and / or access commands extracted from the next five C / A signals to the judgment module 208 after intercepting the next five C / A signals. Those skilled in the art will appreciate that the method by which the identification module 206 listens to the C / A signal can be flexibly selected based on actual needs (for example, the number of C / A signals that need to be listened to before sending an access command and / or an access address to the judgment module 208 can be flexibly selected), and the present application does not impose any restrictions on this.
[0057] The identification module 206 also receives the identity authentication information corresponding to each C / A signal sent by the main controller and sends the identity authentication information to the judgment module 208 for subsequent judgment. In some embodiments, the identity authentication information corresponding to each C / A signal sent by the main controller is the ID of a process (for example, PID). In such an embodiment, the identification module 206 can identify the ID in the signal sent by the main controller and send the ID to the judgment module 208 for subsequent judgment. Similarly, for other types of sources of C / A signals (for example, user sources, main controller core sources), the identification module 206 can also identify the corresponding identity authentication information from the signal sent by the main controller, and send the identity authentication information to the judgment module 208 for subsequent judgment.
[0058] The judgment module 208 is coupled to the identification module 206 to receive the access command and / or access address and the corresponding identity authentication information sent by the identification module 206, and is also coupled to the rule module 210 to receive the permission management rules stored therein. The judgment module 208 can compare the received access command and / or access address and the corresponding identity authentication information with the permission management rules to determine whether each C / A signal complies with the permission management rules, such as described above in conjunction with Tables 1 to 3. After generating the judgment result, the judgment module 208 sends the judgment result to the access control module 204 so that it processes the responsive C / A signal.
[0059] The rule module 210 may include a non-volatile storage element, which stores the permission management rules required for the judgment module 208 to make a judgment. The rule module 210 is coupled to the judgment module 208 to provide it with permission rules. Optionally, the rule module 210 can also be coupled to the identification module 206 so that it selectively listens to each C / A signal according to the current permission management rules (for example, as described above, selectively extracts the access command or access address included in the C / A signal, or extracts the access command and access address at the same time). Optionally, the identification module 206 can also send the extracted access command and access address to the rule module 210, so that the rule module 210 selects a set of appropriate permission management rules from the multiple sets of permission management rules stored therein and provides them to the judgment module 208.
[0060] Figure 3 FIG. 2 shows an exemplary structure of a central buffer 300 according to an embodiment of the present application. The central buffer 300 has Figure 2 The central buffer 200 shown has a substantially similar structure, such as a verification module 302 and an access control module 304. The verification module 302 includes an identification module 306, a judgment module 308 and a rule module 310, which will not be described in detail here.
[0061] The central buffer 300 further includes a configuration module 312, which is coupled to the rule module 310 so that the rights management rules stored in the rule module 310 can be pre-configured or dynamically configured. In one embodiment, the rights management rules of the rule module 310 can be pre-configured, that is, the rights management rules of the rule module 310 can be pre-configured in the entire memory system (e.g. Figure 1 Before the memory system 100 shown in FIG. 1 is run, the rights management rules stored in the rule module 310 are configured. In another embodiment, the rights management rules of the rule module 310 can be dynamically configured, that is, in the entire memory system (e.g. Figure 1 During the operation of the memory system 100 shown in FIG. 1 , the permission management rules of the rule module 310 are dynamically configured according to the operation status.
[0062] In some embodiments, the configuration module 312 can be coupled to a main controller (e.g. Figure 1 The main controller 110 described above) allows the user to transmit configuration data to the configuration module 312 through the main controller to configure the permission management rules. In some embodiments, the configuration module 312 can be coupled to an external controller (in Figure 3 Not shown, the external controller may include, for example, another computer, mobile phone, tablet computer, etc. used by the user to analyze access history information, and the present application does not limit this), and the configuration data can be passed to the configuration module 312 through the external controller to configure the permission management rules.
[0063] In some embodiments, the configuration module 312 may store multiple sets of configuration data for configuring the rights management rules of the rule module 310. The configuration module 312 may be coupled to the main controller (eg, Figure 1 The main controller 110) or an external controller receives a configuration instruction, which can select a set of preset configuration data from multiple sets of stored preset configuration data to configure the permission management rules of the rule module 310.
[0064] In some embodiments, the configuration module 312 can automatically configure the rights management rules of the rule module 310. In one embodiment, the configuration module 312 can store multiple sets of preset configuration data for configuring the rights management rules of the rule module 310, and the configuration module 312 also stores different application conditions for each set of preset configuration data. Figure 1 During the operation of the memory system 100 shown in FIG. 1 , the configuration module 312 can automatically apply different preset configuration data when different application conditions are met to realize automatic dynamic configuration of the permission management rules. For example, the configuration module 312 may include three sets of configuration data preset for a certain process 1, wherein the preset configuration data A does not restrict any C / A signal from the process 1, the preset configuration data B prohibits the write command from the process 1, and the preset configuration data B prohibits both the write command and the read command from the process 1. The configuration module 312 will apply the preset configuration data A at the beginning, and apply different (for example, more stringent) preset configuration data B when the frequency or number of times that the process 1 accesses the storage module exceeds a certain threshold (for example, more than 5 times in one minute), and apply another (for example, the most stringent) preset configuration data C after the number or frequency of the C / A signal from the process 1 violating the preset configuration data B exceeds a predetermined value. In other words, the configuration module 312 can adjust the configuration data applied to these processes according to the historical access of the C / A signal from different processes.
[0065] Figure 4 FIG. 4 shows an exemplary structure of a central buffer 400 according to an embodiment of the present application. The central buffer 400 has Figure 2 The central buffer 200 shown has a substantially similar structure, such as a verification module 402 and an access control module 404. The verification module 402 includes an identification module 406 and a judgment module 408, which will not be described in detail here.
[0066] Differently, the central buffer 400 does not include a rule module, but includes an input channel 414. The input channel 414 is coupled to the decision module 408 to provide it with the permission management rules received from outside the central buffer 400. In some embodiments, the input channel 414 can be coupled to a main controller (e.g. Figure 1 The main controller 110 described above) can provide the permission management rules to the judgment module 408 through the main controller. In some embodiments, the input channel 414 can be coupled to an external controller (in Figure 4 (not shown in the figure, the external controller may include, for example, another computer, mobile phone, tablet computer, etc. used by the user to analyze the access history information, which is not limited in the present application), so that the authority management rules can be provided to the judgment module 408 through the external controller. Optionally, the input channel 414 can also be coupled to the identification module 406 so that it selectively listens to each C / A signal according to the current authority management rule (for example, as described above, selectively extracting the access command or access address included in the C / A signal, or extracting the access command and access address at the same time).
[0067] Figure 5 FIG. 5 shows an exemplary structure of a central buffer 500 according to an embodiment of the present application. The central buffer 500 has Figure 2 The central buffer 200 shown has a substantially similar structure, such as a verification module 502 and an access control module 504. The verification module 502 includes an identification module 506, a judgment module 508, and a rule module 510, which will not be described in detail here.
[0068] The central buffer 500 further includes a warning module 516 and an output channel 518. The warning module is coupled to the judgment module 508 to receive the judgment result generated by the judgment module 508 on whether each C / A signal complies with the authority management rule, and sends a warning through the output channel 518 when the C / A signal does not comply with the authority management rule. The output channel 518 can be coupled to the main controller or another external controller (in Figure 5 The external controller may include, for example, another computer, mobile phone, tablet computer, etc. used by the user to analyze the access history information, which is not limited in the present application) to send a warning that the C / A signal does not comply with the permission management rules. In some embodiments, the output channel 518 may be a high-speed channel, such as a PCIe channel, a CXL channel, or a wireless communication channel, etc., which is suitable for high-speed output of information to increase the speed of sending warnings. In some embodiments, the output channel 518 may also be an SMBus channel (using I 2 C or similar protocol) or DCA channel (constructed as a bidirectional communication path between the main controller and the central buffer), etc.
[0069] Those skilled in the art can understand that the warning module 516 may not be included in the verification module 502, but may be formed as a separate module coupled to the verification module 502. Such a separate warning module may be coupled to the judgment module in the verification module and coupled to the main controller or another external controller through an output channel to send a warning that the C / A signal does not comply with the authority management rules. This application does not limit this.
[0070] In addition, those skilled in the art will appreciate that in embodiments where the central buffer includes an alert module and an output channel (eg Figure 5 In the example of the central buffer 500 shown in the figure, when the verification module determines that a C / A signal does not comply with the rights management rules, the central buffer can only send a warning that the C / A signal does not comply with the rights management rules through the warning module and the output channel without processing the C / A signal that does not comply with the rights management rules (for example, not shielding the C / A signal, not converting the C / A signal into an invalid signal, etc.), that is, the storage module can still receive the C / A signal that does not comply with the rights management rules. In such an embodiment, the central buffer does not automatically process the C / A signal that does not comply with the rights management rules but only sends a warning to the user.
[0071] Figure 6 FIG. 6 shows an exemplary structure of a central buffer 600 according to an embodiment of the present application. The central buffer 600 has Figure 2 The central buffer 200 shown has a substantially similar structure, such as a verification module 602 and an access control module 604. The verification module 602 includes an identification module 606, a judgment module 608, and a rule module 610, which will not be described in detail here.
[0072] The central buffer 600 further includes a recording module 620. The recording module 620 is coupled to the judgment module 608 to record the C / A signal when the judgment module 608 determines that a C / A signal does not comply with the permission management rules, so as to provide for subsequent analysis. In some embodiments, the recording module 620 can be configured to record the recording rules of the C / A signal that does not comply with the permission management rules. For example, in some embodiments, for example, it is more desirable to determine which processes or users have performed illegal write operations on the storage module, and the recording module 620 can be configured to only record C / A signals that violate the permission management rules related to writing, thereby saving storage space. In some embodiments, for example, it is only desirable to determine which storage addresses have violated the permission management rules for the operation commands, and the recording module 620 can only record the access addresses in the C / A signals that violate the permission management rules, so that the subsequent analysis is more concise and clear.
[0073] Those skilled in the art can understand that the recording module 620 may not be included in the verification module 602, but may be formed as a separate module coupled to the verification module 602. Such a separate recording module may be coupled to the judgment module in the verification module to record the C / A signal when the judgment module determines that a C / A signal does not comply with the rights management rule.
[0074] It should be noted that Figures 2 to 6 The circuit structure of the central buffer shown is only exemplary. In practical applications, these circuit structures can be modified as needed. For example, Figures 2 to 6 The modules of the central buffer described above may be combined or deleted. For example, in some embodiments, the central buffer may include a rule module (e.g., reference Figure 2 and Figure 3 The rule modules 210 and 310 described above), input channels (e.g., reference Figure 4 Input channels 414 as described), configuration modules (e.g., reference Figure 3 Configuration module 312 as described), warning module (e.g., reference Figure 5 The warning module 516 described above), output channels (such as reference Figure 5 Output channel 518) and recording module (eg, reference Figure 6 One, several or all of the recording modules 620 shown.
[0075] Figure 7 1 shows a method 700 for controlling the access of a main controller to a storage module according to an embodiment of the present application. The method 700 may be performed by, for example, Figures 2 to 6 This is performed by the central buffers 200 to 600 shown.
[0076] like Figure 7 As shown, the method 700 may include step 702, receiving a command / address signal and corresponding identity authentication information for identifying the source of the command / address signal from a main controller; step 704, judging whether the corresponding command / address signal complies with the authority management rule based on the identity authentication information and generating a judgment result; and step 706, processing the command / address signal based on the judgment result to selectively send the command / address signal to the storage module.
[0077] In some embodiments, as described above with reference to Tables 1 to 3, the permission management rules include the access command type allowed for each identity authentication information and / or the access address range of the storage module allowed for each identity authentication information.
[0078] In some embodiments, the access command type allowed by the corresponding identity authentication information included in the authority management rule can be obtained according to the identity authentication information corresponding to the command / address signal. In such an embodiment, step 704 may include comparing the access command included in the command / address signal with the allowed access command type: when the access command included in the command / address signal is consistent with the allowed access command type, it is determined that the command / address signal complies with the authority management rule; when the access command included in the command / address signal is inconsistent with the allowed access command type, it is determined that the command / address signal does not comply with the authority management rule.
[0079] In some embodiments, the access address range allowed by the corresponding identity authentication information included in the authority management rule can be obtained according to the identity authentication information corresponding to the command / address signal. In such an embodiment, step 704 may include comparing the access address included in the command / address signal with the allowed access address range: when the access address included in the command / address signal is within the allowed access address range, it is determined that the command / address signal complies with the authority management rule; when the access address included in the command / address signal is not within the allowed access address range, it is determined that the command / address signal does not comply with the authority management rule.
[0080] In some embodiments, the access address range and the allowed access command type included in the permission management rule can be obtained according to the identity authentication information corresponding to the command / address signal. In such an embodiment, step 704 may include comparing the access address included in the command / address signal with the allowed access address range, and comparing the access command included in the command / address signal with the allowed access command type: when the access address included in the command / address signal is within the allowed access address range and when the access command included in the command / address signal is consistent with the allowed access command type, it is judged that the command / address signal complies with the permission management rule; or when the access address included in the command / address signal is not within the allowed access address range or when the command signal included in the command / address signal is inconsistent with the allowed access command type, it is judged that the command / address signal does not comply with the permission management rule.
[0081] In some embodiments, step 706 may include: when it is determined that the command / address signal complies with the permission management rules, providing the command / address signal to the storage module; when it is determined that the command / address signal does not comply with the permission management rules, not providing the command / address signal to the storage module.
[0082] In some embodiments, step 706 may include: when it is determined that the command / address signal complies with the authority management rules, providing the command / address signal to the storage module; when it is determined that the command / address signal does not comply with the authority management rules, converting the command / address signal into an invalid signal.
[0083] In some embodiments, step 706 may include: when it is determined that the command / address signal complies with the permission management rules, providing the command / address signal to the storage module; and when it is determined that one or more command / address signals do not comply with the permission management rules, counting the number of the one or more command / address signals that do not comply with the permission management rules: when the number of the one or more command / address signals that do not comply with the permission management rules does not exceed a predetermined number, providing the one or more command / address signals that do not comply with the permission management rules to the storage module; and when the number of the one or more command / address signals that do not comply with the permission management rules exceeds a predetermined number, no longer providing subsequent command / address signals that are determined not to comply with the permission management rules to the storage module or converting them into invalid signals.
[0084] Optionally, in some embodiments, the method 700 may further include step 708: sending a warning to the user when it is determined that the command / address signal does not comply with the rights management rule.
[0085] Optionally, in some embodiments, the method 700 may further include step 710: when it is determined that the command / address signal does not comply with the authority management rule, recording the command / address signal that does not comply with the authority management rule.
[0086] Figure 8 800 is shown for controlling the access of the main controller to the storage module according to one embodiment of the present application. The method 800 may be performed by, for example, Figures 2 to 6 The central buffer 200 to 600 shown in FIG. 8 is performed. Steps 806 to 814 are similar to the steps in combination with Figure 7 The steps 702 to 710 described are not repeated here.
[0087] The method 800 further includes step 802 of identifying an access command and / or an access address in a command / address signal. The method 800 may also include step 804 of receiving a rights management rule.
[0088] It should be noted that although several steps of the method for accessing the storage module and several modules or submodules of the memory controller are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present application, the features and functions of two or more modules described above can be concretized in one module. Conversely, the features and functions of one module described above can be further divided into being concretized by multiple modules. In addition, the order of steps described in the present application is not mandatory, and the order of execution can be adjusted according to actual needs.
[0089] A person skilled in the art may understand and implement other changes to the disclosed embodiments by studying the specification, the disclosed contents, the drawings and the appended claims. In the claims, the word "comprising" does not exclude other elements and steps, and the wording "a" or "an" does not exclude the plurality. In the actual application of this application, a part may perform the functions of multiple technical features cited in the claims. Any reference signs in the claims should not be construed as limiting the scope.
Claims
1. A memory controller coupled between a storage module and a main controller to control the main controller's access to the storage module, characterized in that: The memory controller comprises: A central buffer, the central buffer is configured to be coupled between the main controller and the storage module, receives a command / address signal from the main controller via a command / address channel, and selectively provides the command / address signal to the storage module, the central buffer also receives identity authentication information for identifying the source of the command / address signal from the main controller, the central buffer includes a main signal path between a receiving side and an output side of the command / address channel and a branch signal path coupled to the main signal path via an access control module, wherein the central buffer includes: a verification module, the verification module being coupled in the branch signal path, the verification module being further coupled to the command / address channel to receive the command / address signal and the identity authentication information, the verification module being configured to determine whether the corresponding command / address signal complies with the authority management rule according to the identity authentication information, and to generate a determination result; and The access control module is coupled in the main signal path, the access control module is further coupled to the command / address channel to receive the command / address signal, and is coupled to the verification module to receive the judgment result generated by the verification module, and the access control module is configured to process the command / address signal according to the judgment result generated by the verification module to selectively send the command / address signal to the storage module.
2. The memory controller according to claim 1, wherein: The rights management rules include: The type of access commands allowed by each of the identity authentication information; and / or The access address range of the storage module allowed by each of the identity authentication information.
3. The memory controller according to claim 2, wherein: The verification module is further configured to: According to the identity authentication information corresponding to the command / address signal, obtaining the access command type allowed by the corresponding identity authentication information included in the authority management rule; comparing the access command included in the command / address signal with the allowed access command types; as well as When the access command included in the command / address signal is consistent with the allowed access command type, determining that the command / address signal complies with the authority management rule; or When the access command included in the command / address signal is inconsistent with the allowed access command type, it is determined that the command / address signal does not comply with the authority management rule.
4. The memory controller according to claim 2, wherein: The verification module is further configured to: According to the identity authentication information corresponding to the command / address signal, obtaining the access address range allowed by the corresponding identity authentication information included in the authority management rule; comparing the access address included in the command / address signal with the allowed access address range; When the access address included in the command / address signal is within the allowed access address range, determining that the command / address signal complies with the authority management rule; When the access address included in the command / address signal is not within the allowed access address range, it is determined that the command / address signal does not comply with the authority management rule.
5. The memory controller according to claim 2, wherein: The verification module is further configured to: According to the identity authentication information corresponding to the command / address signal, obtaining the access address range and the allowed access command type allowed by the corresponding identity authentication information included in the authority management rule; comparing the access address included in the command / address signal with the allowed access address range; comparing the access command included in the command / address signal with the allowed access command types; as well as When the access address included in the command / address signal is within the allowed access address range and when the access command included in the command / address signal is consistent with the allowed access command type, determining that the command / address signal complies with the permission management rule; or When the access address included in the command / address signal is not within the allowed access address range or when the access command included in the command / address signal is inconsistent with the allowed access command type, it is determined that the command / address signal does not comply with the authority management rule.
6. The memory controller according to claim 1, wherein: The access control module is further configured to: When the verification module determines that the command / address signal complies with the authority management rule, the command / address signal is provided to the storage module; When the verification module determines that the command / address signal does not comply with the authority management rule, the command / address signal is not provided to the storage module.
7. The memory controller according to claim 1, wherein: The access control module is configured as follows: When the verification module determines that the command / address signal complies with the authority management rule, the command / address signal is provided to the storage module; When the verification module determines that the command / address signal does not comply with the authority management rule, the command / address signal is converted into an invalid signal.
8. The memory controller according to claim 1, wherein: The access control module is configured as follows: When the verification module determines that the command / address signal complies with the authority management rule, the command / address signal is provided to the storage module; When the verification module determines that one or more of the command / address signals do not comply with the authority management rule, the number of the one or more command / address signals that do not comply with the authority management rule is counted: When the number of the one or more command / address signals that do not comply with the authority management rule does not exceed a predetermined number, providing the one or more command / address signals that do not comply with the authority management rule to the storage module; as well as When the number of one or more command / address signals that do not comply with the authority management rules exceeds a predetermined number, the subsequent command / address signals determined by the verification module to not comply with the authority management rules will no longer be provided to the storage module or will be converted into invalid signals.
9. The memory controller according to claim 1, wherein: The verification module comprises: an identification module, the identification module being coupled to the command / address channel to receive the command / address signal and the identity authentication information, the identification module being configured to identify an access command and / or an access address in the command / address signal; a judgment module, the judgment module being coupled to the identification module to receive the access command and / or access address in each of the command / address signals and the identity authentication information, the judgment module being configured to judge whether the corresponding command / address signal complies with the authority management rule according to the identity authentication information; and A rule module stores the permission management rule, and the rule module is coupled to the judgment module to provide the permission management rule to the judgment module.
10. The memory controller according to claim 9, characterized in that: The verification module further includes a configuration module coupled to the rule module, via which the permission management rules can be pre-configured or dynamically configured.
11. The memory controller according to claim 10, characterized in that: The configuration module is further configured to receive configuration data from the main controller, so that the configuration module configures the permission management rule using the configuration data.
12. The memory controller according to claim 1, wherein: The verification module comprises: an identification module, the identification module being coupled to the command / address channel to receive the command / address signal and the identity authentication information, the identification module being configured to identify an access command and / or an access address in the command / address signal; a judgment module, the judgment module being coupled to the identification module to receive the access command and / or access address in each of the command / address signals and the identity authentication information, the judgment module being configured to judge whether the corresponding command / address signal complies with the authority management rule according to the identity authentication information; and An input channel is coupled to the determination module, and is configured to receive the permission management rule from outside the central buffer and provide the permission management rule to the determination module.
13. The memory controller according to claim 1, wherein: The central buffer further includes an output channel and a warning module, wherein the warning module is configured to send a warning to a user through the output channel when the verification module determines that the command / address signal does not comply with the authority management rule.
14. The memory controller according to claim 13, wherein: The verification module includes the warning module and the output channel.
15. The memory controller according to claim 1, wherein: The central buffer further includes a recording module, wherein the recording module is configured to record the command / address signal that does not comply with the authority management rule when the verification module determines that the command / address signal does not comply with the authority management rule.
16. The memory controller according to claim 15, characterized in that: The verification module includes the recording module. 17 . A memory comprising the memory controller according to claim 1 and a storage module.
18. A computer system comprising the memory according to claim 17.
19. A method for controlling access to a storage module, characterized in that: The method comprises: receiving a command / address signal and corresponding identity authentication information for identifying a source of the command / address signal from a main controller; The verification module determines whether the corresponding command / address signal complies with the authority management rules according to the identity authentication information and generates a judgment result; The access control module processes the command / address signal according to the judgment result to selectively send the command / address signal to the storage module. Wherein, the command / address signal is received from the main controller via a command / address channel, a central buffer is coupled between the main controller and the storage module, the central buffer includes a main signal path between a receiving side and an output side of the command / address channel and a branch signal path coupled to the main signal path via the access control module, the receiving side and the output side are coupled to the command / address channel, wherein the verification module is coupled in the branch signal path, and the control module is coupled in the main signal path.
20. The method according to claim 19, characterized in that The rights management rules include: The type of access commands allowed by each of the identity authentication information; and / or The access address range of the storage module allowed by each of the identity authentication information.
21. The method according to claim 20, characterized in that Wherein judging whether the corresponding command / address signal complies with the authority management rule according to the identity authentication information and generating the judgment result further comprises: According to the identity authentication information corresponding to the command / address signal, obtaining the access command type allowed by the corresponding identity authentication information included in the authority management rule; comparing the access command included in the command / address signal with the allowed access command types; and When the access command included in the command / address signal is consistent with the allowed access command type, determining that the command / address signal complies with the authority management rule; or When the access command included in the command / address signal is inconsistent with the allowed access command type, it is determined that the command / address signal does not comply with the authority management rule.
22. The method according to claim 20, characterized in that Wherein judging whether the corresponding command / address signal complies with the authority management rule according to the identity authentication information and generating the judgment result further comprises: According to the identity authentication information corresponding to the command / address signal, obtaining the access address range allowed by the corresponding identity authentication information included in the authority management rule; comparing the access address included in the command / address signal with the allowed access address range; When the access address included in the command / address signal is within the allowed access address range, determining that the command / address signal complies with the authority management rule; When the access address included in the command / address signal is not within the allowed access address range, it is determined that the command / address signal does not comply with the authority management rule.
23. The method according to claim 20, characterized in that Judging whether the corresponding command / address signal complies with the authority management rule according to the identity authentication information and generating the judgment result further includes: According to the identity authentication information corresponding to the command / address signal, obtaining the access address range and the allowed access command type allowed by the corresponding identity authentication information included in the authority management rule; comparing the access address included in the command / address signal with the allowed access address range; comparing the access command included in the command / address signal with the allowed access command types; and When the access address included in the command / address signal is within the allowed access address range and when the access command included in the command / address signal is consistent with the allowed access command type, determining that the command / address signal complies with the permission management rule; or When the access address included in the command / address signal is not within the allowed access address range or when the command signal included in the command / address signal is inconsistent with the allowed access command type, it is determined that the command / address signal does not comply with the authority management rule.
24. The method according to claim 19, characterized in that Processing the command / address signal according to the determination result to selectively send the command / address signal to the storage module includes: When it is determined that the command / address signal complies with the authority management rule, providing the command / address signal to the storage module; When it is determined that the command / address signal does not comply with the authority management rule, the command / address signal is not provided to the storage module.
25. The method according to claim 19, characterized in that Processing the command / address signal according to the determination result to selectively send the command / address signal to the storage module includes: When it is determined that the command / address signal complies with the authority management rule, providing the command / address signal to the storage module; When it is determined that the command / address signal does not comply with the authority management rule, the command / address signal is converted into an invalid signal.
26. The method according to claim 19, characterized in that Processing the command / address signal according to the determination result to selectively send the command / address signal to the storage module includes: When it is determined that the command / address signal complies with the authority management rule, providing the command / address signal to the storage module; When it is determined that one or more of the command / address signals do not comply with the authority management rule, the number of the one or more command / address signals that do not comply with the authority management rule is counted: When the number of the one or more command / address signals that do not comply with the authority management rule does not exceed a predetermined number, providing the one or more command / address signals that do not comply with the authority management rule to the storage module; and When the number of the one or more command / address signals that do not comply with the authority management rule exceeds a predetermined number, subsequent command / address signals that are determined not to comply with the authority management rule are no longer provided to the storage module or are converted into invalid signals.
27. The method according to claim 19, characterized in that Before determining whether the corresponding command / address signal complies with the authority management rule according to the identity authentication information and generating the determination result, the method further comprises: identifying an access command and / or an access address in the command / address signal; and The rights management rule is received.
28. The method according to claim 27, characterized in that The rights management rules can be configured in advance or dynamically.
29. The method according to claim 28, characterized in that The method further comprises: Configuration data is received from the main controller to configure the rights management rule using the configuration data.
30. The method according to claim 19, characterized in that The method further comprises: When it is determined that the command / address signal does not comply with the authority management rule, a warning is sent to the user.
31. The method according to claim 19, characterized in that The method further comprises: When it is determined that the command / address signal does not comply with the authority management rule, the command / address signal that does not comply with the authority management rule is recorded.
