Methods, devices, equipment and media for dynamic adjustment of read and write operations

By dynamically adjusting the read and write operations of AXI slave devices and adjusting the handshake mechanism sequence according to channel identifiers and priorities, the latency and conflict issues in data transmission of AXI slave devices are resolved, thereby improving system stability and response speed.

CN119988292BActive Publication Date: 2025-12-02SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510080305.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-12-02
Estimated Expiration
2045-01-17

AI Technical Summary

Technical Problem

Existing AXI slave devices lack dynamic adjustment of read/write modes and effective scheduling mechanisms for read/write operations, resulting in latency, conflicts, and instability issues in data transmission.

Method used

By detecting the handshake mechanism request of the master device in the advanced extension interface, the channel identifier and request time are obtained. The read/write mode, channel type and priority are determined according to the dynamic adjustment rules. The handshake mechanism order is dynamically adjusted to prioritize high-priority operations and reduce channel conflicts and latency.

Benefits of technology

It improves system stability and reliability, optimizes resource allocation, reduces communication errors, enhances system response speed and flexibility, and simplifies system design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119988292B_ABST
    Figure CN119988292B_ABST
Patent Text Reader

Abstract

This invention relates to the field of computer technology and discloses a method, apparatus, device, and medium for dynamically adjusting read / write operations. The method involves obtaining the channel identifier of each read / write channel and the time when each handshake request was detected when a slave device of an advanced extension interface detects a handshake mechanism request sent by a master device through at least one read / write channel. Based on one or more factors, including dynamic adjustment rules, the time of each detected handshake mechanism request, and the channel identifier of each read / write channel, the method determines whether the slave device should establish a handshake mechanism with the master device through a first channel at the current time. After receiving the operation instruction transmitted by the master device through the first channel, the slave device forwards the operation instruction to the instruction execution device to complete the operation corresponding to the operation instruction. The slave device can adjust the order of establishing handshake mechanisms with the master device at any time according to the real-time needs of the system, prioritizing high-priority read / write operations and improving the system's execution efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and more specifically to a method and apparatus for dynamically adjusting read and write operations. Background Technology

[0002] The Advanced eXtensible Interface (AXI) bus is a high-performance point-to-point communication interface widely used for data transmission between processors and peripherals in embedded systems. AXI slave devices, acting as data receivers, need to be able to handle data requests from AXI master devices.

[0003] In related technologies, the AXI protocol provides a standard set of signals and interfaces for controlling the handshake process of data transmission. AXI slave devices can receive read and write requests from AXI master devices and respond according to the protocol standard. However, some systems in related technologies may implement simple serial or parallel read and write operations, but these are usually fixed patterns and cannot be dynamically adjusted according to actual needs. Summary of the Invention

[0004] In view of this, the present invention provides a method, apparatus, device and medium for dynamically adjusting read and write operations, in order to solve the problems of existing AXI slave devices lacking dynamic adjustment of read and write modes and lacking an effective scheduling mechanism for read and write operations.

[0005] In a first aspect, the present invention provides a method for dynamically adjusting read / write operations, which is executed by a slave device using an advanced extension interface, comprising:

[0006] When a master device of an advanced extension interface is detected to send a handshake mechanism request through at least one read / write channel, the channel identifier of each read / write channel and the time when each handshake mechanism request is detected are obtained.

[0007] Based on the dynamic adjustment rules, the time of detection of each handshake mechanism request, and one or more factors among the channel identifiers of each read / write channel, it is determined whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current time. The dynamic adjustment rules are used to indicate whether to receive the operation instructions of the first channel. The dynamic adjustment rules are determined by one or more attributes among the data read / write mode, channel type, and read / write priority. The first channel is any one of at least one read / write channel.

[0008] The system receives operation commands transmitted from the master device via the advanced expansion interface through the first channel and forwards the operation commands to the pre-configured command execution device to complete the operation corresponding to the operation command. The operation commands include read commands or write commands.

[0009] The present invention provides a method for dynamically adjusting read and write operations, which has the following advantages:

[0010] The detection system allows the master device of the advanced extension interface to send handshake requests through at least one read / write channel. This enables timely responses to the master device's handshake requests, reducing data transmission latency. Based on dynamic adjustment rules, the timing of each detected handshake request, and one or more factors including the channel identifier of each read / write channel, the system determines whether the slave device of the advanced extension interface should establish a handshake with the master device through the first channel at the current moment. This not only reduces communication errors caused by channel conflicts or overload, improving system stability and reliability, but also prioritizes high-priority read / write operations, significantly improving system response speed and overall performance. The dynamic adjustment rules are determined by one or more attributes including data read / write mode, channel type, and read / write priority. This allows the slave device of the advanced extension interface to select the most suitable operating mode according to specific application scenarios, further improving data processing flexibility. The slave device of the advanced extension interface can adjust the order of handshake establishment with the master device at any time according to the real-time needs of the system. Centralized handling of dynamic adjustments to the handshake mechanism reduces system design complexity, making the system simpler, easier to maintain, and easier to upgrade.

[0011] In one alternative implementation, detecting whether the master device of the advanced extension interface sends a handshake mechanism request through the first channel includes:

[0012] When the status of the master device of the advanced extension interface sending a handshake mechanism request signal in the first channel is detected to be valid, it is determined that the master device of the advanced extension interface sends a handshake mechanism request through the first channel.

