Computing system, method and bus device based on hardware access permission management

By introducing hardware-based access rights management into the computer system, and using the security check module and the access rights allocation table to compare the main device ID, the problem of unrefined data access rights management in the existing technology is solved and the security of the system is improved. and flexibility.

CN117459268BActive Publication Date: 2024-08-23SUZHOU POWERCORE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311393535.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2024-08-23
Estimated Expiration
2043-10-25

AI Technical Summary

Technical Problem

Existing data access rights management relies on software control, which poses the risk of intrusion and the management is not refined enough, and cannot effectively guarantee the security and integrity of the computer system.

Method used

Adopting a hardware-based access rights management system, by adding the master device ID in the bus transmission, using the security check module to compare with the preset access rights allocation table, determine the access rights of the master device, and respond to access requests based on the comparison results. Realize refined management of data access.

Benefits of technology

It improves the security of data access, prevents software cracking attacks, realizes refined management of access rights, and enhances the security and flexibility of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117459268B
    Figure CN117459268B
Patent Text Reader

Abstract

The present application provides a computing system, method and bus device for hardware-based access rights management. The present invention implements the MID encoding of the master device based on hardware, and the access rights allocation of the slave device is also implemented based on hardware. Therefore, no matter how the intruder cracks the software, he will not have the right or ability to break through the security firewall at the hardware level, thereby greatly improving the security of data access. For the access rights table of the slave device, the industry only gives a general permission value, that is, the permissions of the master device connected to the bus are one-size-fits-all. Anyone with privileges can access the slave device, and it is impossible to subdivide the permission management into individual modules. The present invention subdivides the management of access rights into individual modules or similar modules, and the permission management is more refined and flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer access permission management, and in particular to a computing system, method and bus device based on hardware-based access permission management. Background Art

[0002] Computer system security requires confidentiality and integrity, which is essentially a matter of reading and writing data. Confidentiality refers to ensuring that confidential assets cannot be copied or stolen by a defined set of attacks; this property is necessary for assets such as passwords and encryption keys; the manifestation in computer hardware is that data cannot be read by certain unauthorized components. Integrity refers to ensuring that assets whose integrity is not modified by a defined set of attacks; this property is necessary for root secrets on certain devices given by the rest of the system's security and for security software after it is running. The manifestation in computer hardware is that data cannot be modified by certain unauthorized components.

[0003] SCP (System Control Processor) mainly adjusts the power supply voltage and CPU frequency by reading the temperature sensor on the SoC. For safety reasons, the voltage control on the motherboard (through the SPI interface) can only be completed by SCP. The CPU only has the right to read the voltage but not the right to rewrite it. Some registers in the graphics card are also open to the outside world, but not to the Debug module.

[0004] Such complex rights configuration cannot be achieved by the existing industry standard bus AXI with only 3 bits AXPROT[2:0], because the three signals AXPROT[2:0] only indicate what permissions they have, and permissions are implemented by the operating system control software, but the operating system is not completely trustworthy.

[0005] like Figure 1 As shown in the figure, a schematic diagram of the data structure of the standard bus AXI is shown. Currently, the industry standard bus AXI only has 3 bits AXPROT[2:0], and AXPROT[2:0] defines three access protection levels. AXPROT[0](P) identifies the access as non-privileged or privileged, 1 indicates privileged access, and 0 indicates non-privileged access; AXPROT[1](NS) identifies the access as secure or non-secure, 1 indicates a non-secure transaction, and 0 indicates a secure transaction; AXPROT[2](I) indicates whether the transaction is an instruction access or a data access, 1 indicates an instruction access, and 0 indicates a data access.

[0006] In summary, existing data access still has the risk of being invaded through software control permissions, and the industry currently generally adopts a one-size-fits-all approach to permission management, which only gives a general permission value and cannot achieve refined management. Therefore, this field urgently needs a safer and more flexible access permission management solution. Summary of the invention

