Scheduling method for realizing TTE time triggering based on FPGA
The TTE time-triggered scheduling method is implemented through FPGA, which solves the uncertainty and delay problems of traditional CPUs when processing TT messages in TTE, realizes the accurate sending and delay determination of TT messages, and satisfies the deterministic and analyzable nature of TT messages. and measurable characteristics.
Patent Information
- Application Number
- CN202410915434.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for traditional CPUs to accurately complete the sending of TT messages in Time Triggered Ethernet (TTE). The processing time is uncertain, the delay cannot be fixed, and it cannot meet the deterministic, analyzable and measurable characteristics of TT messages.
Use FPGA to implement the TTE time-triggered scheduling method. By generating scheduling parameter tables and schedules, running the scheduling entry point and sub-scheduling module, accurately control the sending time and delay of TT messages, and use DIV and Active Schedule parameters to determine the integration period and matrix period. Ensure the certainty and measurability of TT messages.
It realizes the accurate sending and delay determination of TT messages in TTE, solves the uncertainty and delay problems of traditional CPU processors when processing TT messages, and meets the deterministic, analyzable and measurable characteristics of TT messages.
Smart Images

Figure CN118740756A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network transmission technology, and in particular to a scheduling method for implementing TTE time triggering based on FPGA. Background Art
[0002] With the rapid development of aerospace, industry, and automobile fields, Time Triggered Ethernet (TTE) is used in more and more scenarios. However, since TTE has extremely strict requirements on time processing, the time characteristics of time trigger (TT message) are all certain, analyzable, and measurable. The traditional CPU cannot accurately complete the sending of TT messages. FPGA (field programmable gate array) is sensitive to clock response and has a high degree of programmability, which can better complete precise time control. For this reason, the present invention provides a solution for implementing time-triggered Ethernet TT messages based on FPGA. Summary of the invention
[0003] In view of the above defects or deficiencies in the prior art, it is desired to provide a scheduling method for implementing TTE time triggering based on FPGA, which can determine the processing time and fixed delay of TT messages in TTE, and can accurately meet the deterministic, analyzable and measurable characteristics of TT messages.
[0004] The present invention provides a scheduling method for implementing TTE time triggering based on FPGA, comprising the following steps: Generate a scheduling parameter table and a scheduling table according to the information required for scheduling in the TT message, the scheduling table includes a scheduling entry point table and a sub-scheduling table; FPGA runs the scheduling entry point module and the sub-scheduling module according to the scheduling parameter table and the scheduling table; The sub-scheduling of the TT message is completed through the scheduling entry point module; the FPGA reads the scheduling parameter table to obtain the DIV and Active Schedule parameters; the FPGA obtains the number of integrated cycles in the row cycle according to the DIV and confirms the scheduling entry point; the FPGA reads the data of the scheduling entry point table according to the scheduling entry point, obtains the start time of this sub-scheduling and the starting position of the sub-scheduling item of this sub-scheduling, and sends a signal to the sub-scheduling module to start the sub-scheduling item; after the sub-scheduling is completed, wait for the next sub-scheduling, and repeat the cycle until the sub-scheduling reaches the Active Schedule or the row scheduling ends; In the sub-scheduling module, FPGA reads the delta time and VL index in the sub-scheduling table to process the interval between sub-scheduling items, and reads the TT message corresponding to the VL index; waits for the delta time to end, starts the next sub-scheduling item, and continues until the sub-scheduling item reaches the end position of the sub-scheduling item. After the sub-scheduling item reaches the End of Sub Schedule Table, it determines whether the scheduling row or matrix cycle has ended. If not, it continues to schedule from the initial position of the sub-scheduling item, and repeats the cycle until the scheduling row or matrix cycle ends.
[0005] Furthermore, there are 8 sub-scheduling modules in total, and they do not affect each other.
[0006] Furthermore, the AS6802 module is used to perform time calibration and synchronization on the TTE, calibrate the integration period of the TT message in real time, and update the count of the integration period in real time.
[0007] Furthermore, during the TT message scheduling, one or more integration periods constitute a scheduling row, and one or more scheduling rows constitute a matrix period.
[0008] Furthermore, when the DIV is equal to n, the cycle time of each row of the matrix cycle = 2^n integration cycles; if the last row does not meet 2^n integration cycles, this row ends after the matrix cycle ends.
[0009] Further, when the TT message is scheduled in the matrix period, the beginning of each row is the scheduling entry point of the row; The TT message controls the start time of the sub-scheduling through the delta time in the scheduling of each row. The end time of the sub-scheduling is the end of each row or the end of the matrix cycle. The number of sub-scheduling in each row is set by parameters. In the sub-scheduling of the TT message, each sub-scheduling has several sub-scheduling items; during scheduling, the start and end positions of the sub-scheduling items are confirmed, and the sub-scheduling items are cyclically scheduled in the sub-scheduling; in each sub-scheduling item, there are the end time of the sub-scheduling item and the scheduled VL index; through the above scheduling, the sending of the TT message corresponding to the VL index is completed; the above row periodic scheduling process is repeated until the matrix cycle time ends.
[0010] Compared with the prior art, the beneficial effects of the present invention are: The present invention proposes a scheduling solution for implementing TTE time triggering based on FPGA, which is used to complete the accurate sending and delay determination of TT messages in TTE, and solves the problems of uncertain processing time and unfixed delay when using traditional CPU and other processors to process TT messages. The present application can determine the processing time and fixed delay of TT messages in TTE, and can accurately meet the deterministic, analyzable and measurable characteristics of TT messages. It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings: Figure 1 The processing structure diagram of FPGA scheduling TT messages; Figure 2 It is a schematic diagram of the matrix cycle; Figure 3 It is a schematic diagram of a matrix cycle composed of 254 integrated cycles when DIV is equal to 0; Figure 4 It is a schematic diagram of a matrix cycle consisting of 254 integrated cycles when DIV is equal to 1; Figure 5 Schematic diagram of the matrix cycle consisting of 254 integrated cycles when DIV is equal to 2. DETAILED DESCRIPTION
[0012] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0013] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0014] Please refer to Figure 1~Figure 5 The embodiment of the present invention provides a scheduling method for implementing TTE time triggering based on FPGA, comprising the following steps: Generate a scheduling parameter table and a scheduling table according to the information required for scheduling in the TT message, the scheduling table includes a scheduling entry point table and a sub-scheduling table; FPGA runs the scheduling entry point module and the sub-scheduling module according to the scheduling parameter table and the scheduling table; The sub-scheduling of the TT message is completed through the scheduling entry point module; the FPGA reads the scheduling parameter table to obtain the DIV and Active Schedule parameters; the FPGA obtains the number of integrated cycles in the row cycle according to the DIV and confirms the scheduling entry point; the FPGA reads the data of the scheduling entry point table according to the scheduling entry point, obtains the start time of this sub-scheduling and the starting position of the sub-scheduling item of this sub-scheduling, and sends a signal to the sub-scheduling module to start the sub-scheduling item; after the sub-scheduling is completed, wait for the next sub-scheduling, and repeat the cycle until the sub-scheduling reaches the Active Schedule or the row scheduling ends; In the sub-scheduling module, FPGA reads the delta time and VL index in the sub-scheduling table to process the interval between sub-scheduling items, and reads the TT message corresponding to the VL index; waits for the delta time to end, starts the next sub-scheduling item, and continues until the sub-scheduling item reaches the end position of the sub-scheduling item. After the sub-scheduling item reaches the End of Sub Schedule Table, it determines whether the scheduling row or matrix cycle has ended. If not, it continues to schedule from the initial position of the sub-scheduling item, and repeats the cycle until the scheduling row or matrix cycle ends.
[0015] In this embodiment, descriptions of the scheduling parameter table, the scheduling entry point table, and the sub-scheduling table are shown in Tables 1 to 3;
[0016]
[0017]
[0018]
[0019] The present application proposes a scheduling solution for implementing TTE time triggering based on FPGA, which is used to complete the accurate sending and delay determination of TT messages in TTE, and solves the problems of uncertain processing time and unfixed delay when processing TT messages using traditional CPU and other processors. The present application can determine the processing time and fixed delay of TT messages in TTE, and can accurately meet the deterministic, analyzable and measurable characteristics of TT messages.
[0020] In a preferred embodiment, if Figure 1 As shown, there are 8 sub-scheduling modules in total, and they do not affect each other.
[0021] In a preferred embodiment, the AS6802 module is used to perform time calibration and synchronization on the TTE, calibrate the integration period of the TT message in real time, and update the count of the integration period in real time.
[0022] In a preferred embodiment, during TT message scheduling, one or more integration cycles form a scheduling row, and one or more scheduling rows form a matrix cycle.
[0023] In a preferred embodiment, if Figure 2~Figure 4 As shown, when DIV is equal to n, the cycle time of each row of the matrix cycle = 2^n integration cycles; if the last row does not meet 2^n integration cycles, this row ends after the matrix cycle ends.
[0024] In this embodiment, taking a matrix cycle composed of 254 integrated cycles as an example, when DIV=0, the basic matrix cycle composition of TT message scheduling is as follows: Figure 2 As shown, each row cycle time of the matrix cycle = 2^0 integration cycles; when DIV=1, the basic matrix cycle composition of TT message scheduling is as follows Figure 3 As shown, each row cycle time of the matrix cycle = 2^1 integration cycles; when DIV=2, the basic matrix cycle composition of TT message scheduling is as follows Figure 4 As shown, the cycle time of each row of the matrix cycle = 2^2 integration cycles. The last row does not meet 2^2 integration cycles. After the matrix cycle ends, this row ends.
[0025] In a preferred embodiment, if Figure 5 As shown, when scheduling TT messages in a matrix cycle, the beginning of each row is the scheduling entry point of the row; In the scheduling of each row, the TT message controls the start time of the sub-scheduling through the delta time. The end time of the sub-scheduling is the end of each row or the end of the matrix cycle. The number of sub-scheduling in each row is set by parameters; In the sub-scheduling of TT message, each sub-scheduling has several sub-scheduling items; during scheduling, the start and end positions of the sub-scheduling items are confirmed, and the sub-scheduling items are cyclically scheduled in the sub-scheduling; in each sub-scheduling item, there is the end time of the sub-scheduling item and the scheduled VL index; through the above scheduling, the sending of the TT message corresponding to the VL index is completed; the above row cycle scheduling process is repeated until the matrix cycle time ends. The processing time and fixed delay of the TT message in TTE are accurately determined, and the deterministic, analyzable and measurable characteristics of the TT message are met.
[0026] In the description of this specification, the description of the terms "one embodiment", "some embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0027] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A scheduling method for implementing TTE time triggering based on FPGA, characterized in that: The steps include: Generate a scheduling parameter table and a scheduling table according to the information required for scheduling in the TT message, the scheduling table includes a scheduling entry point table and a sub-scheduling table; FPGA runs the scheduling entry point module and the sub-scheduling module according to the scheduling parameter table and the scheduling table; The sub-scheduling of the TT message is completed through the scheduling entry point module; the FPGA reads the scheduling parameter table to obtain the DIV and ActiveSchedule parameters; the FPGA obtains the number of integrated cycles in the row cycle according to the DIV and confirms the scheduling entry point; the FPGA reads the data of the scheduling entry point table according to the scheduling entry point, obtains the start time of this sub-scheduling and the starting position of the sub-scheduling item of this sub-scheduling, and sends a signal to the sub-scheduling module to start the sub-scheduling item; after the sub-scheduling is completed, wait for the next sub-scheduling, and repeat the cycle until the sub-scheduling reaches the Active Schedule or the row scheduling ends; In the sub-scheduling module, FPGA reads the delta time and VL index in the sub-scheduling table to process the interval between sub-scheduling items, and reads the TT message corresponding to the VL index; waits for the delta time to end, starts the next sub-scheduling item, and continues until the sub-scheduling item reaches the end position of the sub-scheduling item. After the sub-scheduling item reaches the End of Sub Schedule Table, it determines whether the scheduling row or matrix cycle has ended. If not, it continues to schedule from the initial position of the sub-scheduling item, and repeats the cycle until the scheduling row or matrix cycle ends.
2. The scheduling method for implementing TTE time triggering based on FPGA according to claim 1, characterized in that: There are 8 sub-scheduling modules in total, and they do not affect each other.
3. The scheduling method for implementing TTE time triggering based on FPGA according to claim 1, characterized in that: The AS6802 module is used to calibrate and synchronize the TTE, calibrate the integration period of the TT message in real time, and update the count of the integration period in real time.
4. The scheduling method for implementing TTE time triggering based on FPGA according to claim 1, characterized in that: In the TT message scheduling, one or more integration cycles constitute a scheduling row, and one or more scheduling rows constitute a matrix cycle.
5. The scheduling method for implementing TTE time triggering based on FPGA according to claim 1, characterized in that: When the DIV is equal to n, the cycle time of each row of the matrix cycle = 2^n integration cycles; if the last row does not meet 2^n integration cycles, this row ends after the matrix cycle ends.
6. The scheduling method for implementing TTE time triggering based on FPGA according to claim 1, characterized in that: When scheduling TT messages in the matrix cycle, the beginning of each row is the scheduling entry point of the row; The TT message controls the start time of the sub-scheduling through the delta time in the scheduling of each row. The end time of the sub-scheduling is the end of each row or the end of the matrix cycle. The number of sub-scheduling in each row is set by parameters. In the sub-scheduling of the TT message, each sub-scheduling has several sub-scheduling items; during scheduling, the start and end positions of the sub-scheduling items are confirmed, and the sub-scheduling items are cyclically scheduled in the sub-scheduling; in each sub-scheduling item, there are the end time of the sub-scheduling item and the scheduled VL index; through the above scheduling, the sending of the TT message corresponding to the VL index is completed; the above row periodic scheduling process is repeated until the matrix cycle time ends.
Citation Information
Patent Citations
Time-triggered unified network transmission end system scheduling method and device
CN109600187A
Two-stage time-triggered service scheduling method and system based on deterministic network
CN114513556A
Time-triggered Ethernet switch TT service switching device
CN115378887A
Method for generating TT service scheduling configuration
CN117692393A
Methods, systems, and apparatuses for priority-based time partitioning in time-triggered ethernet networks
US20220200919A1