[0013] Specifically, the signals indicating the sending of handshake mechanism request are collectively referred to as VALID signals. By detecting the state of the VALID signal, it is determined whether the master device of the Advanced Extension Interface (ALE) has sent a handshake mechanism request. This provides a simple and clear indication, enabling slave devices of the ALE to quickly recognize the master's intent and respond promptly to the master's handshake request. This helps reduce system response time and improve overall data transmission efficiency. Simultaneously, the valid state of the VALID signal, as a clear handshake request marker, helps reduce misjudgments caused by signal instability or interference, thereby lowering the risk of communication errors and channel conflicts.

[0014] In one alternative implementation, the data read / write mode includes either a serial mode or a parallel mode.

[0015] When the data read / write mode is serial mode, the dynamic adjustment rule is to establish a handshake mechanism in the order in which handshake mechanism requests are detected, based on the handshake mechanism requests sent with each read / write channel.

[0016] or,

[0017] When the data read / write mode is in parallel mode, the dynamic adjustment rule is to determine the order of read and write based on the read / write priority.

[0018] The read / write order is used to indicate the operation type based on the channel type corresponding to the multiple handshake mechanism requests that have been detected.

[0019] After establishing a handshake mechanism for all channels corresponding to the first operation type, then establish a handshake mechanism for all channels corresponding to the second operation type.

[0020] The operation types include read operation types and write operation types, with the first operation type having a higher priority than the second operation type.

[0021] Specifically, when the data read / write mode is serial, the dynamic adjustment rule is to establish a handshake mechanism sequentially according to the order in which handshake mechanism requests are detected, based on the handshake mechanism requests sent with each read / write channel. When the data read / write mode is parallel, the dynamic adjustment rule is to determine the order of read and write based on read and write priorities. This ensures that high-priority operations are executed first, thereby improving the transmission efficiency of critical data. At the same time, it ensures the sequentiality of data transmission, reduces delays caused by channel conflicts or resource contention, and improves the stability and reliability of the system.

[0022] By dynamically adjusting the handshake mechanism, the system can dynamically allocate channel resources according to the current communication status and priority, thereby improving resource utilization and system throughput.

[0023] In summary, this method improves the system's flexibility, efficiency, and stability by configuring corresponding dynamic adjustment rules for different data read and write modes, while optimizing resource allocation and utilization, and improving the system's response speed and reliability.

[0024] In an optional implementation, when the dynamic adjustment rule is to establish a handshake mechanism sequentially based on the handshake mechanism requests sent with each read / write channel according to the detected handshake mechanism requests, the system determines whether the slave device of the advanced extension interface has established a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment, based on one or more factors including the dynamic adjustment rule, the time when each handshake mechanism request is detected, and the channel identifier of each read / write channel. Specifically, this includes:

[0025] The order in which handshake requests are sent through each read / write channel is determined based on the timing of each handshake request.

[0026] When the execution order for establishing a handshake mechanism with the master device of the advanced extension interface through the first channel is determined based on the order in which handshake mechanism requests are sent from each read / write channel, a handshake mechanism is established with the master device of the advanced extension interface through the first channel.

[0027] Specifically, based on the timing of each handshake request, the order in which handshake requests are sent through each read / write channel is determined, and handshake mechanisms are established sequentially with the master device of the advanced extension interface. This ensures the orderliness of data transmission, which is crucial for application scenarios requiring strict order control (such as time synchronization or sequential processing tasks). At the same time, it avoids potential data chaos or conflicts caused by disordered processing, reduces the error rate of channel transmission, and orderly processing of handshake requests can not only reduce communication conflicts that may occur when multiple channels attempt to establish handshakes simultaneously, but also reduce unnecessary channel activation, thereby improving system stability and reducing system power consumption.

[0028] In an optional implementation, when the dynamic adjustment rule determines the read / write order based on read / write priority, and the read / write order is used to indicate the operation type based on the channel type corresponding to the multiple detected handshake mechanism requests, and to control all channels corresponding to the first operation type to establish handshake mechanisms before executing the handshake mechanism establishment of all channels corresponding to the second operation type, the system determines whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment, based on one or more factors including the dynamic adjustment rule, the time when each handshake mechanism request is detected, and the channel identifier of each read / write channel. Specifically, this includes:

[0029] Identify the channel type of each read / write channel based on its channel identifier;

[0030] The priority of each read / write channel is determined based on the channel type and read / write priority.

[0031] Based on the priority of the first channel, determine whether the slave device of the advanced extension interface should establish a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment.

[0032] Specifically, each read / write channel has its corresponding channel identifier. Based on the channel identifier of each read / write channel, the channel type, read operation type or write operation type of each read / write channel is identified.

[0033] The operation type priority is dynamically determined based on the channel type and read / write priority. When the channel with higher priority is transmitting, the channel with lower priority is in a waiting state. This allows system resources to be allocated more rationally to different channels to complete instruction transmission requests based on read / write priorities, thereby improving resource utilization efficiency. Since the handshake mechanism is based on channel type and read / write priority, the system behavior becomes more predictable and more conducive to system performance optimization.

[0034] In one alternative implementation, the channel type includes one or more of the following: read address type, read data type, write address type, write data type, and write response type.