[0007] In view of the shortcomings of the prior art described above, the purpose of the present application is to provide a computing system, method and bus device based on hardware-based access permission management, which is used to solve the technical problems that existing data access still has the risk of being invaded through software control permissions and the management is not refined enough.

[0008] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a computing system based on hardware-based access permission management, including a plurality of master devices and a plurality of slave devices, wherein: the current master device sends the master device identification information and the address information of the slave device to be accessed to the bus, so that the bus selects the corresponding slave device after address decoding; the selected slave device compares the master device identification information with the master device identification information in a preset access permission allocation table through a security check module set thereon; the access rights of the current master device are judged according to the comparison result, and a corresponding response is made to the access request of the current master device accordingly.

[0009] In some embodiments of the first aspect of the present application, the access permission allocation table in the slave device is used to record and characterize information of the following dimensions: master device identification number, read permission, and write permission.

[0010] In some embodiments of the first aspect of the present application, the access permission allocation table in the slave device is also used to record and characterize information of the following dimensions: default read permission and default write permission; wherein, the default read permission is used to characterize that when no matching master device identification number is found in the access permission allocation table, it is assumed that the current master device has or does not have the corresponding read right; the default write permission is used to characterize that when no matching master device identification number is found in the access permission allocation table, it is assumed that the current master device has or does not have the corresponding write right.

[0011] In some embodiments of the first aspect of the present application, the security check module includes: a number of XENOR gates, a first AND gate, a second AND gate and a third AND gate corresponding to the number of bits of the master device identification number; each of the XENOR gates includes a first input end and a second input end, the first input end inputs the master device identification number of the corresponding bit in the access permission table, and the second input end inputs the master device identification number of the current master device on the bus; the output end of each of the XENOR gates is connected to the first AND gate; the output end of the first AND gate is respectively connected to the first input end of the second AND gate and the first input end of the third AND gate; the second input end of the second AND gate inputs the read permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; the second input end of the third AND gate inputs the write permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; wherein, the output signal of the second AND gate represents the result of the read permission determination of the current master device on the slave device; the output signal of the third AND gate represents the result of the write permission determination of the current master device on the slave device.

[0012] In some embodiments of the first aspect of the present application, the bus is provided with an address decoding module and a multi-way selection module; wherein the address decoding module is used to convert the binary code into a corresponding output signal to decode the address of the slave device; and the multi-way selection module is used to select the slave device after the decoded address.

[0013] In some embodiments of the first aspect of the present application, the manner in which the bus encodes the master device includes setting the same encoding for master devices with the same access rights.

[0014] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a hardware-based access permission management method, which is applied to a slave device electrically connected to a bus; the bus is also electrically connected to a number of master devices; the method includes: in response to the address decoding operation of the bus on the address information of the slave device to be accessed issued by the current master device, the master device labeling information issued together with the address information of the slave device to be accessed is compared with the master device flag information in a preset access permission allocation table; the access rights of the current master device are judged according to the comparison result, and a corresponding response is made to the access request of the current master device accordingly.

[0015] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a bus device, including: a security check module; the security check module is used to respond to the address decoding operation of the bus on the address information of the slave device to be accessed issued by the current master device, and compare the master device labeling information issued together with the address information of the slave device to be accessed with the master device flag information in a preset access permission allocation table; judge the access rights of the current master device according to the comparison result, and make a corresponding response to the access request of the current master device accordingly.

[0016] In some embodiments of the third aspect of the present application, the security check module includes: a number of XENOR gates, a first AND gate, a second AND gate and a third AND gate corresponding to the number of bits of the master device identification number; each of the XENOR gates includes a first input end and a second input end, the first input end inputs the master device identification number of the corresponding bit in the access permission table, and the second input end inputs the master device identification number of the current master device on the bus; the output end of each of the XENOR gates is connected to the first AND gate; the output end of the first AND gate is respectively connected to the first input end of the second AND gate and the first input end of the third AND gate; the second input end of the second AND gate inputs the read permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; the second input end of the third AND gate inputs the write permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; wherein, the output signal of the second AND gate represents the result of the read permission determination of the current master device on the slave device; the output signal of the third AND gate represents the result of the write permission determination of the current master device on the slave device.

