TSN multi-queue management system and method based on shared cache

By adopting a multi-queue management system based on shared cache in TSN devices and utilizing the interaction between the data sharing cache module and the queue cache management module, the problems of high storage resource consumption and long data scheduling time for devices with a large number of ports are solved, achieving more efficiency. Data processing and cache management.

CN118626288APending Publication Date: 2024-09-10XIAN MICROELECTRONICS TECH INST
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410690592.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, the storage management method of TSN devices is not suitable for devices with a large number of ports, resulting in problems such as large storage resource consumption and long data scheduling time.

Method used

The TSN multi-queue management system based on shared cache is adopted. Through the interaction between the data sharing cache module and the queue cache management module, free pointers and strict priority scheduling strategies are used to achieve the separation of data storage and queue management, reducing the complexity of data interaction. and cache pressure.

Benefits of technology

It reduces the cache pressure of each port, reduces storage resource consumption and data scheduling time, and improves data processing efficiency and system reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626288A
    Figure CN118626288A
Patent Text Reader

Abstract

The invention discloses a shared cache-based TSN multi-queue management system and method. The system comprises a data shared cache module and a plurality of queue cache management modules, the data sharing cache module is used for caching all data; the data sharing cache module is in interactive connection with the plurality of queue cache management modules; the data sharing cache module transmits mark information of cache data to the corresponding queue cache management module for queue management scheduling, and after queue scheduling is completed, the data sharing cache module is accessed to obtain complete data; when data information reaches a queue, the queue cache management module determines a queue number according to a data type, extracts an idle address through a free pointer, allocates the idle address to the queue, and releases and returns the occupied address to a free address after data transmission is completed. The port queue control method and device are suitable for port queue control supporting TSN protocol equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of network queue management, and in particular to a TSN multi-queue management system and method based on shared cache. Background Art

[0002] In the protocol cluster specified by the 802.1 working group, Time Sensitive Networking (TSN) classifies data into 8 queues according to priority and data type, thereby isolating various types of data and ensuring the reliability of real-time data while also taking into account the transmission of other data in the network. The data outbound queue is controlled by means of a gating list. According to the protocol requirements, each port of a TSN protocol device must have 8 queues, but there are no regulations on the storage method and storage structure of the queues.

[0003] There are currently two commonly used methods for dequeuing storage management: one is that each queue occupies a data storage FIFO; the second is that the data of all queues on the port share a shared cache. The first method will lead to a significant increase in the cache resources of each port, but it is relatively simple to control. The second method, since the data of the port will be directly stored in the same shared cache, the size of the data is random, and the data carries complete information, the management and size requirements of the shared cache are relatively high. However, these two methods are not suitable for devices with a large number of ports, and there are problems such as high consumption of storage resources and long data scheduling time. Summary of the invention

[0004] In order to solve the problems existing in the prior art, the present invention provides a TSN multi-queue management system and method based on shared cache, which is used to solve the problems that the storage management method in the prior art is not suitable for devices with a large number of ports, and there are large storage resource consumption and long data scheduling time. The present invention is applicable to the port queue control of devices supporting the TSN protocol.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A TSN multi-queue management system based on shared cache, including a data shared cache module and several queue cache management modules;

[0007] The data sharing cache module is used to cache all data; the data sharing cache module is interactively connected with several queue cache management modules; the data sharing cache module transmits the mark information of the cached data to the corresponding queue cache management module for queue management scheduling, and accesses the data sharing cache module to obtain complete data after the queue scheduling is completed;

[0008] When data information arrives at the queue, the queue buffer management module determines the queue number according to the data type, and takes out an idle address through a free pointer and allocates it to the queue. After completing the data transmission, the occupied address will be released and returned to a free address.

[0009] Preferably, after receiving the flag information of the cached data, the queue cache management module adopts a fixed-length shared cache method for management.

[0010] Preferably, after receiving the flag information of the cached data, the queue cache management module controls the queue dequeue according to the current queue information and the information of the gating list, and selects the data to be sent; and the head data information of each queue will be recorded, and a strict priority method combined with a gating list is used to ensure the transmission of the highest priority data; after completing the scheduling, according to the information of the scheduled data, the data sharing cache module is accessed through the information of the head and tail addresses to obtain complete data information.

[0011] Preferably, the free pointer control states in the queue buffer management module are:

[0012] The idle state S0 is used to wait for the system reset to be effective before jumping into the free pointer state machine waiting state S1;

[0013] The free pointer state machine waiting state S1 is used to give the free pointer storage FIFO the initialization time after the system is reset. After the configurable FIFO_RESET_DELAY time is reached, the free pointer initialization state S2 is entered;