[0035] Specifically, by differentiating between different types of channels, interference between different types of data can be reduced, data conflicts can be avoided, system stability can be improved, and multiple channels with the same read / write priority can work in parallel, providing higher data transmission bandwidth.

[0036] In an optional implementation, when determining whether the slave device of the Advanced Extension Interface establishes a handshake mechanism with the master device of the Advanced Extension Interface through the first channel at the current moment based on one or more factors including dynamic adjustment rules, the time when each handshake mechanism request is detected, and the channel identifier of each read / write channel, the method further includes:

[0037] The slave device controlling the advanced expansion interface indicates that the signal status for establishing the handshake mechanism on the first channel side is valid.

[0038] Specifically, the signals that indicate the establishment of a handshake mechanism are collectively referred to as READY signals. By dynamically adjusting the state of the READY signal on the first channel side, the system can optimize resource allocation according to the current communication demand. In channels that do not receive data transmission, setting the READY signal to an invalid state can reduce unnecessary channel activation, improve resource utilization efficiency, and reduce power consumption.

[0039] Secondly, the present invention provides a read / write operation dynamic adjustment device, the device comprising:

[0040] The detection module is used to detect whether the master device of the advanced extension interface sends a handshake mechanism request through at least one read / write channel;

[0041] The acquisition module is used to acquire the channel identifier of each read / write channel and the time when each handshake mechanism request is detected when the detection module detects that the master device of the advanced extension interface sends a handshake mechanism request through at least one read / write channel;

[0042] The processing module is used to determine whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment, based on one or more factors including the dynamic adjustment rules, the time of detection of each handshake mechanism request, and the channel identifier of each read / write channel. The dynamic adjustment rules are used to indicate whether to receive the operation instructions of the first channel. The dynamic adjustment rules are determined by one or more attributes including the data read / write mode, channel type, and read / write priority.

[0043] The control module is used to determine, based on one or more factors including dynamic adjustment rules, the moment each handshake mechanism request is detected, and the channel identifier of each read / write channel, whether the slave device of the advanced expansion interface establishes a handshake mechanism with the master device of the advanced expansion interface through the first channel at the current moment, and to control the signal state indicating the establishment of the handshake mechanism on the first channel side of the slave device of the advanced expansion interface to be in a valid state.

[0044] The receiving module is used to receive operation commands transmitted by the master device through the advanced expansion interface via the first channel;

[0045] The sending module is used to forward operation instructions to a pre-configured instruction execution device to complete the operation corresponding to the operation instructions, wherein the operation instructions include read instructions or write instructions.

[0046] The read / write operation dynamic adjustment device provided by this invention has the following advantages:

[0047] The detection mechanism allows the master device of the advanced extension interface to send handshake mechanism requests through at least one read / write channel. This enables timely responses to the handshake requests from the master device, reducing data transmission latency. Based on dynamic adjustment rules, the timing of each detected handshake mechanism request, and one or more factors including the channel identifier of each read / write channel, it determines whether the slave device of the advanced extension interface should establish a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment. This not only reduces communication errors caused by channel conflicts or overload, improving system stability and reliability, but also prioritizes high-priority read / write operations, significantly improving system response speed and thus enhancing overall performance. The dynamic adjustment rules are determined by one or more attributes including data read / write mode, channel type, and read / write priority. This allows the slave device of the advanced extension interface to select the most appropriate operating mode according to specific application scenarios, further improving the flexibility of data processing. By centrally handling the dynamic adjustment of the handshake mechanism, the complexity of system design can be reduced, making the system design simpler and easier to maintain and upgrade.

[0048] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the dynamic adjustment method for read and write operations described in the first aspect or any corresponding embodiment.

[0049] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions, which are used to cause a computer to perform the read / write operation dynamic adjustment method of the first aspect or any corresponding embodiment described above.

[0050] Fifthly, the present invention provides a computer program product, including computer instructions, which are used to cause a computer to execute the read / write operation dynamic adjustment method of the first aspect or any corresponding embodiment described above. Attached Figure Description

[0051] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0052] Figure 1 This is a flowchart illustrating a method for dynamically adjusting read / write operations according to an embodiment of the present invention.

[0053] Figure 2 This is a flowchart illustrating another method for dynamically adjusting read and write operations provided in an embodiment of the present invention;

[0054] Figure 3 This is a flowchart illustrating another method for dynamically adjusting read and write operations provided in an embodiment of the present invention;

[0055] Figure 4 This is a flowchart illustrating another method for dynamically adjusting read / write operations provided in this embodiment of the invention.

[0056] Figure 5 This is a schematic diagram of the structure of a read / write operation dynamic adjustment device provided in an embodiment of the present invention;

[0057] Figure 6 This is a schematic diagram of the hardware structure of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0058] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0059] The Advanced eXtensible Interface (AXI) bus is a high-performance point-to-point communication interface widely used for data transmission between processors and peripherals in embedded systems. Slave devices using the AXI interface, acting as data receivers, need to be able to handle data requests from the AXI master device.

[0060] In related technologies, the AXI protocol provides a standard set of signals and interfaces for controlling the handshake process of data transmission. Slave devices using the AXI Advanced Extension Interface can receive read and write requests from the AXI Master and respond according to the protocol standard. However, some systems in related technologies may implement simple serial or parallel read and write operations, but these are usually fixed patterns and cannot be dynamically adjusted according to actual needs.