[0017] As described above, the computing system, method and bus device based on hardware access rights management of the present application have the following beneficial effects: the MID encoding of the master device of the present invention is implemented based on hardware, and the access rights allocation of the slave device is also implemented based on hardware. Therefore, no matter how the intruder cracks the software, it is impossible to have the right or ability to break through the security firewall at the hardware level, thereby greatly improving the security of data access. For the access rights table of the slave device, the industry only gives a general permission value, that is, the permissions of the master device connected to the bus are one-size-fits-all. Anyone with privileges can access the slave device, and it is impossible to subdivide the permission management into individual modules. The present invention subdivides the management of access rights into individual modules or similar modules, and the permission management is more refined and flexible. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram showing the structure of the 3-bit ACPROT[2:0] of the standard bus AXI in the prior art.

[0019] Figure 2 Shown is a structural diagram of a computing system based on hardware-based access permission management in one embodiment of the present application.

[0020] Figure 3 Shown is a structural schematic diagram of a binary decoder in one embodiment of the present application.

[0021] Figure 4 Shown is a structural schematic diagram of a safety inspection module in one embodiment of the present application.

[0022] Figure 5 Shown is a schematic diagram of the structure of the access permission table in one embodiment of the present application.

[0023] Figure 6 Shown is a flowchart of a hardware access permission management method in one embodiment of the present application. DETAILED DESCRIPTION

[0024] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0025] It should be noted that in the following description, with reference to the accompanying drawings, several embodiments of the present application are described in the accompanying drawings. It should be understood that other embodiments may also be used, and mechanical composition, structure, electrical and operational changes may be made without departing from the spirit and scope of the present application. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present application is limited only by the claims of the published patents. The terms used here are only for describing specific embodiments and are not intended to limit the present application. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.

[0026] In this application, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix", "hold" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0027] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.

[0028] In order to solve the problems in the above background technology, the present invention provides a computing system based on hardware access rights management, which adopts the technical means of adding the master device ID to be accessed in the bus transmission, so that the security check of the slave device can know the access rights of the device, and the access result is determined according to whether the slave device authorizes the access device. Since the implementation of the technical solution of the present invention is fixed by circuit hardware and cannot be changed only by software control, data access is safer and more flexible.

[0029] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the technical solution in the embodiments of the present invention is further described in detail through the following embodiments and in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the invention.

[0030] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:

[0031] <1> AXPROT: An access permission signal provided by the AXI bus that can prevent illegal transactions downstream of the system. The AXPROT signal includes the write access permission signal AWPROT and the read access permission signal ARPROT, which can prevent illegal transactions downstream of the system; for example: if the transaction does not have the correct protection level, the memory controller can deny read or write access by using these signals

[0032] <2> SCP (System Control Processor): System control processor, used to control all system functions, such as clock control, power control or voltage control.

[0033] <3> AXI bus (Advanced Extensible Interface): A bus protocol, an on-chip bus for high performance, high bandwidth, and low latency. Due to its unidirectional channel architecture, the AXI bus allows information flow on the chip to be transmitted in one direction only, reducing latency and enabling SoCs to achieve better performance with a smaller area and lower power consumption.

[0034] The embodiments of the present invention provide a hardware-based access rights management method, a system for the hardware-based access rights management method, and a storage medium storing an executable program for implementing the hardware-based access rights management method. As for the implementation of the hardware-based access rights management method, the embodiments of the present invention will describe an exemplary implementation scenario of the hardware-based access rights management.

[0035] like Figure 2 As shown, a schematic diagram of the structure of a computing system based on hardware access permission management in an embodiment of the present invention is shown.