[0014] The free pointer initialization state S2 is used to complete the initialization of all free pointers, write all idle free pointers into the free pointer storage FIFO, and enter the free pointer working state S3 after the counter reaches 'hff;

[0015] The free pointer working state S3 is used to complete the release of the free pointer. Every time the port receives data information, the storage queue will be determined according to the data type. At this time, the address will be read from the free pointer storage FIFO; after the data is sent, the address occupied by the data will be written back to the free pointer storage FIFO to complete the return of the free pointer.

[0016] Preferably, the queue management scheduling control states in the queue buffer management module are:

[0017] Idle state S0, after the system is reset, it is in idle state S0; after detecting the tx_req_o signal, it jumps to the sending non-blocking state S1 or the sending blocking state S2;

[0018] Send non-blocking state S1, in which the current highest priority queue is not empty. At this time, it is necessary to determine whether the remaining priority data can be sent based on whether the current highest priority data has reached the sending time point, so as to schedule the dequeued data; in this state, when the tx_un_blk_val signal is sent, it jumps to the sending queue state S3;

[0019] Send blocking state S2, in which the highest priority queue is empty. At this time, data is scheduled for queues 0-6 according to the strict priority scheduling policy, and after detecting the tx_blk_val_d signal, it jumps to the send queue state S3;

[0020] The sending queue state S3, in this state, mainly completes the sending queue number scheduled in the sending non-blocking state S1 / sending blocking state S2, and extracts the head and tail addresses of the queue head data stored in the data sharing cache according to the queue management information, and then completes the data interaction with the data sharing cache, and sends the complete data according to the specified timing. In this state, when the tx_store_succ_i signal is detected, it means that the data transmission has been completed, and enters the sending queue complete state S4;

[0021] The sending queue complete state S4 is used to generate the corresponding state signal, and the next clock cycle jumps to the sending queue waiting state S5;

[0022] The sending queue wait state S5 is used to update the head information of all queues. After the update_finish_i signal is valid, it jumps to the idle state S0.

[0023] A TSN multi-queue management method based on shared cache, based on any one of the above-mentioned TSN multi-queue management systems based on shared cache, comprising:

[0024] Store all data in the data sharing cache module;

[0025] The data sharing cache module passes the flag information of the cached data to the corresponding queue cache management module, performs queue dequeue scheduling based on the flag information, waits for the dequeue scheduling of the data to be completed, and then interacts with the shared cache storing the data information to obtain the complete data and complete the sending;

[0026] When data information arrives at the queue, the queue cache management module determines the queue number according to its data type, and takes out an idle address through the free pointer and assigns it to the queue. After the data is sent, the occupied address will be released and returned to a free address.

[0027] Preferably, after the flag information of the cached data enters the queue cache management module, the queue dequeue will be controlled according to the current queue information and the information of the gating list, and the data to be sent will be selected; and the head data information of each queue will be recorded, and a strict priority method combined with a gating list will be used to ensure the transmission of the highest priority data; after the scheduling is completed, the data sharing cache module is accessed through the information of the head and tail addresses according to the information of the scheduled data to obtain complete data information.

[0028] Preferably, when the queue with the highest priority is not empty and satisfies the transmission condition, the scheduling result is to send the data with the highest priority.

[0029] Preferably, low priority data is scheduled to be sent, but the highest priority queue is not empty. When the sending time is not met, it is determined whether the sending of the low priority data can be completed at the highest priority sending time. If possible, the low priority data is sent. If it is met, the data is not sent.

[0030] Preferably, the low priority data is scheduled to be sent, but the highest priority queue is empty at this time. During the transmission of the low priority data, the data in the highest priority queue meets the sending conditions, and the sending of the current low priority data is directly suspended at this time.

[0031] Compared with the prior art, the present invention has the following beneficial technical effects:

[0032] The present invention provides a TSN multi-queue management system based on shared cache, which decouples the storage of all device data, the control of the queue of each port, and the interaction between the port and the stored data, so that the difficulty of data processing in the TSN device is reduced, and frequent data interaction processes are not required, thereby achieving the purpose of reducing the consumption of storage resources and the time of data scheduling. By adopting a structure that separates data storage and queue management, the cache pressure of each port is reduced, and at the same time, data storage and queue management are decoupled, the complexity of data interaction is reduced, and the cache pressure is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is a schematic diagram of the separation structure of storage and queue management;

[0034] Figure 2 Schematic diagram of shared cache management for queues;

[0035] Figure 3 This is a diagram of queue free pointer management;

[0036] Figure 4 It is a free pointer control state machine flow diagram;