[0061] To address the aforementioned problems, this invention provides a dynamic adjustment embodiment for read / write operations. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system (computer device) including a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0062] This embodiment provides a method for dynamically adjusting read and write operations, which can be used in the aforementioned terminal devices, such as mobile phones and tablet computers. Figure 1 This is a flowchart illustrating a method for dynamically adjusting read / write operations according to an embodiment of the present invention, as shown below. Figure 1 As shown, the process includes the following steps:

[0063] Step S101: When it is detected that the master device of the advanced extension interface sends a handshake mechanism request through at least one read / write channel, obtain the channel identifier of each read / write channel and the time when each handshake mechanism request is detected.

[0064] In a specific example, a single read / write channel can be configured between the master device and the slave device of the Advanced Extension Interface, or multiple read / write channels can be configured. Each read / write channel has a corresponding different channel identifier, which may be named based on the physical location and function of the channel to indicate the channel type of the read / write channel.

[0065] The main function of the read / write channel is to receive operation instructions from the master device of the advanced extension interface or to perform data transmission operations during the execution of instructions. When the slave device of the advanced extension interface detects that the master device of the advanced extension interface sends a handshake mechanism request through at least one read / write channel, the slave device of the advanced extension interface obtains the channel identifier of each read / write channel and the time when each handshake mechanism request is detected. Based on the channel identifier and the time of each handshake mechanism request, the order of receiving requests can be determined, ensuring the accuracy and order of data transmission.

[0066] Step S102: Based on the dynamic adjustment rules, the time of detection of each handshake mechanism request, and one or more factors among the channel identifiers of each read / write channel, determine whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current time.

[0067] The dynamic adjustment rule is used to indicate whether to receive the operation command of the first channel. The dynamic adjustment rule is determined by one or more attributes of data read / write mode, channel type, and read / write priority. The first channel is any one of at least one read / write channel.

[0068] Specifically, whether a slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment may be determined by the timing of each handshake mechanism request, or it may be determined by dynamic adjustment rules and the channel identifier of each read / write channel. Controlling one or more factors is mainly to dynamically adjust one or more attributes among the data read / write mode, channel type, and read / write priority to change the command reception order based on actual changes in demand.

[0069] In a specific example, data read / write modes are divided into serial mode and parallel mode. Channel types are divided into read operation type and write operation type. Read / write priorities include read operation type priority, write operation type priority, and whether read / write operation types are ordered; different combinations will result in different instruction reception orders. The first channel can be any channel.

[0070] Step S103: Receive the operation command transmitted by the master device through the first channel via the advanced extension interface, and forward the operation command to the pre-configured command execution device to complete the operation corresponding to the operation command.

[0071] Specifically, when a slave device of the Advanced Extension Interface (AXI) determines at a given moment that a handshake mechanism has been established with the master device of the AXI through the first channel, it performs the corresponding handshake operation. Then, it receives the operation instructions transmitted by the master device of the AXI through the first channel and forwards these instructions to the pre-configured instruction execution device. In a specific example, the operation instructions may include read or write instructions. The instruction execution device includes, but is not limited to, the following devices: a memory controller (responsible for managing memory access, capable of responding to read and write instructions to read and write data), a processor core (a processor core directly connected to the AXI bus, which accesses memory or peripherals based on read or write instructions), or a bridge device (a bridge device connecting the AXI bus to other bus protocols, which can translate AXI instructions to other protocols to enable communication between different buses).

[0072] This application provides a method for dynamically adjusting read and write operations. It detects that a master device of an advanced extension interface (ALE) sends a handshake request through at least one read / write channel. This allows for timely responses to the handshake requests from the ALE, reducing data transmission latency. Based on dynamic adjustment rules, the timing of each detected handshake request, and one or more factors including the channel identifier of each read / write channel, it determines whether a slave device of the ALE establishes a handshake mechanism with the master device of the ALE through the first channel at the current moment. This not only reduces communication errors caused by channel conflicts or overload, improving system stability and reliability, but also prioritizes high-priority read and write operations, significantly improving system response speed and overall performance. The dynamic adjustment rules are determined by one or more attributes including data read / write mode, channel type, and read / write priority. This allows the slave device of the ALE to select the most suitable operation mode according to specific application scenarios, further improving data processing flexibility. By centrally handling the dynamic adjustment of the handshake mechanism, this method reduces the complexity of system design, making the system design simpler and easier to maintain and upgrade.

[0073] In an optional embodiment, based on the foregoing embodiments, detecting whether the master device of the advanced extension interface sends a handshake mechanism request through the first channel can be achieved in the following way, specifically including the following method steps:

[0074] For example, when it is detected that the master device of the advanced extension interface is in a valid state in the first channel indicating that it is sending a handshake mechanism request, it is determined that the master device of the advanced extension interface is sending a handshake mechanism request through the first channel.

[0075] In one optional example, the signal indicating the handshake mechanism request can be a VALID signal, which can be either valid or invalid.

[0076] In practical applications, the level state of the VALID signal is used to indicate whether the signal is valid, with a high level indicating a valid state and a low level indicating an invalid state. Of course, in practice, other methods can also be used to define the validity of the VALID signal. For example, a logic value of 1 can represent valid, and a logic value of 0 can represent invalid.