[0036] The computing system based on hardware access rights management includes a plurality of master devices and a plurality of slave devices, wherein the master devices and the slave devices are connected to each other through a bus. Figure 2 For example, the master device includes but is not limited to the central processing unit (CPU), graphics card, debugging module and system control processor (SCP). The slave device includes but is not limited to the voltage regulation module (Voltage Regulation Module), dynamic random access memory (Dynamic Random Access Memory, DRAM), SPI interface device or temperature sensor. The bus provides an interconnected access sharing hardware mechanism between devices and undertakes the task of data transmission; the transmission capacity of the bus is determined by the width and operating frequency of the bus. Optionally, the bus can be an AMBA bus, AHB bus, APB bus or AXI bus.

[0037] In an embodiment of the present invention, the current master device sends the master device identification information and the address information of the slave device to be accessed to the bus, so that the bus can select the corresponding slave device after address decoding; the selected slave device compares the master device identification information with the master device identification information in the preset access permission allocation table through the security check module set thereon; the access rights of the current master device are judged according to the comparison result, and a corresponding response is made to the access request of the current master device accordingly.

[0038] It should be understood that the slave device makes a corresponding response to the access request of the current master device, including the following possible responses: if the current master device is judged to have neither read nor write rights, the slave device responds by refusing access; if the current master device is judged to have read rights but not write rights, the slave device responds by accepting read access from the current master device but refusing write access; if the current master device is judged to have write rights but not read rights, the slave device responds by accepting write access from the current master device but refusing read access; if the current master device is judged to have both read and write rights, the slave device responds by accepting read and write access from the current master device.

[0039] In an embodiment of the present invention, the master device identification information is obtained by encoding the master device by a multi-bit wide bus. Exemplarily, taking the four components of the central processing unit (CPU), the graphics card, the debugging module and the system control processor (SCP) as an example, a 2-bit wide bus can be used to encode the master device, and the encoded master device identification information is the master device identification number (Mater Identity, MID). The master device identification numbers that can be generated by the 2-bit wide bus include mid:0, mid:1, mid:2, and mid:3, and these master device identification numbers are respectively assigned to the central processing unit (CPU), the graphics card, the debugging module and the system control processor (SCP). It can be understood that if there are more master devices connected to the bus, more bit-wide bus encodings can be used to represent them accordingly.

[0040] Preferably, the bus encodes the master device in a manner that includes setting the same encoding for the master devices with the same access rights. For example, if there are multiple CPUs or other multiple master devices, the same encoding can be used as long as the access rights are the same, which can reduce complexity and reduce the requirements for bus width.

[0041] In an embodiment of the present invention, the bus is provided with an address decoding module and a multi-way selection module; wherein the address decoding module is used to convert the binary code into a corresponding output signal to decode the address of the slave device; and the multi-way selection module is used to select the slave device after the decoded address.

[0042] In some examples, the address decoding module may use an address decoder. The decoding process of the address decoder is the inverse process of encoding, and its function is to convert a binary code with a specific meaning into a corresponding output signal. Optionally, the address decoder includes but is not limited to the following two types: a binary decoder or a unique address decoder, and a code converter. A binary decoder or a unique address decoder refers to converting a series of codes into a valid signal corresponding to one, and is commonly used in computers to decode the address of memory cells, that is, converting each address code into a valid signal to select the corresponding cell. A code converter refers to converting one code into another.

[0043] For example, Figure 3 The binary decoder shown is used as an example for explanation: the binary decoder has n-bit binary code input A0, A1...A n-1 , and 2 n Output Y0, Y1...Y2 n -1 In addition, the binary decoder is also provided with an enable terminal EI. When the enable input terminal EI is at a valid level, corresponding to each group of input codes, only one of the output terminals is at a valid level, and the other output terminals are at the opposite level. The output signal can be high level valid or low level valid.

[0044] In some examples, the multi-way selection module may use a multi-way selector. A multi-way selector is a circuit that can select any one of the multi-way data transmissions as needed. The multi-way selector may specifically use a 4-to-1 data selector, an 8-to-1 data selector, a 16-to-1 data selector, etc. In addition, the multi-way selector also includes bus multi-way selection, analog signal multi-way selection, etc., which are not limited in this embodiment.

