A data synchronization and distribution module and method based on the AXI protocol

By designing a data synchronization and distribution module based on the AXI protocol, requests and data are cached and distributed synchronously, solving the problem of the limited number of processor bus interfaces, realizing synchronous control of multiple modules, and improving synchronization control efficiency.

CN121277867BActive Publication Date: 2026-03-06TIANJIN C CORE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511841388.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-09
Publication Date
2026-03-06
Estimated Expiration
2045-12-09

AI Technical Summary

Technical Problem

Because the number of processor bus interfaces in a chip is limited, it is impossible to access multiple modules simultaneously, resulting in low efficiency of synchronous control.

Method used

Design a data synchronization and distribution module based on the AXI protocol, including an AXI slave interface, a synchronization control logic module, a caching module, and an AXI master interface. The module achieves synchronization control by caching requests and data and distributing them to multiple slaves simultaneously under specific conditions.

Benefits of technology

It enables synchronous control of multiple modules at the same time, meets the processor's need for simultaneous access to multiple modules, and improves the efficiency of synchronous control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121277867B_ABST
    Figure CN121277867B_ABST
Patent Text Reader

Abstract

This invention provides a data synchronization and distribution module and method based on the AXI protocol, including an AXI slave interface, a synchronization control logic module, several cache modules, and several AXI master interfaces. The method includes the following steps: the host selects the trigger mode of the synchronization control logic module by configuring a control register group; the host sends a request to the device address; the request is stored in the cache module; based on the trigger mode, the synchronization control logic module determines the trigger conditions; when the trigger conditions are met, the synchronization control logic module initiates trigger actions on several AXI master interfaces; based on the trigger actions of the synchronization control logic module, the several AXI master interfaces perform data synchronization and distribution to several devices. The beneficial effects of this invention are: requests and data from the host are cached first, and then, according to the configuration conditions, the data is simultaneously distributed to multiple slave devices at a certain time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of AXI protocol communication, and in particular relates to a data synchronization and distribution module and method based on the AXI protocol. Background Technology

[0002] When it is desired to synchronously control multiple modules in a chip, the processor module needs to access multiple modules at the same time. However, the number of processor bus interfaces is usually limited and may be executed sequentially, which cannot meet the requirement of simultaneous access. Therefore, the modules can only be accessed sequentially. Thus, a module is needed to cache the processor's requests and data and then send all requests to the modules at the same time. Summary of the Invention

[0003] In view of this, the present invention aims to propose a data synchronization and distribution module and method based on the AXI protocol to solve the problem that when an AXI host accesses multiple different slaves at the same time, it is impossible to access them simultaneously due to the limitation on the number of host interfaces.

[0004] To achieve the above objectives, the technical solution of the present invention is implemented as follows:

[0005] In a first aspect, the present invention provides a data synchronization and distribution module based on the AXI protocol, including an AXI slave interface, a synchronization control logic module, several cache modules, and several AXI master interfaces;

[0006] The AXI slave interface is connected to the synchronization control logic module, the synchronization control logic module is connected to the AXI master interface, the AXI master interface is connected to the cache module, and the cache module is connected to the AXI slave interface; the AXI slave interface is connected to the AXI host, and the AXI master interface is connected to the device.

[0007] Several cache modules are mapped one-to-one with several AXI main interfaces.

[0008] Furthermore, the synchronization control logic module includes a control register group and a logic module, wherein the logic module includes an active triggering logic module and a counting triggering logic module.

[0009] Secondly, based on the same concept, the present invention also provides a method for data synchronization and distribution based on the AXI protocol, comprising the following steps:

[0010] S1. The host selects the trigger mode of the synchronous control logic module by configuring the control register group;

[0011] S2. The host sends a request to the device address;

[0012] S3. The request is stored in the cache module;

[0013] S4. Based on the trigger mode, the synchronous control logic module determines the trigger condition;

[0014] S5. When the triggering conditions are met, the synchronous control logic module initiates triggering actions on several AXI main interfaces.

[0015] S6. Based on the triggering action of the synchronization control logic module, the host performs data synchronization and distribution to several devices through several AXI master interfaces.

[0016] Furthermore, in step S1, the triggering mode is either active triggering mode or count triggering mode.

[0017] Furthermore, in step S4, based on the triggering mode, the synchronization control logic module determines the triggering conditions, including:

[0018] Based on the configuration of the control register group, the synchronous control logic module determines the triggering mode;

[0019] If the triggering mode is active triggering mode, the triggering condition is the triggering command sent by the host;

[0020] If the trigger mode is the count-triggered mode, the trigger condition is that the number of requests cached by the cache module reaches the number of cached requests configured in the control register group.

[0021] Furthermore, in step S5, when the triggering condition is met, the synchronization control logic module initiates triggering actions on several AXI master interfaces, including:

[0022] If the triggering mode is active triggering mode, when a trigger command is received from the host and the outstanding operations of several AXI master interfaces have been completed, several AXI master interfaces are enabled to send a request once, and continue to wait for the host to send a trigger command;

