Method for improving time sequence performance, medium, device and computer program product
Patent Information
- Application Number
- CN202410757067.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-23
Smart Images

Figure CN118536444A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and in particular to a method, medium, device and computer program product for improving the timing performance of FPGA software after adopting TMR technology by splitting a counter. Background Art
[0002] When designing FPGA software, triple modular redundancy (TMR) technology is used to improve reliability. TMR technology copies one register into three copies, and performs a three-out-of-two operation on the output signals of the three registers to obtain the final output result. If one of the registers is affected by some influence and causes an output signal error, the final output result after three-out-of-two operation is still correct. This technology can greatly reduce the impact of certain influences on FPGA software, thereby improving the reliability of FPGA software.
[0003] A typical TMR technology is Figure 1 , Figure 2 As shown. The use of TMR technology can improve the reliability of FPGA software, but the use of resources such as registers and combinational logic increases by about 3 times. In FPGA software, for the same logical function, the use of TMR technology will increase the number of registers and combinational logic used. The more registers and combinational logic between the input signal and the output signal, the longer the delay of signal transmission will be, which will have an adverse effect on the timing performance of FPGA software, especially large-bit width counters often become the bottleneck of timing performance, which may eventually lead to timing performance that cannot meet requirements. At present, in the face of this problem, methods such as reducing the use of TMR functional logic, using simplified TMR technology, or reducing timing requirements are often used, but these methods have an adverse effect on the effect of TMR. Summary of the invention
[0004] In view of the above-mentioned problems, the present invention provides a method, medium, device and computer program product for improving timing performance, so as to improve the timing performance of FPGA software, so that the timing performance of FPGA software after adopting TMR technology can meet the usage requirements.
[0005] The present invention provides a method for improving timing performance, comprising:
[0006] The timing performance of FPGA software is improved by splitting a large bit-width counter into multiple levels of small bit-width counters, so that the timing performance of FPGA software after adopting TMR technology can meet the usage requirements.
[0007] Furthermore, a large bit width counter with a bit width of a is split into n levels of small bit width counters, the bit widths of each level of small bit width counters are b1...bn respectively, and carry flags j1...jn-1 are used between each level of small bit width counters to transmit carry information; the relationship between the bit widths after splitting is: b1+b2+...bn=a.
[0008] Furthermore, after the large bit width counter is split, the periods of the small bit width counters at each level need to be controlled.
[0009] Furthermore, a set flag is designed to control the cycle of each level of small bit width counter:
[0010] When the value of the small bit width counter is the required number of cycles minus 1, a set flag is generated. When the set flag is valid, the small bit width counters and carry flags of each level are set to the initial value, and then counting starts again.
[0011] The present invention also provides a computer terminal storage medium storing computer terminal executable instructions, wherein the computer terminal executable instructions are used to execute the above-mentioned method for improving timing performance.
[0012] The present invention also provides a computing device, comprising:
[0013] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned method for improving timing performance.
[0014] The present invention also provides a computer program product, which implements the above-mentioned method for improving timing performance when the computer program is executed by a processor.
[0015] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0016] The present invention is mainly applied to the application scenario where FPGA software adopts TMR design. Through the present invention, the timing performance of FPGA software after adopting TMR design can be improved to meet the timing performance requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0018] Figure 1This is a schematic diagram of the circuit before TMR in a typical TMR technology.
[0019] Figure 2 This is a schematic diagram of the circuit after TMR in a typical TMR technology.
[0020] Figure 3 A schematic diagram of a method for improving timing performance in an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0022] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] Example
[0024] like Figure 3 As shown, this embodiment proposes a method for improving timing performance, including:
[0025] 1. Split large bit width counter:
[0026] After adopting TMR technology, the same logic function in FPGA software uses more registers and combinational logic, and the timing performance deteriorates, and may even fail to meet the clock frequency requirements. Among them, the large bit width counter is often the bottleneck of timing performance.
[0027] The large bit width counter with a bit width is split into n levels of small bit width counters (bit widths are b1...bn), and the carry flags j1...jn-1 are used between the small bit width counters to transmit carry information. The bit width relationship after splitting is: b1+b2+...bn=a.
[0028] Each level of small bit width counter counts independently, and when it counts to the set value, it generates a carry flag corresponding to one clock cycle, where the lowest level counts directly according to the clock, and the rest count according to the carry flag. At this time, the counting logic of each level of small bit width counter only involves: small bit width counter, lower level carry flag (if any), carry flag (if any), and the bit width a is reduced to bx+1 (lowest and highest level counters) or bx+2 (middle level counter).
[0029] 2. Design the set flag to control the counter cycle:
[0030] After splitting the large bit width counter, it is necessary to control the cycle of each level of small bit width counter. This is achieved by designing a set flag. The specific method is: when the value of the small bit width counter is the required number of cycles minus 1, a set flag is generated. When the set flag is valid, the small bit width counters and carry flags of each level are set to the initial value, and then the counting starts again.
[0031] Finally, the counting logic of each level of small bit width counter only involves: small bit width counter, lower level carry flag (if any), carry flag (if any), and set flag, which is reduced from bit width a to bx+2 (lowest and highest level counter) or bx+3 (intermediate level counter). The original large counting logic is split into multiple small counting logics, and the registers and combinational logic used by each counting logic function are reduced compared to before the split, which can improve the timing performance of FPGA software, especially after the use of TMR technology. At the same time, since the set flag is only 1 bit, the logic is simple and will not become a bottleneck for the timing performance of FPGA software. It should be noted that the count value is no longer a simple increment by 1.
[0032] Example:
[0033] In a certain scenario, the FPGA software needs to use a clock with a frequency of 12*MHz to generate a pulse signal with a period of 1s. The counter bit width before using this method is 27bit. After TMR design, the timing performance of the FPGA software cannot meet the 12*MHz clock requirement. The method of the present invention is used to split the counter into 4 levels: "3 7-bit bit width and 1 6-bit bit width counters", plus 3 carry flags and 1 set flag, and the timing performance after TMR can finally meet the 12*MHz requirement.
[0034] In addition, in some embodiments, a computer terminal storage medium is provided, which stores computer terminal executable instructions, and the computer terminal executable instructions are used to execute the method for improving timing performance as described in the above embodiments. Examples of computer storage media include magnetic storage media (e.g., floppy disks, hard disks, etc.), optical recording media (e.g., CD-ROMs, DVDs, etc.), or memories, such as memory cards, ROMs, or RAMs. Computer storage media can also be distributed on network-connected computer systems, such as application stores.
[0035] In addition, in some embodiments, a computing device is provided, comprising: at least one processor; and a memory in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method for improving timing performance as described in the above embodiments. Examples of computing devices include PCs, tablet computers, smart phones, or PDAs.
[0036] In addition, in some embodiments, a computer program product is provided, and when the computer program is executed by a processor, the method for improving timing performance is implemented.
[0037] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for improving timing performance, characterized in that: include: The timing performance of FPGA software is improved by splitting a large bit-width counter into multiple levels of small bit-width counters, so that the timing performance of FPGA software after adopting TMR technology can meet the usage requirements.
2. The method for improving timing performance according to claim 1, characterized in that: A large bit width counter with a bit width of a is split into n levels of small bit width counters, the bit widths of each level of small bit width counters are b1...bn respectively, and carry flags j1...jn-1 are used between each level of small bit width counters to transmit carry information; the relationship of the bit widths after splitting is: b1+b2+...bn=a.
3. The method for improving timing performance according to claim 1, characterized in that: include: After the large bit width counter is split, it is necessary to control the cycle of each level of small bit width counter.
4. The method for improving timing performance according to claim 3, characterized in that: A set flag is designed to control the cycle of each level of small bit width counter.
5. The method for improving timing performance according to claim 4, characterized in that: The method of controlling the cycle of each level of small bit width counter by designing a set flag is as follows: When the value of the small bit width counter is the required number of cycles minus 1, a set flag is generated. When the set flag is valid, the small bit width counters and carry flags of each level are set to the initial value, and then counting starts again.
6. A computer terminal storage medium storing computer terminal executable instructions, characterized in that: The computer terminal executable instructions are used to execute the method for improving timing performance as described in any one of claims 1-5.
7. A computing device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for improving timing performance as described in any one of claims 1-5.
8. A computer program product, characterized in that When the computer program is executed by a processor, the method for improving timing performance described in any one of claims 1 to 5 is implemented.
Citation Information
Cited By
Time sequence counter control method and circuit, electronic equipment and storage medium
CN120766733A