[0045] In the embodiment of the present invention, when the slave device completes the preparation work, it sends a corresponding ready feedback signal to the master device; the master device sends the address information of the slave device to be accessed and its own master device identification number MID to the bus. The master device identification number MID is sent together with the address information of the slave device to be accessed, and the slave device will also receive the master device identification number MID when receiving the address information of the slave device to be accessed, so the security check module of the slave device will analyze whether the master device has the read and write permissions to itself.

[0046] Furthermore, the slave device is preset with an access permission allocation table, which is used to compare with the current master device identification information. The access permission allocation table in the slave device is used to record and characterize the following dimensions of information: master device identification number, read permission and write permission.

[0047] Preferably, the access permission allocation table in the slave device is also used to record and characterize information of the following dimensions: default read permission and default write permission. It is worth noting that when the permission value of the default read permission or the default write permission is 1, it means that even if a matching master device identification number MID is not found in the access permission allocation table, the current master device has the corresponding read right or write right. When the permission value of the default read permission or the default write permission is 0, it means that if a matching master device identification number MID is not found in the access permission allocation table, the current master device does not have the corresponding read right or write right.

[0048] Preferably, the access permission allocation table of the slave device is configured by the BIOS firmware. The Basic Input Output System (BIOS) contains the initialization program that needs to be run when the computer is turned on. The BIOS is stored in a read-only memory (ROM) chip on the motherboard. The content of the chip is written by professional production equipment before the computer leaves the factory and is solidified after leaving the factory. Since the BIOS firmware is credible, the access permission allocation table of the slave device is configured by the firmware, which can increase the flexibility of the design.

[0049] To facilitate understanding by those skilled in the art, the access permission table in the slave device is further described by taking Table 1 below as an example. In the table, 1 x represents an unknown value of 1-bit configuration, which can be either 0 or 1.

[0050] Table 1: Access rights table

[0051] Master ID Read permission Write permissions Default read permissions Default write permissions mid[0:1] Ren Wen Default_read_en Default_write_en Mid_0=xx Ren_0=x Wen_0=x Default_read_en=x Default_write_en=x Mid_1=xx Ren_1=x Wen_1=x … … … … … … …

[0052] Combination Figure 4 The circuit structure diagram shown takes two bits MID[1:0] as an example to illustrate the structure of the security check module in the slave device. The security check module includes a Master ID comparator, a second AND gate 44 and a third AND gate 45; the Master ID comparator includes a first XNOR gate 41, a second XNOR gate 42 and a first AND gate 43. Among them, the first input end 41a of the first XNOR gate 41 inputs the master device identification number of the corresponding bit in the access permission table, the second input end 41b inputs the master device identification number of the current master device on the bus, and the output end 41c is connected to the first input end 43a of the first AND gate 43. The first input end 42a of the second XNOR gate 42 inputs the master device identification number of the corresponding bit in the access permission table, the second input end 42b inputs the master device identification number of the current master device on the bus, and the output end 42c is connected to the second input end 43b of the first AND gate 43.

[0053] The output terminal 43c of the first AND gate 43 is connected to the first input terminal 44a of the second AND gate 44 and the first input terminal 45a of the third AND gate 45 respectively; the second input terminal 44b of the second AND gate 44 inputs the read permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; the second input terminal 45b of the third AND gate 45 inputs the write permission signal corresponding to the master device identification number of the corresponding bit in the access permission table. The output signal of the output terminal 44c of the second AND gate 44 represents the result of the current master device's read permission determination on the slave device; the output signal of the output terminal 45c of the third AND gate 45 represents the result of the current master device's write permission determination on the slave device.