[0023] If the trigger mode is the count-triggered mode, then wait for the outstanding operations of several AXI main interfaces to complete. If the outstanding operations of several AXI main interfaces have all completed, then wait for the number of requests cached by several cache modules to reach the configured number. If the number of requests cached by several cache modules has reached the number of cached requests configured in the control register group, then several AXI main interfaces will start sending requests simultaneously until the number of requests sent reaches the number of cached requests configured in the control register group, and then wait for the outstanding operations of several AXI main interfaces to complete again.

[0024] Furthermore, in step S6, based on the triggering action of the synchronization control logic module, the host performs data synchronization distribution to several devices through several AXI master interfaces, including:

[0025] S61, several AXI main interfaces, and the enable signal of the synchronous control logic module;

[0026] S62. Several AXI main interfaces obtain request information from several cache modules;

[0027] S63, Several AXI master interfaces send AXI requests to several devices;

[0028] S64, Several AXI master interfaces are waiting for AXI responses from several devices;

[0029] S65. Several AXI master interfaces respond with a ready signal to several devices and write the response information to several cache modules;

[0030] S66 and AXI read several cache modules after interface arbitration and reply to the host with the response.

[0031] Compared with existing technologies, the data synchronization and distribution module and method based on the AXI protocol described in this invention have the following advantages:

[0032] This invention provides a data synchronization and distribution module based on the AXI protocol. It first caches requests and data from the host, and then distributes the data to multiple slave devices simultaneously at a certain time according to configuration conditions, so as to realize the processor's synchronous control of multiple modules and achieve specific control requirements. Attached Figure Description

[0033] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings:

[0034] Figure 1 This is a schematic diagram of the structure and connection of the synchronization distribution module according to an embodiment of the present invention;

[0035] Figure 2 This is a schematic diagram of the synchronization control logic module according to an embodiment of the present invention;

[0036] Figure 3 This is a schematic diagram of the AXI main interface process according to an embodiment of the present invention;

[0037] Figure 4 This is a schematic diagram of the active triggering mode workflow described in an embodiment of the present invention;

[0038] Figure 5 This is a schematic diagram of the counting trigger mode workflow described in an embodiment of the present invention. Detailed Implementation

[0039] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other.

[0040] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.

[0041] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art will understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0042] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0043] like Figure 1 The diagram shows the internal structure and connection of the data synchronization and distribution module. The system consists of an AXI host, a synchronization and distribution module, and multiple slave devices.

[0044] The synchronization distribution module includes an AXI slave interface, which receives requests and data from the AXI host, writes them to the corresponding cache module based on the address, reads responses from each cache module, arbitrates them, and then sends the responses back to the AXI host. In addition, the AXI slave interface is also responsible for writing and reading corresponding information to and from the synchronization control logic module.

[0045] The synchronous control logic module contains a control register set and logic modules. It obtains configuration information from the AXI master through the AXI slave interface to determine the trigger mode. Trigger modes include active trigger mode and count trigger mode. In active trigger mode, upon receiving a trigger command from the AXI master, each AXI slave interface simultaneously sends requests to the device. In count trigger mode, the AXI master configures the number of requests cached by each AXI slave interface. When the number of requests cached in each cache module reaches the configured number, each AXI slave interface simultaneously sends requests to the device.

[0046] like Figure 2 The flowchart shown illustrates the synchronization control logic module. The synchronization control logic module determines the trigger mode based on the register values. In active trigger mode, it waits for the AXI host to send a trigger command. Upon receiving the command, it waits for all AXI master interfaces to complete all outstanding operations, then simultaneously enables all AXI master interfaces to send a request once, and continues waiting for the AXI host to send the next trigger command. In count trigger mode, it waits for all AXI master interfaces to complete all outstanding operations, then waits for the number of cached requests from all cache modules to reach the configured cached request count. It enables all AXI master interfaces to send a request once, then compares the number of requests sent by each AXI master interface with the configured cached request count. If not, the AXI master interface continues to send a request once, until the number of requests sent by all AXI master interfaces has reached the configured cached request count.

[0047] The caching module is responsible for caching the requests, data, and response information of the corresponding AXI main interface and recording the amount of information cached.

[0048] The synchronous distribution module contains multiple AXI main interfaces. The AXI main interface flowchart is as follows: Figure 3 As shown, the AXI master interface waits for the enable signal from the synchronization control logic module, then retrieves the request information from the cache module, converts it into an AXI protocol request, and sends it to the device. Simultaneously, it waits for an AXI response, and upon receiving the response, replies with a slave device ready signal and writes the response information to the cache module.

[0049] When the synchronization control logic module is configured in active trigger mode, the workflow is as follows: Figure 4 As shown.

[0050] First, the AXI master configures the active trigger mode to the synchronization control logic module via the AXI interface. Then, the master sends a request to device 1 via the AXI interface using ID1; the request information is stored in cache module 1. Next, the master sends a request to device 2 via the AXI interface using ID2; the request information is stored in cache module 2. Then, the master sends a request to device 3 via the AXI interface using ID3; the request information is stored in cache module 3. The order in which the master sends requests to each device can be arbitrary. The master triggers the sending condition to the synchronization control logic module via the AXI interface using other IDs, and the AXI slave interface replies with a response to this request. The synchronization trigger logic controls each AXI master interface to simultaneously read information from the cache module and send AXI requests to the devices. Each AXI master interface writes the received response to its corresponding cache module. The AXI slave interface reads the response from the cache module and, after arbitration, replies to the AXI master.