[0077] Specifically, detecting the state of the VALID signal to determine whether the master device of the Advanced Extension Interface (ALI) has sent a handshake request provides a simple and clear indication. This allows slave devices of the ALI to quickly recognize the master's intent and respond promptly to the master's handshake request, helping to reduce system response time and improve overall data transmission efficiency. Simultaneously, the valid state of the VALID signal, as a clear indicator of a handshake request, helps reduce misjudgments caused by signal instability or interference, thereby lowering the risk of communication errors and channel conflicts.

[0078] In an optional embodiment, when determining whether the slave device of the Advanced Extension Interface establishes a handshake mechanism with the master device of the Advanced Extension Interface through the first channel at the current moment based on one or more factors including dynamic adjustment rules, the time when each handshake mechanism request is detected, and the channel identifier of each read / write channel, the method further includes:

[0079] The slave device controlling the advanced expansion interface indicates that the signal status for establishing the handshake mechanism on the first channel side is valid.

[0080] In one optional example, the signal indicating the establishment of the handshake mechanism can be a READY signal, which can have both a valid and an invalid state.

[0081] In practical applications, signal level states can be used to indicate whether the READY signal is valid or invalid. Of course, other methods can also be used to define the validity of the READY signal. For example, a logic value of 1 can represent valid, and a logic value of 0 can represent invalid.

[0082] Specifically, by dynamically adjusting the state of the READY signal on the first channel side, the system can optimize resource allocation based on the current communication demand. In channels that do not receive data transmission, setting the READY signal to an invalid state can reduce unnecessary channel activation, improve resource utilization efficiency, and reduce power consumption.

[0083] In one optional example, as described above, the data read / write mode includes serial mode or parallel mode.

[0084] When the data read / write mode is serial, the dynamic adjustment rule is as follows:

[0085] In the order in which handshake mechanism requests are detected, a handshake mechanism is established sequentially based on the handshake mechanism requests sent with each read / write channel;

[0086] Alternatively, when the data read / write mode is in parallel mode, the dynamic adjustment rule is as follows:

[0087] The order of reading and writing is determined based on read and write priorities. The order of reading and writing is used to indicate the operation type based on the channel type corresponding to the multiple handshake mechanism requests that have been detected.

[0088] After establishing a handshake mechanism for all channels corresponding to the first operation type, then establish a handshake mechanism for all channels corresponding to the second operation type.

[0089] The operation types include read operation types and write operation types, with the first operation type having a higher priority than the second operation type.

[0090] Furthermore, there may be one or more channels corresponding to the first operation type. When there are multiple channels, the instruction reception between the channels is carried out in parallel.

[0091] In a specific example, when the dynamic adjustment rule is to establish a handshake mechanism sequentially based on the handshake mechanism requests sent with each read / write channel according to the order in which handshake mechanism requests are detected, the steps for determining whether the slave device of the advanced extension interface has established a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment, based on the dynamic adjustment rule, the time when each handshake mechanism request is detected, and one or more factors among the channel identifiers of each read / write channel, can be found in [reference needed]. Figure 2 As shown, the method includes the following steps:

[0092] Step S201: Determine the order in which handshake mechanism requests are sent through each read / write channel based on the timing of each handshake mechanism request.

[0093] Specifically, the master device of the advanced extension interface is referred to as the Master device, and the slave device of the advanced extension interface is referred to as the Slave device.

[0094] In a specific example, when the Master device is detected to have sent a handshake mechanism request through at least one read / write channel, the time of each handshake mechanism request is obtained. The format of this time can be, for example, a value generated from 'year, month, day, hour, minute, second'. The order in which each read / write channel sends the handshake mechanism request is determined by the time of each handshake mechanism request. The earlier the received time, the earlier the order in which the channel sends the handshake mechanism request.

[0095] Step S202: Determine the order in which the handshake mechanism request is sent through each read / write channel to establish a handshake mechanism with the master device through the first channel and the advanced extension interface, based on the order in which the handshake mechanism request is sent through each read / write channel.

[0096] Step S203: Establish a handshake mechanism with the master device of the advanced expansion interface through the first channel.

[0097] Specifically, after determining the execution order for establishing a handshake mechanism with the master device through the advanced extension interface via the first channel based on the order in which handshake mechanism requests are sent by each read / write channel, the READY signal of the first channel is controlled to be in an active state according to the above order, wherein the first channel is any one of at least one read / write channel.

[0098] In another optional example, when the dynamic adjustment rule determines the read / write order based on read / write priority, and the read / write order is used to indicate the operation type based on the channel type corresponding to the multiple detected handshake mechanism requests, and to control the handshake mechanism to be established for all channels corresponding to the first operation type before the handshake mechanism is established for all channels corresponding to the second operation type, the system determines whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment, based on one or more factors including the dynamic adjustment rule, the time when each handshake mechanism request is detected, and the channel identifier of each read / write channel. See details. Figure 3 As shown, the method includes the following steps:

[0099] Step S301: Identify the channel type of each read / write channel based on the channel identifier of each read / write channel.

[0100] Specifically, each read / write channel has its corresponding channel identifier, each channel identifier has its corresponding channel type, and each channel type has its corresponding operation type, which is divided into read operation type and write operation type.

[0101] Step S302: Determine the priority of each read / write channel based on the channel type and read / write priority;