[0054] The working principle of the security check module in the slave device is further explained as follows: the security check module includes a first XOR gate 41 and a second XOR gate 42 corresponding to mid_0 and mid_1, and the first input end of each XOR gate inputs the mid signal in the permission table, and the second input end inputs the mid signal in the access bus; only when the mid signal in the permission table is the same as the mid signal in the access bus, the output of the XOR gate is 1. The output ends of the first XOR gate 41 and the second XOR gate 42 are both connected to the input end of the first AND gate 43, and the output of the first AND gate 43 is used as the comparison result of the master device identification number (Master ID). The output end of the first AND gate 43 is respectively connected to one of the input ends of the second AND gate 44 and one of the input ends of the third AND gate 45, that is, after confirming that the current master device has the access right to the slave device, the specific permission content is further confirmed. Among them, the other input end of the second AND gate 44 inputs the read permission signal in the access permission table, so the output signal of the second AND gate 44 is the result of the current master device's read permission determination on the slave device. The other input terminal of the third AND gate 45 is input with a write permission signal in the access permission table, so the output signal of the third AND gate 45 is the determination result of the write permission of the current master device to the slave device.

[0055] It is worth noting that the technical solution provided by the present invention implements the MID encoding of the master device based on hardware, and the access rights allocation of the slave device is also based on hardware. Therefore, no matter how the intruder cracks the software, he will not have the right or ability to break through the security firewall at the hardware level, thereby greatly improving the security of data access.

[0056] In addition, for the access permission table of slave devices, the industry only gives a general permission value, that is, the permission of the master device connected to the bus is one-size-fits-all, and anyone with privileges can access the slave device, and it is impossible to subdivide the permission management into individual modules. The present invention subdivides the management of access rights into individual modules or modules of the same type, and the permission management is more refined and flexible.

[0057] In the above, the structure of a computing system based on hardware access rights management provided by an embodiment of the present invention is explained accordingly. Figure 2 The technical solution of the present invention is further illustrated by a specific example, and the detailed process is described as follows.

[0058] Step (1): When the slave device (such as an SPI interface device) is ready, the slave device will send a Ready signal to the master device. If the master device (such as a central processing unit CPU) wants to read or write a slave device, it will send the address of the slave device to the bus. At the same time, the master device's MID signal is also sent to the bus.

[0059] Step (2): The address decoder on the bus decodes the address of the slave device, and then selects the device, and the multiplexer MUX selects and opens the data, address and MID channels of the selected slave device.

[0060] Step (3): After the selected slave device obtains the master device identification number MID to be accessed, it compares the master device identification number MID with the master device identification number MID in the preset access permission table. If the comparison result is the same, it further compares whether it has the right to read and write.

[0061] by Figure 5 Take the displayed access permission table as an example to explain: if the master device identifier MID from the bus is equal to mid_0 in the access permission table, and the value of the read permission Ren_0 in the table is 1, it means that the access permission is for read operation; if the value of the write permission wen_0 in the table is 1, it means that the access permission is for write operation. The access permission table can list the permissions of multiple master devices, so as to finally determine whether the slave device can be read and written.

[0062] Step (4): If you have access rights, access the data normally; if you do not have access rights, ignore the access or report an error. Figure 2 As shown in , during normal read operations, the SPI interface device can upload data to the system control processor (SCP); when there is no access permission, an access error is reported.

[0063] like Figure 6 As shown, a flowchart of a hardware access rights management method in an embodiment of the present invention is shown. The hardware access rights management method in an embodiment of the present invention is applied to a slave device electrically connected to a bus; the bus is also electrically connected to a plurality of master devices; the method specifically includes the following steps:

[0064] Step S61: In response to the bus address decoding operation on the address information of the slave device to be accessed issued by the current master device, the master device tag information issued together with the address information of the slave device to be accessed is compared with the master device flag information in the preset access permission allocation table.

[0065] In some examples, the access permission allocation table is used to record and characterize information in the following dimensions: master device identification number, read permission, and write permission.

[0066] Furthermore, the access permission allocation table is also used to record and characterize information of the following dimensions: default read permission and default write permission; wherein, the default read permission is used to characterize that when no matching master device identification number is found in the access permission allocation table, it is assumed that the current master device has or does not have the corresponding read right; the default write permission is used to characterize that when no matching master device identification number is found in the access permission allocation table, it is assumed that the current master device has or does not have the corresponding write right.