[0037] Figure 5 Schedule state machine flow diagram for queue management. DETAILED DESCRIPTION

[0038] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.

[0039] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0040] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0041] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or a communication; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0042] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is lower in level than the second feature.

[0043] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0044] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0045] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0046] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0047] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0048] A TSN multi-queue management system based on shared cache in the present invention includes a data shared cache module and several queue cache management modules;

[0049] The data sharing cache module is used to cache all data; the data sharing cache module is interactively connected with several queue cache management modules; the data sharing cache module transmits the mark information of the cached data to the corresponding queue cache management module for queue management scheduling, and accesses the data sharing cache module to obtain complete data after the queue scheduling is completed;

[0050] When data information arrives at the queue, the queue buffer management module determines the queue number according to the data type, and takes out an idle address through a free pointer and allocates it to the queue. After the data is sent, the occupied address is released and returned to a free address.

[0051] The present invention adopts a structure that separates data storage and queue management. In TSN equipment, data is classified into data reception, data storage, and data transmission according to its behavior. The transmission of data will be scheduled and sent according to different queues required by the protocol. The present invention improves the structure of data storage and data transmission. First, all data of the entire device is stored in a large shared cache, and then the flag information of the data is passed to the corresponding port queue. The queue is dequeued and scheduled through the flag information. After waiting for the completion of the dequeuing scheduling of the data, it interacts with the shared cache that stores the data information to obtain complete data and complete the transmission.

[0052] Through such a structure, the cache pressure of each port is reduced, and at the same time, data storage and queue management are decoupled, which reduces the complexity of data interaction and reduces cache pressure.

[0053] The present invention also provides a queue control information storage management mechanism based on shared cache. After using the data storage and queue management separation structure of the present invention, the fixed-length flag information of the data received on each port is managed by a fixed-length shared cache. For queues 0-7, 8 initial addresses are reserved in the shared cache, and the head address of each queue and the address of the next data are recorded. In this way, a dynamic linked list management method of 8 queues is realized, and the information of all queues is updated each time the data is sent.

[0054] The management of the data address of each queue is implemented through free pointers. When data information arrives at the queue, the queue number is determined according to its data type, and an idle address is taken out through the free pointer and assigned to the queue. After the data is sent, the occupied address will be released and returned to a free address.

[0055] The present invention also provides a data queue control and interaction method. After the data flag information enters the queue management, the queue exit is controlled according to the current queue information and the information of the gate control list to select the data to be sent.

[0056] First, the head data information of each queue will be recorded, and the transmission of the highest priority data will be strictly guaranteed by combining the strict priority method with the gating list. There will be three situations here, and the present invention stipulates the scheduling principles.

[0057] 1. When the queue with the highest priority is not empty and meets the transmission conditions, the scheduling result is to send the data with the highest priority.

[0058] 2. Schedule the sending of low-priority data, but the highest priority queue is not empty. When the sending time is not met, it will be determined whether the sending of the low-priority data can be completed at the highest priority sending time. If it can, the low-priority data will be sent. If it meets the requirements, the data will not be sent.

[0059] 3. Schedule to send low-priority data, but the highest priority queue is empty at this time. During the transmission of low-priority data, the data in the highest priority queue meets the sending conditions. At this time, the sending of the current low-priority data will be directly suspended.

[0060] The above is the scheduling principle for queue dequeue. After the scheduling is completed, the data storage shared cache will be accessed through the information of the head and tail addresses according to the information of the scheduled data to obtain complete data information.

[0061] Example

[0062] For a structure that separates data storage from queue management, such as Figure 1 ,The data of each port of the TSN device is uniformly stored in the shared cache after pre-processing, and then the flag information of each data is transmitted to the corresponding port for queue management and scheduling. After the queue scheduling is completed, the shared cache is accessed to obtain complete data.

[0063] For the queue management method of each port, a shared cache with a fixed block size is used for management, such as Figure 2 Taking a RAM of 256_128b as an example, it means that a port can temporarily store up to 256 packets of data. The information of each data occupies 128b, including 70b of queue information, data type, size, filtering information, redundant information, etc., and 12b of address information, indicating the location of the next packet of data in the same queue in the queue storage RAM.

[0064] At the same time, the head data information of the 8 queues, the address of the second packet data of each queue, queue fullness and other information will also be maintained in real time to support the scheduling of queue data.

[0065] The address management of the shared cache is managed by free pointers, such as Figure 3, which is a schematic diagram of free pointer management, consists of two parts: the storage FIFO for storing free pointers, with a size of 256_12b, indicating that a maximum of 256 free pointers can be stored, corresponding to Figure 2 The queue in the memory stores the RAM size, and the storage content is the free RAM address. The release and return of the free pointer are controlled by the free pointer control state machine to perform read and write operations on the storage FIFO.