[0102] Specifically, channel types may include one or more of the following: read address channel, read data channel, write address channel, write data channel, and write response channel. Because channel types include both read and write types, the corresponding operation types may include both read and write operation types.

[0103] Read / write priority determines the priority of operation types. For example, read operations may have priority, or write operations may have priority. Based on the priorities of different read / write operations, the order in which read and write operations are performed can be determined. Each read / write channel has its priority determined according to the operation type corresponding to its channel type.

[0104] In a specific example, if read operations have a higher priority than write operations, then the read address channel and read data channel have a higher priority than the write data channel, write address channel, and write response channel. That is, all write operations will only be executed after all read operations have been completed. Conversely, if write operations have a higher priority than read operations, then all write operations will be executed first, followed by all read operations. In practical applications, channels of the same operation type can have equal priorities. Furthermore, when handshake requests are sent sequentially through different channels of the same operation type, the order in which they are sent can also determine the priority of the corresponding operations.

[0105] Step S303: Based on the priority of the first channel, determine whether the slave device of the advanced expansion interface establishes a handshake mechanism with the master device of the advanced expansion interface through the first channel at the current moment.

[0106] Specifically, as mentioned above, the priority of the first channel can be determined first, and then, based on the criteria for establishing a handshake mechanism with the Master device corresponding to different priorities, it can be determined whether to establish a handshake mechanism with the Slave device through the first channel.

[0107] For example, if the first channel is a read-type channel and has a high priority (meaning that read operations are executed first when both read and write operations are active), then the priority of the first channel can be used to determine when the slave device establishes a handshake with the master device at that moment.

[0108] In this embodiment, the operation type priority is dynamically determined based on the channel type and read / write priority. When a high-priority channel transmits data, a low-priority channel is in a waiting state. This allows system resources to be allocated more rationally to different channels to complete instruction transmission requests based on read / write priorities, thereby improving resource utilization efficiency. Since the handshake mechanism is established based on channel type and read / write priority, the system behavior becomes more predictable and more conducive to system performance optimization.

[0109] The overall operation flow of the method described above in this application will be illustrated below with a specific example. See below for details. Figure 4 As shown:

[0110] Assume that five channels are configured between the Master and Slave devices. Channels 0 and 1 are read operation types, and channels 2, 3, and 4 are write operation types. Channel 0 is specified as read address type, channel 1 as read data type, channel 2 as write address type, channel 3 as write data type, and channel 4 as write response type. Channels of the same operation type (e.g., all are read channels) have the same priority.

[0111] In a specific example, when the data read / write mode is set to serial, the order in which the requests are received is determined according to the timing of each handshake mechanism request, and a handshake mechanism is established with each read / write channel in turn.

[0112] For example, the handshake mechanism request received at the first moment is from channel 0, the handshake mechanism request received at the second moment is from channel 1, the handshake mechanism request received at the third moment is from channel 2, the handshake mechanism request received at the fourth moment is from channel 3, and the handshake mechanism request received at the fifth moment is from channel 4.

[0113] Therefore, based on the timing of each handshake request, the order of channels receiving the request can be clearly identified as channels 0, 1, 2, 3, and 4. A handshake mechanism is then established with each read / write channel in this order.

[0114] or,

[0115] In another specific example, the example uses read-first priority as the case, and the write-first operation instance is the same, so it will not be described again.

[0116] When the data read / write mode is set to parallel and the read / write priority is set to read first, according to the example above, the VALID signals of all five channels are valid. The slave device identifies the channel type based on the channel identifier: channel 0 is designated as read address type, channel 1 as read data type, channel 2 as write address type, channel 3 as write data type, and channel 4 as write response type. The operation type is then determined based on the channel type: channels 0 and 1 are read operation types, and channels 2, 3, and 4 are write operation types. Based on the read priority in the read / write priority, the read operation type is the first operation type. Therefore, a handshake mechanism is first established with channel 01 (read operation type). After channel 01 (read operation type) completes receiving the command, a handshake mechanism is established with channels 2, 3, and 4 (write operation type) and the command is received.

[0117] Specifically, when read-write order preservation is selected, if channel 0 (read address type) finishes receiving the instruction and channel 1 (read data type) is still executing, and the VALID signal of channel 0 (read address type) is detected as valid again, then the handshake mechanism with channel 0 (read address type) will continue to be established. When read-write order preservation is not selected, after channel 01 (read operation type) instruction is received, a handshake mechanism will be established with channel 234 (write operation type). In the case of channel 0, the handshake mechanism will be established with channel 0 only after channel 234 instruction is received.

[0118] Among them, read / write priority includes read / write order-preserving selection.

[0119] The above example fully demonstrates the process of dynamically adjusting read and write operations, which is achieved by continuously adjusting the dynamic adjustment rules according to actual needs.

[0120] This embodiment also provides a read / write operation dynamic adjustment device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0121] This embodiment provides a device for dynamically adjusting read / write operations, such as... Figure 5 The system includes: a detection module 501, an acquisition module 502, a processing module 503, a receiving module 504, and a sending module 505.

[0122] Detection module 501 is used to detect whether the master device of the advanced extension interface sends a handshake mechanism request through at least one read / write channel;

[0123] The acquisition module 502 is used to acquire the channel identifier of each read / write channel and the time when each handshake mechanism request is detected when the detection module detects that the master device of the advanced extension interface sends a handshake mechanism request through at least one read / write channel;