[0067] In some examples, the slave device performs the following through the security check module: compares the master device identification information of the current master device with the master device identification information in a preset access authority allocation table, and determines the access rights of the current master device according to the comparison result.

[0068] Further, the security check module includes: a number of XENOR gates, a first AND gate, a second AND gate and a third AND gate corresponding to the number of bits of the master device identification number; each of the XENOR gates includes a first input end and a second input end, the first input end inputs the master device identification number of the corresponding bit in the access permission table, and the second input end inputs the master device identification number of the current master device on the bus; the output end of each of the XENOR gates is connected to the first AND gate; the output ends of the first AND gate are respectively connected to the first input end of the second AND gate and the first input end of the third AND gate; the second input end of the second AND gate inputs the read permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; the second input end of the third AND gate inputs the write permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; wherein, the output signal of the second AND gate represents the result of the read permission determination of the current master device on the slave device; the output signal of the third AND gate represents the result of the write permission determination of the current master device on the slave device.

[0069] Step S62: Determine the access rights of the current master device according to the comparison result, and make a corresponding response to the access request of the current master device accordingly.

[0070] In some examples, the slave device makes a corresponding response to the access request of the current master device, including the following possible responses: if the current master device is judged to have no read rights and write rights, the slave device responds by denying access; if the current master device is judged to have read rights but not write rights, the slave device responds by accepting read access from the current master device but denying write access; if the current master device is judged to have write rights but not read rights, the slave device responds by accepting write access from the current master device but denying read access; if the current master device is judged to have both read and write rights, the slave device responds by accepting read and write access from the current master device.

[0071] It should be noted that the hardware access permission management method provided in the above embodiment and the computing system embodiment based on hardware access permission management belong to the same concept, and the specific implementation process is detailed in the system embodiment, which will not be repeated here.

[0072] The present invention also provides a bus device, comprising: a security check module; the security check module is used to respond to the address decoding operation of the bus on the address information of the slave device to be accessed issued by the current master device, and compare the master device marking information issued together with the address information of the slave device to be accessed with the master device flag information in a preset access permission allocation table; judge the access rights of the current master device according to the comparison result, and make a corresponding response to the access request of the current master device accordingly.

[0073] Further, the security check module includes: a number of XENOR gates, a first AND gate, a second AND gate and a third AND gate corresponding to the number of bits of the master device identification number; each of the XENOR gates includes a first input end and a second input end, the first input end inputs the master device identification number of the corresponding bit in the access permission table, and the second input end inputs the master device identification number of the current master device on the bus; the output end of each of the XENOR gates is connected to the first AND gate; the output ends of the first AND gate are respectively connected to the first input end of the second AND gate and the first input end of the third AND gate; the second input end of the second AND gate inputs the read permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; the second input end of the third AND gate inputs the write permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; wherein, the output signal of the second AND gate represents the result of the read permission determination of the current master device on the slave device; the output signal of the third AND gate represents the result of the write permission determination of the current master device on the slave device.

[0074] It should be noted that the bus device provided in the above embodiment and the computing system embodiment based on hardware access permission management belong to the same concept, and the specific implementation process is detailed in the system embodiment, which will not be repeated here.

[0075] In summary, the present application provides a computing system, method and bus device based on hardware-based access rights management. The present invention implements the MID encoding of the master device based on hardware, and the access rights allocation of the slave device is also implemented based on hardware. Therefore, no matter how the intruder cracks the software, it is impossible to have the right or ability to break through the security firewall at the hardware level, thereby greatly improving the security of data access. For the access rights table of the slave device, the industry only gives a general permission value, that is, the permissions of the master device connected to the bus are one-size-fits-all. Anyone with privileges can access the slave device, and it is impossible to subdivide the permission management into individual modules. The present invention subdivides the management of access rights into individual modules or similar modules, and the permission management is more refined and flexible. Therefore, the present application effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.