[0066] The allocation and recycling of free pointers are implemented using a state machine. The free pointer control state machine is as follows: Figure 4 , its control state consists of 4 states, namely:

[0067] S0: FREE_QUEUE_IDLE, idle state, waiting for the system reset to be effective and jump to the next state S1;

[0068] S1: FREE_QUEUE_WAIT, free pointer state machine waiting state. The main function of this state is to give the free pointer storage FIFO initialization time after the system is reset. After the configurable FIFO_RESET_DELAY time is reached, it enters the S2 state;

[0069] S2: FREE_QUEUE_INIT, free pointer initialization state, this state mainly completes the initialization of all free pointers, writes all idle free pointers into the free pointer storage FIFO, and enters the S3 state after the counter reaches 'hff;

[0070] S3:FREE_QUEUE_WORK, free pointer working state, in which two tasks are mainly completed:

[0071] Complete the release of the free pointer. Every time the port receives data information, it will determine the queue for storage based on its type, and at this time read the address from the free pointer storage FIFO.

[0072] After the data is sent, the address it occupies will be written back to the free pointer storage FIFO to complete the return of the free pointer.

[0073] The scheduling of queue stored data and the acquisition of complete data are realized through the queue management scheduling state machine, such as Figure 5 , its control state consists of 6 states, namely:

[0074] S0: TX_IDLE, idle state, the system is in this state after reset; jump to S1 or S2 state after detecting tx_req_o signal;

[0075] S1: TX_UN_BLK, non-blocking state, which means the highest priority queue is not empty. At this time, it is necessary to schedule the outbound data according to whether the highest priority data has reached the sending time point and whether the remaining priority data can be sent. In this state, when the tx_un_blk_val signal is sent, it jumps to S3 state;

[0076] S2: TX_BLK, transmit blocking state. In this state, the highest priority queue is empty. At this time, the data of queues 0-6 are scheduled according to the strict priority scheduling policy. After detecting the tx_blk_val_d signal, it jumps to the S3 state.

[0077] S3: TX_QUEUE, the state of the transmission queue. In this state, the transmission queue number scheduled in the S1 / S1 state is mainly completed. According to the queue management information, the first and last addresses of the queue head data stored in the data sharing cache are extracted, and then the data interaction with the data sharing cache is completed, and the complete data is sent according to the specified timing. In this state, when the tx_store_succ_i signal is detected, it means that the data transmission has been completed and enters the S4 state;

[0078] S4: TX_COMP, the transmit queue is complete. This state is used to generate the corresponding status signal. The next clock cycle jumps to the S5 state.

[0079] S5: TX_WAIT, the sending queue waiting state. This state is used to update the head information of all queues. After the update_finish_i signal is valid, it jumps to the S0 state.

[0080] According to the above scheme, the Verilog HDL language is used to perform a logical description of the structure and method, and logic synthesis and layout and routing are completed to implement a TSN switching device controller including the present invention, and a verification platform is built to perform data forwarding tests. The test results show that the present invention can complete the sending interaction of each queue type data as expected, has good feasibility, and the performance meets expectations.

[0081] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved.

[0082] In addition, it should be understood that although this specification is described in accordance with the implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other implementation modes that can be understood by those skilled in the art. The above content is only to illustrate the technical idea of ​​the present invention, and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution according to the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.

Claims

1. A TSN multi-queue management system based on shared cache, characterized in that: It includes a data sharing cache module and several queue cache management modules; The data sharing cache module is used to cache all data; the data sharing cache module is interactively connected with several queue cache management modules; the data sharing cache module transmits the mark information of the cached data to the corresponding queue cache management module for queue management scheduling, and accesses the data sharing cache module to obtain complete data after the queue scheduling is completed; When data information arrives at the queue, the queue buffer management module determines the queue number according to the data type, and takes out an idle address through a free pointer and allocates it to the queue. After completing the data transmission, the occupied address will be released and returned to a free address.

2. A TSN multi-queue management system based on shared cache according to claim 1, characterized in that: After receiving the flag information of the cached data, the queue cache management module adopts a fixed-length shared cache method for management.

3. A TSN multi-queue management system based on shared cache according to claim 1, characterized in that: After receiving the flag information of the cached data, the queue cache management module controls the queue dequeue according to the current queue information and the information of the gating list, and selects the data to be sent; and the head data information of each queue will be recorded, and the strict priority method combined with the gating list is used to ensure the transmission of the highest priority data; after completing the scheduling, according to the information of the scheduled data, the data sharing cache module is accessed through the information of the head and tail addresses to obtain complete data information.