[0124] The processing module 503 is used to determine whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment based on one or more factors, including the dynamic adjustment rules, the time of detection of each handshake mechanism request, and the channel identifier of each read / write channel. The dynamic adjustment rules are used to indicate whether to receive the operation instructions of the first channel. The dynamic adjustment rules are determined by one or more attributes, including the data read / write mode, channel type, and read / write priority.

[0125] Receiver module 504 is used to receive operation commands transmitted by the master device through the advanced expansion interface via the first channel;

[0126] The sending module 505 is used to forward operation instructions to a pre-configured instruction execution device to complete the operation corresponding to the operation instructions, wherein the operation instructions include read instructions or write instructions.

[0127] In an optional embodiment, the detection module 501 is specifically configured to determine that the master device of the advanced extension interface sends a handshake mechanism request through the first channel when the master device of the advanced extension interface is detected to be in a valid state in the first channel indicating that the handshake mechanism request signal is valid.

[0128] In one optional embodiment, the data read / write mode includes a serial mode or a parallel mode;

[0129] When the data read / write mode is serial mode, the dynamic adjustment rule is to establish a handshake mechanism in the order in which handshake mechanism requests are detected, based on the handshake mechanism requests sent with each read / write channel.

[0130] Alternatively, when the data read / write mode is in parallel mode, the dynamic adjustment rule is to determine the order of read and write based on the read / write priority. The order of read and write is used to indicate the operation type based on the channel type corresponding to the multiple handshake mechanism requests that have been detected.

[0131] After establishing a handshake mechanism for all channels corresponding to the first operation type, then establish a handshake mechanism for all channels corresponding to the second operation type.

[0132] The operation types include read operation types and write operation types, with the first operation type having a higher priority than the second operation type.

[0133] In an optional embodiment, the processing module 503 is further configured to determine the order in which handshake mechanism requests are sent through each read / write channel based on the timing of each handshake mechanism request.

[0134] When the execution order for establishing a handshake mechanism with the master device of the advanced extension interface through the first channel is determined based on the order in which handshake mechanism requests are sent from each read / write channel, a handshake mechanism is established with the master device of the advanced extension interface through the first channel.

[0135] In an optional embodiment, the processing module 503 is further configured to identify the channel type of each read / write channel based on the channel identifier of each read / write channel;

[0136] The priority of each read / write channel is determined based on the channel type and read / write priority.

[0137] Based on the priority of the first channel, determine whether the slave device of the advanced extension interface should establish a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment.

[0138] In an optional embodiment, the channel type includes one or more of the following: read address type, read data type, write address type, write data type, and write response type.

[0139] In an optional embodiment, the device further includes a control module 506;

[0140] The control module 506 is specifically used to control the signal state indicating the establishment of the handshake mechanism on the first channel side of the slave device of the advanced expansion interface to be valid when determining whether the slave device of the advanced expansion interface has established a handshake mechanism with the master device of the advanced expansion interface through the first channel at the current moment, based on one or more factors including the dynamic adjustment rules, the time of detection of each handshake mechanism request, and the channel identifier of each read / write channel.

[0141] In this embodiment, the read / write operation dynamic adjustment device is presented in the form of a functional module. Here, a module refers to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0142] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0143] This invention provides a dynamic adjustment device for read / write operations. It detects handshake requests sent by a master device of an advanced extension interface (ALE) through at least one read / write channel. This allows for timely responses to the handshake requests, reducing data transmission latency. Based on dynamic adjustment rules, the timing of each detected handshake request, and one or more factors including the channel identifier of each read / write channel, it determines whether a slave device of the ALE establishes a handshake with the master device of the ALE through the first channel at the current moment. This not only reduces communication errors caused by channel conflicts or overload, improving system stability and reliability, but also prioritizes high-priority read / write operations, significantly improving system response speed and overall performance. The dynamic adjustment rules are determined by one or more attributes including data read / write mode, channel type, and read / write priority. This allows slave devices of the ALE to select the most suitable operation mode according to specific application scenarios, further improving data processing flexibility. Centralized dynamic adjustment of the handshake mechanism reduces system design complexity, making the system simpler, easier to maintain, and easier to upgrade.

[0144] This invention also provides a computer device. Figure 6 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 6 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 6 Take a processor 10 as an example.

[0145] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include an integrated circuit. The integrated circuit may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GPRS), or any combination thereof.

[0146] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.

[0147] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device as shown by a landing page for an app. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, which can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0148] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0149] The computer device also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 40 can be connected via a bus or other means. Figure 6 Taking the example of a connection between China and Israel via a bus.

[0150] Input device 30 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the computer device, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.

[0151] This invention also provides a computer-readable storage medium. The methods provided in the above embodiments can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0152] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0153] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for dynamically adjusting read / write operations, characterized in that, The method is executed by a slave device using an advanced extension interface, and the method includes: When a master device of an advanced extension interface is detected to send a handshake mechanism request through at least one read / write channel, the channel identifier of each read / write channel and the time when each handshake mechanism request is detected are obtained. Based on one or more factors, including the dynamic adjustment rules, the time of each detected handshake mechanism request, and the channel identifier of each read / write channel, it is determined whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current time. The dynamic adjustment rules are used to indicate whether to receive the operation instructions of the first channel. The dynamic adjustment rules are determined by one or more attributes, including the data read / write mode, channel type, and read / write priority. The first channel is any one of at least one read / write channel. The system receives operation instructions transmitted by the master device through the advanced extension interface via the first channel, and forwards the operation instructions to a pre-configured instruction execution device to complete the operation corresponding to the operation instructions. The operation instructions include read instructions or write instructions.