[0076] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A computing system based on hardware access rights management, characterized in that: It includes several master devices and several slave devices, among which: The current master device sends the master device identification information and the address information of the slave device to be accessed to the bus, so that the bus can select the corresponding slave device after address decoding; The selected slave device compares the master device identification information with the master device identification information in the preset access permission allocation table through the security check module set thereon; determines the access right of the current master device according to the comparison result, and accordingly makes a corresponding response to the access request of the current master device; The security check module includes: a number of XENOR gates, a first AND gate, a second AND gate and a third AND gate corresponding to the number of bits of the master device identification number; each of the XENOR gates includes a first input end and a second input end, the first input end inputs the master device identification number of the corresponding bit in the access permission table, and the second input end inputs the master device identification number of the current master device on the bus; the output end of each of the XENOR gates is connected to the first AND gate; the output end of the first AND gate is respectively connected to the first input end of the second AND gate and the first input end of the third AND gate; the second input end of the second AND gate inputs the read permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; the second input end of the third AND gate inputs the write permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; wherein, the output signal of the second AND gate represents the result of the read permission determination of the current master device to the slave device; the output signal of the third AND gate represents the result of the write permission determination of the current master device to the slave device.

2. The computing system based on hardware access rights management according to claim 1, characterized in that: The access permission allocation table in the slave device is used to record and characterize the following information in various dimensions: master device identification number, read permission and write permission.

3. The computing system based on hardware access rights management according to claim 2, characterized in that: The access permission allocation table in the slave device is also used to record and characterize information of the following dimensions: default read permission and default write permission; wherein, the default read permission is used to characterize that when no matching master device identification number is found in the access permission allocation table, it is assumed that the current master device has or does not have the corresponding read right; the default write permission is used to characterize that when no matching master device identification number is found in the access permission allocation table, it is assumed that the current master device has or does not have the corresponding write right.

4. The computing system based on hardware access rights management according to claim 1, characterized in that: The bus is provided with an address decoding module and a multi-way selection module; wherein the address decoding module is used to convert the binary code into a corresponding output signal to decode the address of the slave device; and the multi-way selection module is used to select the slave device after the decoded address.

5. The computing system based on hardware access rights management according to claim 1, characterized in that: The bus encodes the master device in a manner that includes setting the same encoding for the master devices with the same access rights.

6. A hardware-based access rights management method, characterized in that: Applied to a computing system based on hardware access rights management as claimed in any one of claims 1 to 5, the computing system comprises a slave device electrically connected to a bus; the bus is also electrically connected to a plurality of master devices; the method comprises: In response to the address decoding operation of the bus on the address information of the slave device to be accessed issued by the current master device, the master device flag information issued together with the address information of the slave device to be accessed is compared with the master device flag information in the preset access permission allocation table; The access rights of the current master device are determined according to the comparison result, and a corresponding response is made to the access request of the current master device accordingly.

7. A bus device, characterized in that: include: Safety check module; The security check module is used to respond to the address decoding operation of the bus on the address information of the slave device to be accessed issued by the current master device, and compare the master device flag information issued together with the address information of the slave device to be accessed with the master device flag information in the preset access permission allocation table; The access right of the current master device is judged according to the comparison result, and a corresponding response is made to the access request of the current master device accordingly; the security check module includes: a number of XNOR gates, a first AND gate, a second AND gate and a third AND gate corresponding to the number of bits of the master device identification number; each of the XNOR gates includes a first input end and a second input end, the first input end inputs the master device identification number of the corresponding bit in the access permission table, and the second input end inputs the master device identification number of the current master device on the bus; the output end of each of the XNOR gates is connected to the first AND gate; the output end of the first AND gate is respectively connected to the first input end of the second AND gate and the first input end of the third AND gate; the second input end of the second AND gate inputs the read permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; the second input end of the third AND gate inputs the write permission signal corresponding to the master device identification number of the corresponding bit in the access permission table; wherein, the output signal of the second AND gate represents the result of the read permission determination of the current master device to the slave device; the output signal of the third AND gate represents the result of the write permission determination of the current master device to the slave device.