4. A TSN multi-queue management system based on shared cache according to claim 1, characterized in that: The free pointer control states in the queue buffer management module are: The idle state S0 is used to wait for the system reset to be effective before jumping into the free pointer state machine waiting state S1; The free pointer state machine waiting state S1 is used to give the free pointer storage FIFO the initialization time after the system is reset. After the configurable FIFO_RESET_DELAY time is reached, the free pointer initialization state S2 is entered; The free pointer initialization state S2 is used to complete the initialization of all free pointers, write all idle free pointers into the free pointer storage FIFO, and enter the free pointer working state S3 after the counter reaches 'hff; The free pointer working state S3 is used to complete the release of the free pointer. Every time the port receives data information, the storage queue will be determined according to the data type. At this time, the address will be read from the free pointer storage FIFO; after the data is sent, the address occupied by the data will be written back to the free pointer storage FIFO to complete the return of the free pointer.

5. A TSN multi-queue management system based on shared cache according to claim 1, characterized in that: The queue management scheduling control states in the queue buffer management module are: Idle state S0, after the system is reset, it is in idle state S0; after detecting the tx_req_o signal, it jumps to the sending non-blocking state S1 or the sending blocking state S2; Send non-blocking state S1, in which the current highest priority queue is not empty. At this time, it is necessary to determine whether the remaining priority data can be sent based on whether the current highest priority data has reached the sending time point, so as to schedule the dequeued data; in this state, when the tx_un_blk_val signal is sent, it jumps to the sending queue state S3; Send blocking state S2, in which the highest priority queue is empty. At this time, data is scheduled for queues 0-6 according to the strict priority scheduling policy, and after detecting the tx_blk_val_d signal, it jumps to the send queue state S3; Send queue state S3, in this state, the sending queue number scheduled in the sending non-blocking state S1 / sending blocking state S2 is mainly completed, and the head and tail addresses of the queue head data stored in the data sharing cache are extracted according to the queue management information, and then the data interaction with the data sharing cache is completed, and the complete data is sent according to the specified timing; in this state, when the tx_store_succ_i signal is detected, it means that the data transmission has been completed, and the sending queue complete state S4 is entered; The sending queue complete state S4 is used to generate the corresponding state signal, and the next clock cycle jumps to the sending queue waiting state S5; The sending queue wait state S5 is used to update the head information of all queues. After the update_finish_i signal is valid, it jumps to the idle state S0.

6. A TSN multi-queue management method based on shared cache, characterized in that: A TSN multi-queue management system based on shared cache according to any one of claims 1 to 5, comprising: Store all data in the data sharing cache module; The data sharing cache module passes the flag information of the cached data to the corresponding queue cache management module, performs queue dequeue scheduling based on the flag information, waits for the dequeue scheduling of the data to be completed, and then interacts with the shared cache storing the data information to obtain the complete data and complete the sending; When data information arrives at the queue, the queue cache management module determines the queue number according to its data type, and takes out an idle address through the free pointer and assigns it to the queue. After the data is sent, the occupied address will be released and returned to a free address.

7. A TSN multi-queue management method based on shared cache according to claim 6, characterized in that: After the flag information of the cached data enters the queue cache management module, the queue dequeue will be controlled according to the current queue information and the information of the gating list, and the data to be sent will be selected; and the head data information of each queue will be recorded, and the strict priority method combined with the gating list will be used to ensure the transmission of the highest priority data; after the scheduling is completed, according to the information of the scheduled data, the data sharing cache module is accessed through the information of the head and tail addresses to obtain complete data information.

8. A TSN multi-queue management method based on shared cache according to claim 7, characterized in that: When the queue with the highest priority is not empty and meets the transmission conditions, the scheduling result is to send the data with the highest priority.

9. A TSN multi-queue management method based on shared cache according to claim 7, characterized in that: When scheduling to send low-priority data but the highest priority queue is not empty and the sending time is not met, it will be determined whether the low-priority data can be sent at the highest priority sending time. If so, the low-priority data will be sent. If not, the data will not be sent.

10. A TSN multi-queue management method based on shared cache according to claim 7, characterized in that: The low priority data is scheduled to be sent, but the highest priority queue is empty at this time. During the transmission of low priority data, the data in the highest priority queue meets the sending conditions. At this time, the sending of the current low priority data will be directly suspended.

Citation Information

Cited By

  • On-chip cache sharing method and switching chip

    CN119342014A

  • Data caching architecture

    CN122470525A