2. The method according to claim 1, characterized in that, Detecting whether the master device of the advanced extension interface sends a handshake mechanism request through the first channel, including: When it is detected that the master device of the advanced extension interface is in a valid state of sending a handshake mechanism request signal in the first channel, it is determined that the master device of the advanced extension interface sends a handshake mechanism request through the first channel.

3. The method according to claim 1 or 2, characterized in that, The data read / write mode includes serial mode or parallel mode; When the data read / write mode is serial mode, the dynamic adjustment rule is to establish the handshake mechanism in the order in which the handshake mechanism request is detected, according to the handshake mechanism request sent with each read / write channel. Alternatively, when the data read / write mode is parallel mode, the dynamic adjustment rule is to determine the read / write order based on the read / write priority, wherein the read / write order is used to indicate the operation type based on the channel type corresponding to the multiple handshake mechanism requests that have been detected. After establishing a handshake mechanism for all channels corresponding to the first operation type, then establish a handshake mechanism for all channels corresponding to the second operation type. The operation types include read operation types and write operation types, with the first operation type having a higher priority than the second operation type.

4. The method according to claim 3, characterized in that, When the dynamic adjustment rule is to establish the handshake mechanism sequentially based on the handshake mechanism requests sent with each read / write channel according to the order in which the handshake mechanism requests are detected, the determination of whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current time is based on one or more factors, including the dynamic adjustment rule, the time when each handshake mechanism request is detected, and the channel identifier of each read / write channel. Specifically, this includes: Based on the timing of each handshake mechanism request, determine the order in which the handshake mechanism requests are sent through each read / write channel; When the execution order for establishing a handshake mechanism with the master device of the advanced extension interface through the first channel is determined based on the order in which handshake mechanism requests are sent for each of the read / write channels, a handshake mechanism is established with the master device of the advanced extension interface through the first channel.

5. The method according to claim 3, characterized in that, When the dynamic adjustment rule determines the read / write order based on the read / write priority, and the read / write order is used to indicate the operation type based on the channel type corresponding to the multiple detected handshake mechanism requests, and to control all channels corresponding to the first operation type to establish a handshake mechanism before executing the handshake mechanism establishment of all channels corresponding to the second operation type, the step of determining whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current time, based on one or more factors including the dynamic adjustment rule, the time when each handshake mechanism request is detected, and the channel identifier of each read / write channel, specifically includes: The channel type of each read / write channel is identified based on the channel identifier of each read / write channel; The priority of each read / write channel is determined based on the channel type and the read / write priority. Based on the priority of the first channel, determine whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment.

6. The method according to claim 5, characterized in that, The channel type includes one or more of the following: read address type, read data type, write address type, write data type, and write response type.

7. The method according to claim 1 or 2, characterized in that, When determining, based on the dynamic adjustment rules, the moment each handshake request is detected, and one or more factors including the channel identifier of each read / write channel, whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment, the method further includes: The slave device controlling the advanced extension interface indicates that the signal state for establishing a handshake mechanism on the first channel side is valid.

8. A dynamic adjustment device for read / write operations, characterized in that, The device includes: The detection module is used to detect whether the master device of the advanced extension interface sends a handshake mechanism request through at least one read / write channel; The acquisition module is used to acquire the channel identifier of each read / write channel and the time when each handshake mechanism request is detected when the detection module detects that the master device of the advanced extension interface sends a handshake mechanism request through at least one read / write channel; The processing module is configured to determine, based on one or more factors including dynamic adjustment rules, the time of detection of each handshake mechanism request, and the channel identifier of each read / write channel, whether the slave device of the advanced extension interface establishes a handshake mechanism with the master device of the advanced extension interface through the first channel at the current time. The dynamic adjustment rules are used to indicate whether to receive the operation instruction of the first channel. The dynamic adjustment rules are determined by one or more attributes including data read / write mode, channel type, and read / write priority. The first channel is any one of at least one read / write channel. The control module is configured to, when determining whether the slave device of the advanced extension interface has established a handshake mechanism with the master device of the advanced extension interface through the first channel at the current moment, based on one or more factors including the dynamic adjustment rules, the time when each handshake mechanism request is detected, and the channel identifier of each read / write channel, control the signal state indicating the establishment of the handshake mechanism on the first channel side of the slave device of the advanced extension interface to be in a valid state. The receiving module is used to receive operation commands transmitted by the master device through the advanced extension interface via the first channel; The sending module is used to forward the operation instruction to a pre-configured instruction execution device to complete the operation corresponding to the operation instruction, wherein the operation instruction includes a read instruction or a write instruction.

9. A computer device, characterized in that, include: A memory and a processor are interconnected, the memory stores computer instructions, and the processor executes the computer instructions to perform the dynamic adjustment method for read / write operations as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, which are used to cause the computer to execute the dynamic adjustment method for read and write operations as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data transmission method between master and slave equipments through bus

    CN101477505A

  • ICB bus system and protocol

    CN109032973A