Data access control methods, devices, equipment, media, software products and chips
By dynamically selecting the order-preserving or out-of-order function in the bus data access control, the lack of flexibility and compatibility of bus data access control methods is solved, and high accuracy and efficiency of the data access process are achieved.
Patent Information
- Application Number
- CN202611256374.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-17
AI Technical Summary
Existing bus data access control methods lack flexibility and compatibility, resulting in limited system performance and efficiency, and failing to meet the changing needs of different scenarios.
By determining the target access mode when initiating an access request, and employing either order-preserving or out-of-order functions, a dynamic balance between order-preserving and out-of-order functions in the data access process is achieved, and control is performed in conjunction with mode configuration information and target control signals.
It improves the accuracy and transmission efficiency of the data access process, reduces system overhead, increases bandwidth utilization, and meets the flexible control needs of different scenarios.
Smart Images

Figure CN123114997A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of bus interconnection, specifically to a data access control method, apparatus, device, medium, program product, and chip. Background Technology
[0002] As an important component of computer systems, the bus enables communication and interaction between the master and slave ends through the issuance of data access requests and the return of data access results. It has been widely used in many product forms and fields, making the bus's control process for data access a key factor affecting system efficiency, security, and stability. Summary of the Invention
[0003] To overcome the problems existing in related technologies, this disclosure provides a data access control method, apparatus, device, medium, program product, and chip.
[0004] According to a first aspect of the present disclosure, a data access control method is provided, the data access control method comprising: In response to initiating a first access request, a target access mode corresponding to the first access request is determined, wherein the target access mode includes a first access mode and a second access mode. In response to the target access mode being the first access mode, a target control process is executed on the first access request and the second access request corresponding to the first access request, so that the order in which the response information of the first access request and the second access request is received is the same as the order in which the first access request and the second access request are initiated. In response to the target access mode being the second access mode, the first access request is executed and the response information of the first access request is received; Wherein, the second access request has the same access start address as the first access request, and / or the second access request has a different access start address than the first access request but is located within the same preset address range.
[0005] In this embodiment, when the first access request is initiated, the corresponding target access mode is determined. Under the first access mode, a target control process can be executed on the first access request and its corresponding second access request to ensure the consistency between the order of receiving response information and the order of sending access requests, thus achieving the order-preserving function of the data access process. Alternatively, under the second access mode, the first access request can be executed quickly without restrictions, and the response information of the first access request can be received, thus achieving the out-of-order function of the data access process. The first and second access modes can respectively improve data accuracy and transmission efficiency through order-preserving and out-of-order functions. This allows for flexible selection of the appropriate target access mode based on the scenario, requirements, and characteristics of the access request, enabling the choice between order-preserving and out-of-order applications. This facilitates a dynamic balance between high accuracy in order preservation and high efficiency in out-of-order processing, reducing system overhead and improving bandwidth utilization, thereby enhancing the overall performance of the data access process.
[0006] In some embodiments of this disclosure, determining the target access mode corresponding to the first access request includes: Obtain the mode configuration information corresponding to the first access request, wherein the mode configuration information is used to characterize the preset access mode corresponding to the first access request as the first access mode or the second access mode; In response to the preset access mode being the first access mode and the existence of a second access request corresponding to the first access request, the first access mode is determined as the target access mode. In response to the preset access mode being the first access mode and the absence of a second access request corresponding to the first access request, the second access mode is determined as the target access mode; In response to the preset access mode being the second access mode, the second access mode is determined as the target access mode.
[0007] In this embodiment, by obtaining the mode configuration information corresponding to the first access request, the mode configuration information can reflect whether the preset access mode corresponding to the first access request is the first access mode or the second access mode, so as to determine the initial selection intention of the first access mode and the second access mode. Combined with whether there is a second access request corresponding to the first access request, that is, whether there is an intention to enable the order preservation function, the final determination of the target access mode is realized. This provides a basis for controlling the issuance, execution, return and submission of the first access request, ensuring that the target access mode can match the selection intention of the access mode and the actual needs, and further improving the flexibility and rationality of the data access process.
[0008] In some embodiments of this disclosure, the mode configuration information includes a target control signal, and determining the target access mode corresponding to the first access request further includes: In response to the target control signal's level being in a first state, the first access mode is determined as the preset access mode; In response to the target control signal's level being in the second state, the second access mode is determined as the preset access mode; The level state of the target control signal is determined based on a preset control algorithm, or the level state of the target control signal is controlled by a preset control circuit.
[0009] In this embodiment, the target control signal is used as mode configuration information. The level state of the target control signal reflects the preset access mode, thereby enabling the selection of the preset access mode by controlling the level state of the target control signal, thus providing a basis for determining the target access mode. Configuring the level state of the target control signal to be determined based on a preset control algorithm or controlled by a preset control circuit facilitates flexible selection of software or hardware control methods to configure the preset access mode according to requirements. Software control can reduce hardware costs and improve control flexibility and compatibility, while hardware control can reduce resource and performance overhead, which is beneficial for further improving the overall performance of the data access process.
[0010] In some embodiments of this disclosure, before determining the target access mode corresponding to the first access request, the data access control method further includes: A protocol conversion process is performed for the first access request to convert the initial interface protocol into the target interface protocol, wherein the mode configuration information is located in the same user domain segment as the initial interface protocol and the target interface protocol.
[0011] In this embodiment, before determining the target access mode corresponding to the first access request, a protocol conversion process is performed for the first access request. This ensures that the first access request corresponds to the initial interface protocol and the target interface protocol that match the host and bus, respectively, before and after the protocol conversion process, thus guaranteeing the successful identification and distribution of the first access request. By carrying mode configuration information within the same user domain segment of the initial interface protocol and the target interface protocol, the mode configuration information can be transmitted between different interface protocols. This provides a guarantee for the control of the preset access mode, ensures the correctness of the timing, and further improves the flexibility and stability of the data access process.
[0012] In some embodiments of this disclosure, the target control process includes: The first access request and the second access request are sent sequentially according to the order in which they were initiated; and / or, The response information for the first access request and the second access request is returned sequentially according to the order in which they were initiated.
[0013] In this embodiment, the first access request and the second access request are sent sequentially according to the order in which they are initiated. The order in which the access requests are sent is controlled by the target control process, thereby controlling the order in which the response information is received. The response information of the first access request and the second access request are returned sequentially according to the order in which they are initiated. The order in which the response information is returned is controlled by the target control process, thereby controlling the order in which the response information is received. This provides a guarantee for the order preservation function in the first mode. By controlling both the order in which the access requests are sent and the order in which the response information is returned, the accuracy and stability of the order preservation function can be further improved.
[0014] In some embodiments of this disclosure, the step of sequentially issuing the first access request and the second access request according to the order in which the first access request and the second access request were initiated includes: In response to the failure to receive the response information of the Nth initiated target access request, the request information of the N+1th initiated target access request is stored; In response to receiving the response information of the Nth initiated target access request, based on the request information, the (N+1)th initiated target access request is issued; Wherein, N is a positive integer greater than or equal to 1, and the target access request includes the first access request and the second access request corresponding to the first access request.
[0015] In this embodiment, when the response information of the Nth initiated target access request is not received, the request information of the (N+1)th initiated target access request is stored. Upon receiving the response information of the Nth initiated target access request, the (N+1)th initiated target access request is sent based on the request information. By suspending and temporarily storing the target access requests and their request information, the sequential sending of access requests is achieved, thus realizing the order-preserving function in the first mode. Sending the (N+1)th target access request after receiving the response information of the Nth initiated target access request ensures that the reception time of the response information of the Nth initiated target access request is necessarily before the reception time of the response information of the (N+1)th target access request, further improving the accuracy and stability of the order-preserving function.
[0016] In some embodiments of this disclosure, the step of returning the response information of the first access request and the second access request sequentially according to the order in which the first access request and the second access request were initiated includes: In response to not receiving the response information for the Nth initiated target access request, store the response information for the N+1th initiated target access request; In response to receiving the response information of the Nth initiated target access request, return the response information of the (N+1)th initiated target access request; Wherein, N is a positive integer greater than or equal to 1, and the target access request includes the first access request and the second access request corresponding to the first access request.
[0017] In this embodiment, when the response information of the Nth initiated target access request is not received, the response information of the (N+1)th initiated target access request is stored. Upon receiving the response information of the Nth initiated target access request, the (N+1)th initiated target access request is returned. This temporary storage of response information ensures the sequential return of responses, thus achieving the order-preserving function in the first mode. Returning the response information of the (N+1)th initiated target access request after receiving the response information of the Nth initiated target access request guarantees that the reception time of the response information of the Nth initiated target access request is necessarily before the reception time of the response information of the (N+1)th initiated target access request. This further improves the accuracy and stability of the order-preserving function and enhances data transmission efficiency, enabling high-performance data access.
[0018] In some embodiments of this disclosure, the execution of the target control process on the first access request and the second access request corresponding to the first access request includes: The target control process is executed on the first access request and the second access request by a reordering cache module, which includes a data storage space and a control unit.
[0019] In this embodiment, the reordering cache module performs the target control process on the first access request and the second access request. It can utilize the data storage function and read / write order control function of the reordering cache module to temporarily store and read the request information and response information in order. Thus, the target access requests are sent out or the response information is returned in order according to the order in which the target access requests are initiated, realizing the order preservation function in the first mode. This is beneficial to further improve data access performance, ensure program correctness, and optimize resource utilization.
[0020] In some embodiments of this disclosure, the reordering cache module is configured with multiple linked lists, each linked list including multiple linked list nodes, and each linked list node including node data and a node pointer pointing to the next linked list node.
[0021] In this embodiment, multiple linked lists are configured for the reordering cache module, such that each linked list includes multiple linked list nodes, and each linked list node includes node data and a node pointer pointing to the next linked list node. The reordering cache module can achieve the order preservation function through linked lists. It can take advantage of the flexible storage, efficient addition and deletion operations, and convenient dynamic expansion of linked lists to reduce the hardware complexity of the reordering cache module and improve data access performance and resource utilization.
[0022] In some embodiments of this disclosure, the data storage space of the reordering cache module includes on-chip storage space.
[0023] In this embodiment, on-chip storage space is used as the data storage space of the reordering cache module, providing storage support for the execution of the target control process and the implementation of the order preservation function. Moreover, on-chip storage space has higher storage density and lower power consumption than traditional register sets. Replacing register sets with on-chip storage space can further optimize the space occupation and power consumption of the reordering cache module.
[0024] In some embodiments of this disclosure, the reordering cache module is also used to perform a transmission alignment process.
[0025] In this embodiment, on-chip storage space is used as the data storage space of the reordering cache module, providing storage support for the execution of the target control process and the implementation of the order preservation function. Moreover, on-chip storage space has higher storage density and lower power consumption than traditional register sets. Replacing register sets with on-chip storage space can further optimize the space occupation and power consumption of the reordering cache module.
[0026] In some embodiments of this disclosure, multiple first access requests correspond to the same host, and / or multiple first access requests correspond to different host.
[0027] In this embodiment, access requests initiated by the same host and different host are taken as first access requests. The target access mode is determined for the first access request. It is possible to select whether to enable the order preservation function for each first access request initiated by the same host and different host, so as to meet the needs of different services and different host for the order preservation function, and further improve the flexibility and targeting of the order preservation function.
[0028] In some embodiments of this disclosure, when the slave device corresponding to the first access request and the second access request is the target peripheral device, the execution order of the first access request and the second access request is the same as the initiation order of the first access request and the second access request.
[0029] In this embodiment, when the slave device corresponding to the first access request and the second access request is the target peripheral device, by controlling the execution order of the first access request and the second access request on the target peripheral device, the execution order of the first access request and the second access request is the same as the initiation order of the first access request and the second access request. This ensures that the data arrives in the target peripheral device in order, thereby meeting the target peripheral device's stronger order preservation requirements and avoiding impacting the data transmission efficiency of other first access requests and second access requests. This achieves fine-grained order preservation for the target peripheral device.
[0030] According to a second aspect of the present disclosure, a data access control device is provided, the data access control device comprising: The determining module is configured to determine the target access mode corresponding to the first access request in response to the initiation of the first access request, wherein the target access mode includes a first access mode and a second access mode. A first execution module is configured to, in response to the target access mode being the first access mode, execute a target control process on the first access request and the second access request corresponding to the first access request, such that the order in which the response information of the first access request and the second access request is received is the same as the order in which the first access request and the second access request are initiated. The second execution module is configured to execute the first access request and receive the response information of the first access request in response to the target access mode being the second access mode. Wherein, the second access request has the same access start address as the first access request, and / or the second access request has a different access start address than the first access request but is located within the same preset address range.
[0031] In some embodiments of this disclosure, the determining module is further configured to: Obtain the mode configuration information corresponding to the first access request, wherein the mode configuration information is used to characterize the preset access mode corresponding to the first access request as the first access mode or the second access mode; In response to the preset access mode being the first access mode and the existence of a second access request corresponding to the first access request, the first access mode is determined as the target access mode. In response to the preset access mode being the first access mode and the absence of a second access request corresponding to the first access request, the second access mode is determined as the target access mode; In response to the preset access mode being the second access mode, the second access mode is determined as the target access mode.
[0032] In some embodiments of this disclosure, the first execution module is further configured to: The first access request and the second access request are sent sequentially according to the order in which they were initiated; and / or, The response information for the first access request and the second access request is returned sequentially according to the order in which they were initiated.
[0033] In some embodiments of this disclosure, the first execution module is further configured to: In response to the failure to receive the response information of the Nth initiated target access request, the request information of the N+1th initiated target access request is stored; In response to receiving the response information of the Nth initiated target access request, based on the request information, the (N+1)th initiated target access request is issued; Wherein, N is a positive integer greater than or equal to 1, and the target access request includes the first access request and the second access request corresponding to the first access request.
[0034] In some embodiments of this disclosure, the first execution module is further configured to: In response to not receiving the response information for the Nth initiated target access request, store the response information for the N+1th initiated target access request; In response to receiving the response information of the Nth initiated target access request, return the response information of the (N+1)th initiated target access request; Wherein, N is a positive integer greater than or equal to 1, and the target access request includes the first access request and the second access request corresponding to the first access request.
[0035] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising: processor; Memory used to store processor-executable instructions; The processor is configured to execute the data access control method as described in the first aspect.
[0036] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the data access control method as described in the first aspect.
[0037] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the data access control method as described in the first aspect.
[0038] According to a sixth aspect of the present disclosure, a chip is provided, the chip being configured to perform the data access control method as described in the first aspect.
[0039] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: the first access mode and the second access mode can respectively improve data accuracy and transmission efficiency through the order-preserving function and the out-of-order function, which makes it convenient to flexibly select the appropriate target access mode according to the characteristics of the scenario, needs and access requests, so as to select the application of the order-preserving function or the out-of-order function. This is conducive to achieving a dynamic balance between high accuracy of order preservation and high efficiency of out-of-order, reducing system overhead and improving bandwidth utilization, thereby improving the overall performance of the data access process.
[0040] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0042] Figure 1 This is a flowchart illustrating a data access control method according to an exemplary embodiment.
[0043] Figure 2 This is a flowchart illustrating the determination of the target access mode corresponding to a first access request, according to an exemplary embodiment.
[0044] Figure 3 This is a flowchart illustrating the determination of the target access mode corresponding to a first access request, according to another exemplary embodiment.
[0045] Figure 4 This is a flowchart illustrating a target control process according to an exemplary embodiment.
[0046] Figure 5 This is a flowchart illustrating, according to an exemplary embodiment, the sequential issuance of the first access request and the second access request in the order in which they are initiated.
[0047] Figure 6 This is a flowchart illustrating, according to an exemplary embodiment, the response information of the first access request and the second access request are returned sequentially according to the order in which the first access request and the second access request are initiated.
[0048] Figure 7 This is a schematic diagram illustrating a linked list and physical storage space according to an exemplary embodiment.
[0049] Figure 8 This is a block diagram of a data access control device according to an exemplary embodiment.
[0050] Figure 9 This is a block diagram of an electronic device according to an exemplary embodiment.
[0051] In the picture: 10 - Determine module; 20 - First execution module; 30 - Second execution module; 400 - Electronic device; 402 - Processing component; 404 - Memory; 406 - Power supply component; 408 - Multimedia component; 410 - Audio component; 412 - Input / output interface; 414 - Sensor component; 416 - Communication component; 420 - Processor. Detailed Implementation
[0052] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.
[0053] As an important component of computer systems, the bus enables communication and interaction between the master and slave ends by issuing data access requests and returning data access results. It has been widely used in system-on-chip (SOC) deployments such as servers, terminal devices, and in-vehicle systems. The control methods and strategies of the bus for data access are gradually becoming key factors affecting the system's efficiency, security, and stability.
[0054] In related technologies, to ensure that the order of request results returned and submitted on the host side is consistent with the order of business logic, and to avoid data errors or inconsistencies caused by disordered order leading to business logic conflicts or system anomalies, it is necessary to maintain the order of requests through methods such as storing instruction identification information in First In First Out (FIFO) memory. Furthermore, a distributed architecture can be used to achieve order maintenance that matches multi-core consistency. However, data access control methods using related technologies employ a single and fixed control strategy, meaning the system uniformly enforces order maintenance for all requests throughout the entire operation. This results in performance sacrifices, high hardware overhead, and complex verification issues. Alternatively, the order of requests may be completely disregarded in the bus, leading to disordered request order. Data consistency is only ensured through data processing at the business layer, resulting in poor flexibility, scalability, and compatibility of data access control. This fails to meet the needs of flexible and changing control requirements and severely impacts the overall performance of the data access process.
[0055] Based on this, this disclosure provides a data access control method. When initiating a first access request, a corresponding target access mode is determined. Under the first access mode, a target control process is executed on the first access request and its corresponding second access request to ensure the consistency between the order of response information reception and the order of access request distribution, thus achieving the order-preserving function of the data access process. Alternatively, under the second access mode, the first access request can be executed quickly without restrictions, and the response information of the first access request can be received, thus achieving the out-of-order function of the data access process. The first and second access modes can respectively improve data accuracy and transmission efficiency through order-preserving and out-of-order functions. This allows for flexible selection of the appropriate target access mode based on the scenario, requirements, and characteristics of the access request, enabling the choice between order-preserving and out-of-order applications. This facilitates a dynamic balance between high accuracy in order preservation and high efficiency in out-of-order processing, reducing system overhead and improving bandwidth utilization, thereby enhancing the overall performance of the data access process.
[0056] In one exemplary embodiment, a data access control method is provided, applied to a system, integrated chip, or electronic device including a host, slave, and bus. The number and type of the host and slave can be configured as needed, and the bus includes various functional modules and bus networks. Exemplarily, the host may include a central processing unit, a graphics processing unit, or a neural network processor, while the slave may include memory and peripheral devices. The bus may include a protocol conversion module for protocol conversion, a protocol conversion network such as a Non-coherent Hyper Unified Bus (NUF), and a routing transmission network such as a Coherent Hyper Unified Fabric (CUF). For example, the data access control method can be executed through components such as a Target Protocol Adapter to CUP (TPAC) for converting a Non-coherent Hyper Unified Protocol (NUP) to a Coherent Hyper Unified Protocol (CUP).
[0057] refer to Figure 1 As shown, the data access control methods include: S100. In response to initiating the first access request, determine the target access mode corresponding to the first access request. The target access mode includes the first access mode and the second access mode.
[0058] In step S100, when a first access request is detected from the host, it indicates that the host has a need to access data from the slave device, such as reading or writing data. Therefore, it is necessary to determine the bus's control strategy for the data access process. This involves determining the target access mode corresponding to the first access request, which serves as the basis for controlling the issuance, execution, return, and submission of the first access request. The target access mode includes a first access mode and a second access mode. The target access mode can be determined based on the scenario, requirements, or characteristics of the first access request. For example, the mode configuration information passed down from the host can be used as the basis for determining the target access mode.
[0059] S200. In response to the target access mode being the first access mode, a target control procedure is executed on the first access request and the second access request corresponding to the first access request, so that the order in which the response information of the first access request and the second access request are received is the same as the order in which the first access request and the second access request are initiated.
[0060] In step S200, when the first access mode is selected as the target access mode, it indicates that the bus requires pre-order processing of the first access request. Therefore, a target control process is executed on the first access request and its corresponding second access request. This target control process controls the issuance, execution, return, and submission of the first and second access requests, enabling the pre-order function of the data access process. This ensures that the order in which the host receives the response information for the first and second access requests is the same as the order in which the host initiates the first and second access requests. This guarantees the consistency between the order of receiving the response information and the order in which the access requests are initiated, thereby ensuring data consistency and accuracy and avoiding business logic conflicts or system anomalies.
[0061] When a first access request has the same access start address as other access requests or access addresses within the same address range, duplicate access to data with overlapping storage addresses may occur. If the order in which the response information of the first access request and other access requests is received differs from the order in which the access requests were initiated, data corruption or inconsistency may occur, leading to business logic conflicts or system anomalies. Therefore, a sequence-preserving function is needed to ensure consistency between the order in which the response information is received and the order in which the access requests were initiated. Thus, at least one of the following is considered as the second access request corresponding to the first access request: an access request with the same access start address as the first access request, and an access request with a different access start address but within the same preset address range. In this second access request, a target control process is executed for both the first and second access requests within the first access mode.
[0062] For example, the target control process can control the receiving order by controlling at least one of the order in which access requests are sent, executed, or returned, to ensure that the receiving order of response information is consistent with the initiation order of access requests. The response information of the first access request and the second access request may include, for example, data reading results, data copy writing, or feedback information indicating whether the request has been completed. If access request A, which is the first access request, corresponds to two second access requests, access request B and access request C, and the response information of access request A, access request B, and access request C are response information a, response information b, and response information c, respectively, and the initiation order of access requests is access request A-access request B-access request C, then the target control process needs to control the receiving order of response information to response information a-response information b-response information c.
[0063] S300, in response to the target access mode being the second access mode, execute the first access request and receive the response information of the first access request.
[0064] In step S300, when the second access mode is selected as the target access mode, it means that the bus does not have a need to perform order-keeping processing on the first access request. Therefore, there is no need to execute the target control process. Without mandatory control over the issuance, execution, return, and submission of the first access request (i.e., without considering any restrictions), the first access request is executed to receive the response information, enabling out-of-order processing of the data access process. This ensures data transmission efficiency and achieves high-performance data access. It should be noted that in this case, the host can, for example, avoid sending access requests with the same starting address or within the same address range to mitigate out-of-order risks, or resolve the out-of-order problem through the data processing of the service layer.
[0065] Compared to related technologies that only support one access mode, either forced order preservation or out-of-order, the above data access control method can select between order preservation and out-of-order functions by choosing between a first access mode and a second access mode. This allows for a dynamic balance between high accuracy in order preservation and high efficiency in out-of-order access by switching between the first and second access modes, thus meeting real-time changing functional requirements.
[0066] In this embodiment, when the first access request is initiated, the corresponding target access mode is determined. Under the first access mode, a target control process can be executed on the first access request and its corresponding second access request to ensure the consistency between the order of receiving response information and the order of sending access requests, thus achieving the order-preserving function of the data access process. Alternatively, under the second access mode, the first access request can be executed quickly without restrictions, and the response information of the first access request can be received, thus achieving the out-of-order function of the data access process. The first and second access modes can respectively improve data accuracy and transmission efficiency through order-preserving and out-of-order functions. This allows for flexible selection of the appropriate target access mode based on the scenario, requirements, and characteristics of the access request, enabling the choice between order-preserving and out-of-order applications. This facilitates a dynamic balance between high accuracy in order preservation and high efficiency in out-of-order processing, reducing system overhead and improving bandwidth utilization, thereby enhancing the overall performance of the data access process.
[0067] In some embodiments, reference Figure 2 As shown, determining the target access mode corresponding to the first access request includes: S110. Obtain the mode configuration information corresponding to the first access request. The mode configuration information is used to indicate whether the preset access mode corresponding to the first access request is the first access mode or the second access mode.
[0068] In step S110, the mode configuration information corresponding to the first access mode is obtained. The mode configuration information can reflect whether the preset access mode corresponding to the first access request is the first access mode or the second access mode. The preset access mode is the access mode that is pre-set for the first access request. It represents the first access request's initial selection of the first access mode and the second access mode, and can be used as the basis for determining the target access mode, that is, the final selection of the first access mode and the second access mode.
[0069] S120. In response to the preset access mode being the first access mode and the existence of a second access request corresponding to the first access request, the first access mode is determined as the target access mode.
[0070] In step S120, when the preset access mode is the first access mode and there is a second access request corresponding to the first access request, it means that the initial selection of the first access mode and the second access mode is the first access mode. There is an intention to select the first access mode, and there is a risk of logical conflict or system abnormality due to multiple access requests having the same access start address or being located in the same preset address range. There is a need to select the first access mode to enable the order preservation function. Then the first access mode is determined as the target access mode, so that the first access mode is the final selection of the access mode.
[0071] S130. In response to the preset access mode being the first access mode and the absence of a second access request corresponding to the first access request, the second access mode is determined as the target access mode.
[0072] In step S130, when the preset access mode is the first access mode and there is no second access request corresponding to the first access request, it means that the initial selection of the first access mode and the second access mode is the first access mode. There is an intention to select the first access mode, but there is no risk of logical conflict or system abnormality caused by multiple access requests having the same access start address or being located in the same preset address range. There is no need to select the first access mode to enable the order preservation function. Then the second access mode is determined as the target access mode, so that the second access mode is the final selection of the access mode.
[0073] S140. In response to the preset access mode being the second access mode, the second access mode is determined as the target access mode.
[0074] In step S140, when the preset access mode is the second access mode, it means that the initial selection between the first access mode and the second access mode is the second access mode, and there is no intention to select the first access mode. Then the second access mode is determined as the target access mode, so that the second access mode is the final selection of the access mode.
[0075] In this embodiment, by obtaining the mode configuration information corresponding to the first access request, the mode configuration information can reflect whether the preset access mode corresponding to the first access request is the first access mode or the second access mode, so as to determine the initial selection intention of the first access mode and the second access mode. Combined with whether there is a second access request corresponding to the first access request, that is, whether there is an intention to enable the order preservation function, the final determination of the target access mode is realized. This provides a basis for controlling the issuance, execution, return and submission of the first access request, ensuring that the target access mode can match the selection intention of the access mode and the actual needs, and further improving the flexibility and rationality of the data access process.
[0076] In some embodiments, the mode configuration information includes a target control signal, the level of which is determined based on a preset control algorithm, or the level of which is controlled by a preset control circuit.
[0077] The target control signal can be used as mode configuration information to control a preset access mode. The level of the target control signal can be determined according to a preset control algorithm to configure the preset access mode in software. Alternatively, the level of the target control signal can also be controlled by a preset control circuit to configure the preset access mode in hardware.
[0078] refer to Figure 3 As shown, determining the target access mode corresponding to the first access request also includes: S111. In response to the target control signal level being in the first state, the first access mode is determined as the preset access mode.
[0079] S112. In response to the target control signal level being in the second state, the second access mode is determined as the preset access mode.
[0080] In steps S111 and S112, when the level state of the target control signal is the first level state, the first access mode is determined as the preset access mode, and when the level state of the target control signal is the second level state, the second access mode is determined as the preset access mode. The preset access mode can be controlled by controlling the level state of the target control signal, thereby achieving the initial selection of the first access mode and the second access mode.
[0081] For example, the first level state is a low level state, and the second level state is a high level state. When there is an intention to use the first access mode as the preset access mode, i.e., to enable the order-preserving function, the first access mode can be selected as the preset access mode by pulling the target control signal disorder_flag low. When there is an intention to use the second access mode as the preset access mode, i.e., to enable the out-of-order function, the second access mode can be selected as the preset access mode by pulling the target control signal disorder_flag high.
[0082] In this embodiment, the target control signal is used as mode configuration information. The level state of the target control signal reflects the preset access mode, thereby enabling the selection of the preset access mode by controlling the level state of the target control signal, thus providing a basis for determining the target access mode. Configuring the level state of the target control signal to be determined based on a preset control algorithm or controlled by a preset control circuit facilitates flexible selection of software or hardware control methods to configure the preset access mode according to requirements. Software control can reduce hardware costs and improve control flexibility and compatibility, while hardware control can reduce resource and performance overhead, which is beneficial for further improving the overall performance of the data access process.
[0083] In some embodiments, before determining the target access mode corresponding to the first access request, the data access control method further includes: performing a protocol conversion process for the first access request to convert the initial interface protocol into the target interface protocol, wherein the mode configuration information is located in the same user domain segment of the initial interface protocol and the target interface protocol.
[0084] Because the host and the bus have different interface protocols, a protocol conversion process needs to be performed on the first access request before determining the target access mode. This process converts the protocol of the first access request from the initial interface protocol adapted to the host to the target interface protocol adapted to the bus, ensuring the successful identification and distribution of the first access request. It should be noted that when the first access request is distributed to the slave, the target interface protocol adapted to the bus also needs to be converted to the interface protocol adapted to the slave to ensure the successful execution of the first access request.
[0085] Mode configuration information can be carried and transmitted by the interface protocol to enable the transfer of mode configuration information between the host and the bus, thereby controlling the preset access mode. Information within the user domain segments of the initial and target interface protocols can be retained after the protocol conversion process. To ensure the transfer of mode configuration information between different interface protocols, the mode configuration information corresponding to the first access request is configured within the same user domain segment of both the initial and target interface protocols.
[0086] For example, after the host generates the mode configuration information, it configures it in the user domain segment of the initial interface protocol. After the initial interface protocol is converted to the target interface protocol, the mode configuration information can be retained in the same user domain segment of the target interface protocol. The bus can parse the mode configuration information in the target interface protocol through its protocol conversion module TPAC to determine whether the preset access mode corresponding to the first access request is the first access mode or the second access mode.
[0087] In this embodiment, before determining the target access mode corresponding to the first access request, a protocol conversion process is performed for the first access request. This ensures that the first access request corresponds to the initial interface protocol and the target interface protocol that match the host and bus, respectively, before and after the protocol conversion process, thus guaranteeing the successful identification and distribution of the first access request. By carrying mode configuration information within the same user domain segment of the initial interface protocol and the target interface protocol, the mode configuration information can be transmitted between different interface protocols. This provides a guarantee for the control of the preset access mode, ensures the correctness of the timing, and further improves the flexibility and stability of the data access process.
[0088] In some embodiments, the target control process includes: sequentially issuing the first access request and the second access request in the order in which the first access request and the second access request are initiated.
[0089] The order in which the first and second access requests are sent can be controlled through a target control process. Access requests are sent to the corresponding slave devices in the order in which they are initiated by the host, ensuring that the order in which the first and second access requests are sent is consistent with the order in which they are initiated. This guarantees that the first and second access requests can be executed and return response information in the order they are initiated after being sent, thus ensuring that the order in which the access requests are initiated is consistent with the order in which the response information is received after the target control process is executed.
[0090] In other embodiments, the target control process includes: returning the response information of the first access request and the second access request in the order in which the first access request and the second access request were initiated.
[0091] The return order of the response information of the first access request and the second access request can be controlled through the target control process. The response information of the access requests is returned to the host in the order in which the access requests are initiated, so that the return order of the response information of the first access request and the second access request is consistent with the initiation order of the first access request and the second access request. This ensures that after the execution of the target control process, the initiation order of the access requests is consistent with the reception order of the response information.
[0092] In some other embodiments, reference is made to Figure 4 As shown, the target control process includes: S210. In accordance with the order in which the first access request and the second access request were initiated, the first access request and the second access request are sent out in sequence.
[0093] S220. Return the response information of the first access request and the second access request in the order in which they were initiated. In steps S210 and S220, the target control process can simultaneously control the order in which the first access request and the second access request are sent, as well as the order in which their corresponding response information is returned. This ensures that the order in which the first access request and the second access request are sent is consistent with the order in which they are initiated, and that the order in which their response information is returned is consistent with the order in which they are initiated. Both of these measures guarantee the consistency between the order in which the access requests are initiated and the order in which the response information is received.
[0094] In this embodiment, the first access request and the second access request are sent sequentially according to the order in which they are initiated. The order in which the access requests are sent is controlled by the target control process, thereby controlling the order in which the response information is received. The response information of the first access request and the second access request are returned sequentially according to the order in which they are initiated. The order in which the response information is returned is controlled by the target control process, thereby controlling the order in which the response information is received. This provides a guarantee for the order preservation function in the first mode. By controlling both the order in which the access requests are sent and the order in which the response information is returned, the accuracy and stability of the order preservation function can be further improved.
[0095] In some embodiments, reference Figure 5 As shown, the first access request and the second access request are sent sequentially according to the order in which they are initiated, including: S211. In response to the failure to receive the response information of the Nth initiated target access request, store the request information of the N+1th initiated target access request.
[0096] In step S211, both the first access request and its corresponding second access request are considered as target access requests, and the order of each target access request in the order of access request initiation is specified. If no response information is received for the Nth initiated target access request, the response information receiving order of the Nth and N+1th initiated target access requests may be out of order. Therefore, the sending process of the N+1th initiated target access request is not allowed, and the request information of the N+1th initiated target access request is stored, thus suspending and temporarily storing the target access request and its request information. N is a positive integer greater than or equal to 1, allowing the first initiated target access request to be sent directly, while subsequent initiated target access requests must be sent after receiving the response information of the previous target access request. For example, the request information may include a request identifier, request status, request address, request metadata, and request context.
[0097] S212. In response to receiving the response information of the Nth initiated target access request, based on the request information, issue the N+1th initiated target access request.
[0098] In step S212, when the response information of the Nth initiated target access request is received, the time when the response information of the N+1th initiated target access request is to be received must be after the time when the response information of the Nth initiated target access request is received, which can ensure the consistency between the receiving order of the response information and the initiation order of the access requests. The process of sending the N+1th target access request can be executed. Then, according to the stored request information, the N+1th initiated target access request is sent so that the host can receive the response information of the target access requests in the order of their initiation.
[0099] For example, the target access requests include access request A, access request B, and access request C. The response information for access request A, access request B, and access request C are response information a, response information b, and response information c, respectively. The order initiation of the access requests is access request A - access request B - access request C. Before response information a is received, the request information for access request B and access request C is stored. Upon receiving response information a, access request B is sent based on the request information for access request B. Similarly, upon receiving response information b, access request C is sent based on the request information for access request C.
[0100] In this embodiment, when the response information of the Nth initiated target access request is not received, the request information of the (N+1)th initiated target access request is stored. Upon receiving the response information of the Nth initiated target access request, the (N+1)th initiated target access request is sent based on the request information. By suspending and temporarily storing the target access requests and their request information, the sequential sending of access requests is achieved, thus realizing the order-preserving function in the first mode. Sending the (N+1)th target access request after receiving the response information of the Nth initiated target access request ensures that the reception time of the response information of the Nth initiated target access request is necessarily before the reception time of the response information of the (N+1)th target access request, further improving the accuracy and stability of the order-preserving function.
[0101] In some embodiments, reference Figure 6 As shown, the response information for the first and second access requests is returned sequentially according to the order in which they were initiated, including: S221. In response to not receiving the response information of the Nth initiated target access request, store the response information of the N+1th initiated target access request.
[0102] In step S221, both the first access request and its corresponding second access request are considered as target access requests, and the order of each target access request in the order of access request initiation is specified. If the response information for the Nth initiated target access request is not received, the order in which the response information of the Nth and N+1th initiated target access requests may be disordered. Therefore, the return process for the N+1th initiated target access request is not allowed, and the response information of the N+1th initiated target access request is stored, achieving temporary storage of the response information. N is a positive integer greater than or equal to 1, ensuring that the response information of the first initiated target access request can be returned directly, while the response information of subsequent initiated target access requests must be returned only after receiving the response information of the previous target access request.
[0103] S222. In response to receiving the response information of the Nth initiated target access request, return the response information of the N+1th initiated target access request.
[0104] In step S222, when the response information of the Nth initiated target access request is received, the reception time of the (N+1)th target access request's response information must be after the reception time of the Nth initiated target access request's response information. This ensures the consistency between the reception order of the response information and the initiation order of the access requests. Therefore, the return process of the (N+1)th target access request's response information can be executed. The stored response information of the (N+1)th initiated target access request is then returned to the host, allowing the host to receive the response information of the target access requests sequentially according to their initiation order. In this case, the sending and execution of target access requests do not need to wait for the previous target access request; only the return order of the response information needs to be controlled, improving data transmission efficiency and achieving high-performance data access.
[0105] For example, the target access requests include access request A, access request B, and access request C. The response information for access request A, access request B, and access request C are response information a, response information b, and response information c, respectively. The order in which the access requests are initiated is access request A - access request B - access request C. If response information a is not received, response information b and response information c are stored. When response information a is received, response information b is returned. When response information b is received, response information c is returned.
[0106] In this embodiment, when the response information of the Nth initiated target access request is not received, the response information of the (N+1)th initiated target access request is stored. Upon receiving the response information of the Nth initiated target access request, the (N+1)th initiated target access request is returned. This temporary storage of response information ensures the sequential return of responses, thus achieving the order-preserving function in the first mode. Returning the response information of the (N+1)th initiated target access request after receiving the response information of the Nth initiated target access request guarantees that the reception time of the response information of the Nth initiated target access request is necessarily before the reception time of the response information of the (N+1)th initiated target access request. This further improves the accuracy and stability of the order-preserving function and enhances data transmission efficiency, enabling high-performance data access.
[0107] In some embodiments, performing a target control process on a first access request and a second access request corresponding to the first access request includes: performing a target control process on the first access request and the second access request using a reordering cache module, wherein the reordering cache module includes a data storage space and a control unit.
[0108] The bus is equipped with a reorder buffer module, which includes a data storage space for storing data and a control unit for controlling the order of data writing and reading. The reorder buffer module can execute target control procedures for the first and second access requests to achieve the order-preserving function in the first mode.
[0109] For example, when controlling the order in which access requests are sent, the request information of the target access request can be stored in the data storage space of the reordering cache module, and the control unit of the reordering cache module can sort the request information according to the order in which the target access requests were initiated, thereby achieving the sequential sending of the target access requests by reading the request information sequentially. Similarly, when controlling the order in which response information of access requests is returned, the response information can be stored in the data storage space of the reordering cache module, and the control unit of the reordering cache module can sort the response information according to the order in which the target access requests were initiated, thereby achieving the sequential return of the response information by reading the response information sequentially.
[0110] In this embodiment, the reordering cache module performs the target control process on the first access request and the second access request. It can utilize the data storage function and read / write order control function of the reordering cache module to temporarily store and read the request information and response information in order. Thus, the target access requests are sent out or the response information is returned in order according to the order in which the target access requests are initiated, realizing the order preservation function in the first mode. This is beneficial to further improve data access performance, ensure program correctness, and optimize resource utilization.
[0111] In some embodiments, the reordering cache module is configured with multiple linked lists, each linked list including multiple linked list nodes, each linked list node including node data and a node pointer pointing to the next linked list node.
[0112] The order preservation function of the reordering cache module can be implemented using linked lists. Multiple linked lists are configured for the reordering cache module, each containing multiple linked list nodes. Each linked list can correspond to a group of target access requests with the same starting address or within the same preset address range, and different linked list nodes correspond to different target access requests. The node data of the linked list nodes stores the request and response information corresponding to the target access requests. Node pointers pointing from one linked list node to the next allow the linked list nodes to be ordered according to the order in which the corresponding target access requests were initiated. This makes each linked list equivalent to an independent FIFO (First-In, First-Out) memory, ensuring that the reordering cache module can perform the target control process for the first and second access requests, thus achieving the order preservation function in the first mode.
[0113] For example, refer to Figure 7 As shown, multiple linked lists share the same physical storage space, Pool. The physical storage space Pool is managed at the granularity of basic memory units (Entries), and each basic memory unit can be allocated the node data of one linked list node. The reordering cache module can, for example, be configured with two linked lists, Link0 and Link1. The node data DA0 and DA1 of the two linked list nodes in Link0 correspond to the request information of access requests A and B, respectively, which have the same starting address. The node data DB0, DB1, and DB2 of the three linked list nodes in Link1 correspond to access requests C, D, and E, respectively, which have the same starting address. In the physical storage space Pool, the order of node data DA0 and DA1 is the same as the order in which access requests A and B were initiated, and the order of node data DB0, DB1, and DB2 is the same as the order in which access requests C, D, and E were initiated. It should be noted that in the physical storage space Pool, it is only necessary to ensure the sorting of node data within the same linked list. Node data in different linked lists can be arranged arbitrarily, and the node pointers can be used to ensure that node data in the same linked list is read out sequentially.
[0114] In this embodiment, multiple linked lists are configured for the reordering cache module, such that each linked list includes multiple linked list nodes, and each linked list node includes node data and a node pointer pointing to the next linked list node. The reordering cache module can achieve the order preservation function through linked lists. It can take advantage of the flexible storage, efficient addition and deletion operations, and convenient dynamic expansion of linked lists to reduce the hardware complexity of the reordering cache module and improve data access performance and resource utilization.
[0115] In some embodiments, the data storage space of the reordering cache module includes on-chip storage space.
[0116] On-chip memory can be used as the data storage space for the reordering cache module, storing request and response information for access requests to provide storage support for the execution of the target control process and the implementation of the order-preserving function. For example, the on-chip memory may include static random access memory (SRAM).
[0117] In this embodiment, on-chip storage space is used as the data storage space of the reordering cache module, providing storage support for the execution of the target control process and the implementation of the order preservation function. Moreover, on-chip storage space has higher storage density and lower power consumption than traditional register sets. Replacing register sets with on-chip storage space can further optimize the space occupation and power consumption of the reordering cache module.
[0118] In some embodiments, the reordering cache module is also used to perform a transport alignment process.
[0119] With the reordering cache module configured, in addition to performing the order-preserving function by executing the target control process, it can also perform the transmission alignment function by executing the transmission alignment process. This ensures that data of different lengths and formats can be transmitted efficiently and accurately, avoiding transmission errors or performance losses caused by alignment deviations. In this case, the data storage space of the reordering cache module can provide storage support for the transmission alignment process, allowing the order-preserving function and the transmission alignment function to reuse the same storage block, eliminating the need to allocate separate transmission alignment buffer (WAB) resources for the transmission alignment function.
[0120] In this embodiment, the reordering cache module is also used to perform the transmission alignment process. It can achieve both the order preservation function and the transmission alignment function through the reordering cache module, so as to achieve functional complementarity and storage reuse, which is conducive to further reducing hardware costs and space occupation, and realizing hardware architecture optimization and system performance improvement.
[0121] In some embodiments, multiple first access requests may correspond to the same host, or multiple first access requests may correspond to different hosts. Alternatively, multiple first access requests may correspond to the same host and multiple first access requests may correspond to different hosts.
[0122] Multiple first access requests can be initiated from the same host, allowing multiple first access requests initiated from the same host to select the appropriate target access mode according to their needs. This enables the business layer to distinguish the order preservation requirements of different access requests and select whether to enable the order preservation function according to the order preservation requirements.
[0123] Multiple first access requests can also be initiated by different hosts, allowing multiple first access requests initiated by multiple hosts to select the appropriate target access mode according to their needs. This enables the host to distinguish the order preservation requirements of different access requests and select whether to enable the order preservation function according to the order preservation requirements.
[0124] A portion of the multiple first access requests can be initiated by the same host, while another portion can be initiated by different hosts. This allows multiple first access requests initiated by the same host and different hosts to select the appropriate target access mode according to their needs. It can distinguish the ordering requirements of different access requests at both the business level and the host level, and select whether to enable the ordering function according to the ordering requirements.
[0125] It is understandable that multiple second access requests corresponding to the same first access request may also correspond to the same or different host terminals.
[0126] In this embodiment, access requests initiated by the same host and different host are taken as first access requests. The target access mode is determined for the first access request. It is possible to select whether to enable the order preservation function for each first access request initiated by the same host and different host, so as to meet the needs of different services and different host for the order preservation function, and further improve the flexibility and targeting of the order preservation function.
[0127] In some embodiments, when the slave device corresponding to the first access request and the second access request is the target peripheral device, the execution order of the first access request and the second access request is the same as the initiation order of the first access request and the second access request.
[0128] When the slave devices corresponding to the first and second access requests are the target peripheral devices, the target peripheral devices may be configured with multiple data channels and lack the ability to guarantee the arrival order of data as other slave devices such as memory. Therefore, there are stronger requirements and constraints regarding the execution order of the access requests. Thus, it is necessary to control the execution order of the first and second access requests sent to the target peripheral device so that the first and second access requests can be received and executed on the target peripheral device in the order they were initiated.
[0129] For example, independent order-preserving branches can be established for the first access request and the second access request corresponding to the target peripheral device. The first access request and the second access request corresponding to the target peripheral device can be filtered by access attributes and identification information. For the filtered first access request and the second access request, the execution order of the access request can be kept consistent with the initiation order by controlling the order in which the access requests are sent.
[0130] In this embodiment, when the slave device corresponding to the first access request and the second access request is the target peripheral device, by controlling the execution order of the first access request and the second access request on the target peripheral device, the execution order of the first access request and the second access request is the same as the initiation order of the first access request and the second access request. This ensures that the data arrives in the target peripheral device in order, thereby meeting the target peripheral device's stronger order preservation requirements and avoiding impacting the data transmission efficiency of other first access requests and second access requests. This achieves fine-grained order preservation for the target peripheral device.
[0131] In one exemplary embodiment, a data access control device is provided, with reference to Figure 8As shown, the data access control device includes a determining module 10, a first execution module 20, and a second execution module 30. The determining module 10, in response to initiating a first access request, determines the target access mode corresponding to the first access request. The target access mode includes a first access mode and a second access mode. The first execution module 20, in response to the target access mode being the first access mode, executes a target control process on the first access request and the corresponding second access request, such that the receiving order of the response information of the first and second access requests is the same as the initiation order of the first and second access requests. The second execution module 30, in response to the target access mode being the second access mode, executes the first access request and receives the response information of the first access request. The second access request has the same access start address as the first access request, and / or the second access request has a different access start address than the first access request but is located within the same preset address range.
[0132] In this embodiment, when the first access request is initiated, the corresponding target access mode is determined by the determining module 10. In the first access mode, the first execution module 20 executes a target control process on the first access request and its corresponding second access request to ensure the consistency between the order of receiving response information and the order of sending access requests, thus achieving the order-preserving function of the data access process. Alternatively, in the second access mode, the second execution module 30 executes the first access request quickly without being affected by restrictive conditions and receives the response information of the first access request, thus achieving the out-of-order function of the data access process. The first and second access modes can respectively improve data accuracy and transmission efficiency through order-preserving and out-of-order functions. This allows for flexible selection of the appropriate target access mode based on the scenario, requirements, and characteristics of the access request, enabling the choice between order-preserving and out-of-order applications. This facilitates a dynamic balance between high accuracy in order preservation and high efficiency in out-of-order processing, reducing system overhead and improving bandwidth utilization, thereby enhancing the overall performance of the data access process.
[0133] In one embodiment, the determining module 10 is further configured to: obtain mode configuration information corresponding to the first access request, wherein the mode configuration information is used to characterize whether the preset access mode corresponding to the first access request is a first access mode or a second access mode; in response to the preset access mode being the first access mode and the existence of a second access request corresponding to the first access request, determine the first access mode as the target access mode; in response to the preset access mode being the first access mode and the existence of no second access request corresponding to the first access request, determine the second access mode as the target access mode; and in response to the preset access mode being the second access mode, determine the second access mode as the target access mode.
[0134] In one embodiment, the mode configuration information includes a target control signal, and the determining module 10 is further configured to: determine a first access mode as a preset access mode in response to the target control signal level being a first state; and determine a second access mode as a preset access mode in response to the target control signal level being a second state; wherein the target control signal level is determined based on a preset control algorithm, or the target control signal level is controlled by a preset control circuit.
[0135] In one embodiment, the data access control device further includes a conversion module, which is used to perform a protocol conversion process for the first access request to convert the initial interface protocol into a target interface protocol, wherein the mode configuration information is located in the same user domain segment of the initial interface protocol and the target interface protocol.
[0136] In one embodiment, the first execution module 20 is further configured to: sequentially issue the first access request and the second access request according to the order in which the first access request and the second access request are initiated; and / or, sequentially return the response information of the first access request and the second access request according to the order in which the first access request and the second access request are initiated.
[0137] In one embodiment, the first execution module 20 is further configured to: in response to not receiving response information for the Nth initiated target access request, store request information for the (N+1)th initiated target access request; in response to receiving response information for the Nth initiated target access request, issue the (N+1)th initiated target access request based on the request information; wherein N is a positive integer greater than or equal to 1, and the target access request includes a first access request and a second access request corresponding to the first access request.
[0138] In one embodiment, the first execution module 20 is further configured to: store the response information of the (N+1)th initiated target access request in response to not receiving the response information of the Nth initiated target access request; and return the response information of the (N+1)th initiated target access request in response to receiving the response information of the Nth initiated target access request; wherein N is a positive integer greater than or equal to 1, and the target access request includes a first access request and a second access request corresponding to the first access request.
[0139] In one embodiment, the first execution module 20 is further configured to perform a target control process on the first access request and the second access request using a reordering cache module, the reordering cache module including a data storage space and a control unit.
[0140] In one embodiment, the reordering cache module is configured with multiple linked lists, each linked list including multiple linked list nodes, and each linked list node including node data and a node pointer pointing to the next linked list node.
[0141] In one embodiment, the data storage space of the reordering cache module includes on-chip storage space.
[0142] In one embodiment, the reordering cache module is also used to perform a transmission alignment process.
[0143] In one embodiment, multiple first access requests correspond to the same host, and / or multiple first access requests correspond to different hosts.
[0144] In one embodiment, when the slave device corresponding to the first access request and the second access request is the target peripheral device, the execution order of the first access request and the second access request is the same as the initiation order of the first access request and the second access request.
[0145] In one exemplary embodiment, an electronic device is provided, which may include, for example, a server host, a cloud host, or a terminal device such as a mobile phone or tablet computer. The electronic device is capable of executing the data access control method shown in the above embodiments or combinations thereof.
[0146] refer to Figure 9 As shown, the electronic device 400 may include one or more of the following components: processing component 402, memory 404, power supply component 406, multimedia component 408, audio component 410, input / output (I / O) interface 412, sensor component 414, and communication component 416.
[0147] Processing component 402 typically controls the overall operation of electronic device 400, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 402 may include one or more modules to facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.
[0148] Memory 404 is configured to store various types of data to support the operation of electronic device 400. Examples of such data include instructions for any application or method operating on electronic device 400, contact data, phonebook data, messages, pictures, videos, etc. Memory 404 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0149] Power supply component 406 provides power to various components of electronic device 400. Power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 400.
[0150] Multimedia component 408 includes a screen that provides an output interface between electronic device 400 and user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 408 includes a front-facing camera module and / or a rear-facing camera module. When electronic device 400 is in an operating mode, such as shooting mode or video mode, the front-facing camera module and / or rear-facing camera module may receive external multimedia data. Each front-facing camera module and rear-facing camera module may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0151] Audio component 410 is configured to output and / or input audio signals. For example, audio component 410 includes a microphone (MIC) configured to receive external audio signals when electronic device 400 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 404 or transmitted via communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
[0152] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0153] Sensor assembly 414 includes one or more sensors for providing state assessments of various aspects of electronic device 400. For example, sensor assembly 414 may receive the on / off state of electronic device 400, the relative positioning of components such as the display and keypad of electronic device 400, changes in position of electronic device 400 or a component of electronic device 400, the presence or absence of user contact with electronic device 400, orientation or acceleration / deceleration of electronic device 400, and temperature changes of electronic device 400. Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 414 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0154] Communication component 416 is configured to facilitate wired or wireless communication between electronic device 400 and other terminals. Electronic device 400 can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 416 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0155] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods shown in the above embodiments or combinations thereof.
[0156] In one exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, which can be executed by a processor 420 of an electronic device 400 to perform the methods shown in the above embodiments or combinations thereof. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage terminal, etc. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is able to perform the methods shown in the above embodiments or combinations thereof.
[0157] In one exemplary embodiment, a computer program product is provided, including a computer program or instructions that, when executed by a processor, implement the methods shown in the above embodiments or combinations thereof.
[0158] In one exemplary embodiment, a chip is provided, which is configured to perform the methods shown in the above embodiments or combinations thereof.
[0159] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
[0160] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0161] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0162] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0163] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
[0164] The examples in this document may involve user data, data acquisition, and / or use. All of these aspects comply with relevant laws, regulations, and rules. In the examples, all data collection, acquisition, processing, manipulation, forwarding, and use are conducted with the user's knowledge and confirmation. Accordingly, when implementing each example, the type, scope of use, and usage scenarios of any data or information that may be involved should be communicated to the user and their authorization obtained through appropriate means, in accordance with relevant laws and regulations. The specific methods of notification and / or authorization can vary depending on the actual situation and application scenario; the scope of the solution is not limited in this regard.
[0165] In this manual and the sample solutions, any processing of personal information will be conducted only under legal grounds (such as obtaining the consent of the data subject or being necessary for the performance of a contract) and will only be carried out within the scope stipulated or agreed upon. A user's refusal to process personal information beyond what is necessary for basic functions will not affect the user's use of basic functions.
Claims
1. A data access control method, characterized in that, The data access control method includes: In response to initiating a first access request, a target access mode corresponding to the first access request is determined, wherein the target access mode includes a first access mode and a second access mode. In response to the target access mode being the first access mode, a target control process is executed on the first access request and the second access request corresponding to the first access request, so that the order in which the response information of the first access request and the second access request is received is the same as the order in which the first access request and the second access request are initiated. In response to the target access mode being the second access mode, the first access request is executed and the response information of the first access request is received; Wherein, the second access request has the same access start address as the first access request, and / or the second access request has a different access start address than the first access request but is located within the same preset address range.
2. The data access control method according to claim 1, characterized in that, Determining the target access mode corresponding to the first access request includes: Obtain the mode configuration information corresponding to the first access request, wherein the mode configuration information is used to characterize the preset access mode corresponding to the first access request as the first access mode or the second access mode; In response to the preset access mode being the first access mode and the existence of a second access request corresponding to the first access request, the first access mode is determined as the target access mode. In response to the preset access mode being the first access mode and the absence of a second access request corresponding to the first access request, the second access mode is determined as the target access mode; In response to the preset access mode being the second access mode, the second access mode is determined as the target access mode.
3. The data access control method according to claim 2, characterized in that, The mode configuration information includes a target control signal, and determining the target access mode corresponding to the first access request further includes: In response to the target control signal's level being in a first state, the first access mode is determined as the preset access mode; In response to the target control signal's level being in the second state, the second access mode is determined as the preset access mode; The level state of the target control signal is determined based on a preset control algorithm, or the level state of the target control signal is controlled by a preset control circuit.
4. The data access control method according to claim 2, characterized in that, Before determining the target access mode corresponding to the first access request, the data access control method further includes: A protocol conversion process is performed for the first access request to convert the initial interface protocol into the target interface protocol, wherein the mode configuration information is located in the same user domain segment as the initial interface protocol and the target interface protocol.
5. The data access control method according to claim 1, characterized in that, The target control process includes: The first access request and the second access request are sent sequentially according to the order in which they were initiated; and / or, The response information for the first access request and the second access request is returned sequentially according to the order in which they were initiated.
6. The data access control method according to claim 5, characterized in that, The step of sequentially issuing the first access request and the second access request according to the order in which they were initiated includes: In response to the failure to receive the response information of the Nth initiated target access request, the request information of the N+1th initiated target access request is stored; In response to receiving the response information of the Nth initiated target access request, based on the request information, the (N+1)th initiated target access request is issued; Wherein, N is a positive integer greater than or equal to 1, and the target access request includes the first access request and the second access request corresponding to the first access request.
7. The data access control method according to claim 5, characterized in that, The step of returning the response information of the first access request and the second access request sequentially according to the order in which they were initiated includes: In response to not receiving the response information for the Nth initiated target access request, store the response information for the N+1th initiated target access request; In response to receiving the response information of the Nth initiated target access request, return the response information of the (N+1)th initiated target access request; Wherein, N is a positive integer greater than or equal to 1, and the target access request includes the first access request and the second access request corresponding to the first access request.
8. The data access control method according to claim 5, characterized in that, The process of performing target control on the first access request and the second access request corresponding to the first access request includes: The target control process is executed on the first access request and the second access request by a reordering cache module, which includes a data storage space and a control unit.
9. The data access control method according to claim 8, characterized in that, The reordering cache module is configured with multiple linked lists, each of which includes multiple linked list nodes. Each linked list node includes node data and a node pointer pointing to the next linked list node.
10. The data access control method according to claim 8, characterized in that, The data storage space of the reordering cache module includes on-chip storage space.
11. The data access control method according to claim 8, characterized in that, The reordering cache module is also used to perform the transmission alignment process.
12. The data access control method according to any one of claims 1 to 11, characterized in that, Multiple first access requests may correspond to the same host, and / or multiple first access requests may correspond to different hosts.
13. The data access control method according to any one of claims 1 to 11, characterized in that, When the slave device corresponding to the first access request and the second access request is the target peripheral device, the execution order of the first access request and the second access request is the same as the initiation order of the first access request and the second access request.
14. A data access control device, characterized in that, The data access control device includes: The determining module is configured to determine the target access mode corresponding to the first access request in response to the initiation of the first access request, wherein the target access mode includes a first access mode and a second access mode. A first execution module is configured to, in response to the target access mode being the first access mode, execute a target control process on the first access request and the second access request corresponding to the first access request, such that the order in which the response information of the first access request and the second access request is received is the same as the order in which the first access request and the second access request are initiated. The second execution module is configured to execute the first access request and receive the response information of the first access request in response to the target access mode being the second access mode. Wherein, the second access request has the same access start address as the first access request, and / or the second access request has a different access start address than the first access request but is located within the same preset address range.
15. The data access control device according to claim 14, characterized in that, The determining module is also used for: Obtain the mode configuration information corresponding to the first access request, wherein the mode configuration information is used to characterize the preset access mode corresponding to the first access request as the first access mode or the second access mode; In response to the preset access mode being the first access mode and the existence of a second access request corresponding to the first access request, the first access mode is determined as the target access mode. In response to the preset access mode being the first access mode and the absence of a second access request corresponding to the first access request, the second access mode is determined as the target access mode; In response to the preset access mode being the second access mode, the second access mode is determined as the target access mode.
16. The data access control device according to claim 14, characterized in that, The first execution module is also used for: The first access request and the second access request are sent sequentially according to the order in which they were initiated; and / or, The response information for the first access request and the second access request is returned sequentially according to the order in which they were initiated.
17. The data access control device according to claim 16, characterized in that, The first execution module is also used for: In response to the failure to receive the response information of the Nth initiated target access request, the request information of the N+1th initiated target access request is stored; In response to receiving the response information of the Nth initiated target access request, based on the request information, the (N+1)th initiated target access request is issued; Wherein, N is a positive integer greater than or equal to 1, and the target access request includes the first access request and the second access request corresponding to the first access request.
18. The data access control device according to claim 16, characterized in that, The first execution module is also used for: In response to not receiving the response information for the Nth initiated target access request, store the response information for the N+1th initiated target access request; In response to receiving the response information of the Nth initiated target access request, return the response information of the (N+1)th initiated target access request; Wherein, N is a positive integer greater than or equal to 1, and the target access request includes the first access request and the second access request corresponding to the first access request.
19. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store processor-executable instructions; The processor is configured to perform the data access control method as described in any one of claims 1 to 13.
20. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the data access control method as described in any one of claims 1 to 13.
21. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the data access control method as described in any one of claims 1 to 13.
22. A chip, characterized in that, The chip is configured to perform the data access control method as described in any one of claims 1 to 13.