[0051] When the synchronization control logic module is configured in count-triggered mode, the workflow is as follows: Figure 5 As shown.

[0052] First, the AXI host configures the counting trigger mode to the synchronization control logic module via the AXI interface, configuring the number of requests cached by the corresponding cache module of each AXI master interface. Then, the host sends a series of requests to device 1 address via the AXI interface using ID1; the request information is stored in cache module 1. Next, the host sends a series of requests to device 2 address via the AXI interface using ID2; the request information is stored in cache module 2. Then, the host sends a series of requests to device 3 address via the AXI interface using ID3; the request information is stored in cache module 3. The order in which the host sends requests to each device can be arbitrary. When the number of requests cached by all cache modules reaches the configured value, the synchronization trigger logic controls each AXI master interface to simultaneously read information from the cache module and send AXI requests to the devices. Each AXI master interface writes the received response to its corresponding cache module. AXI reads the response from the cache module from the interface and, after arbitration, replies to the AXI host.

[0053] Advantages and benefits of this invention:

[0054] This invention provides a data synchronization and distribution module based on the AXI protocol. It first caches requests and data from the host, and then distributes the data to multiple slave devices simultaneously at a certain time according to configuration conditions, so as to realize the processor's synchronous control of multiple modules and achieve specific control requirements.

[0055] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for data synchronization distribution based on AXI protocol, characterized in that: The method is realized by an AXI protocol-based data synchronization distribution module, and comprises the following steps: S1, a host selects a trigger mode of a synchronization control logic module by configuring a control register group; S2, the host sends a request to a device address; S3, the request is stored in a cache module; S4, the synchronization control logic module determines a trigger condition based on the trigger mode; S5, when the trigger condition is met, the synchronization control logic module initiates a trigger action on a plurality of AXI master interfaces; S6, based on the trigger action of the synchronization control logic module, the plurality of AXI master interfaces perform data synchronization distribution on a plurality of devices; The AXI protocol-based data synchronization distribution module comprises an AXI slave interface, a synchronization control logic module, a plurality of cache modules and a plurality of AXI master interfaces; The AXI slave interface is connected with the synchronization control logic module, the synchronization control logic module is connected with the AXI master interfaces, the AXI master interfaces are connected with the cache modules, and the cache modules are connected with the AXI slave interface; the AXI slave interface is connected with an AXI host, and the AXI master interfaces are connected with devices; The plurality of cache modules are in one-to-one mapping connection with the plurality of AXI master interfaces; The synchronization control logic module comprises a control register group and a logic module, and the logic module comprises a proactive trigger logic module and a counting trigger logic module; In step S1, the trigger mode is a proactive trigger mode or a counting trigger mode; In step S4, the synchronization control logic module determines a trigger condition based on the trigger mode, which comprises: Based on the configuration of the control register group, the synchronization control logic module determines the trigger mode; If the trigger mode is the proactive trigger mode, the trigger condition is a trigger command sent by the host; If the trigger mode is the counting trigger mode, the trigger condition is that the number of requests cached in the cache modules reaches the number of cached requests configured by the control register group.

2. The method for data synchronization and distribution based on AXI protocol according to claim 1, characterized in that: In step S5, when the trigger condition is met, the synchronization control logic module initiates a trigger action on the plurality of AXI master interfaces, which comprises: If the trigger mode is the proactive trigger mode, when the trigger command sent by the host is received and the outstanding operations of the plurality of AXI master interfaces are all completed, the plurality of AXI master interfaces are enabled to send a request once, and the host continues to wait for the trigger command; If the trigger mode is the counting trigger mode, the outstanding operations of the plurality of AXI master interfaces are waited for to be completed, if the outstanding operations of the plurality of AXI master interfaces are all completed, the number of requests cached in the plurality of cache modules is waited for to reach the configured number, if the number of requests cached in the plurality of cache modules all reaches the number of cached requests configured by the control register group, the plurality of AXI master interfaces simultaneously start to send requests until the number of sent requests reaches the number of cached requests configured by the control register group, and the outstanding operations of the plurality of AXI master interfaces are re-waited for to be completed.

3. The method for data synchronization and distribution based on AXI protocol according to claim 1, characterized in that: In step S6, based on the trigger action of the synchronization control logic module, the host performs data synchronization distribution on the plurality of devices through the plurality of AXI master interfaces, which comprises: S61, several AXI master interfaces wait for the enable signal of the synchronization control logic module; S62, several AXI master interfaces obtain the request information of several cache modules; S63, several AXI master interfaces send AXI requests to several devices; S64, several AXI master interfaces wait for the AXI responses of several devices; S65, several AXI master interfaces reply the response ready signal to several devices, and write the response information into several cache modules; S66, the AXI slave interface reads several cache modules after arbitration, and replies the response to the host.

Citation Information

Patent Citations

  • Concurrent transmission module and method based on AXI bus

    CN116150058A