Method and system for establishing control signal chain

By optimizing the timing margin calculation according to the signal transmission direction in the control signal chain establishment method, the problem of insufficient timing consideration in the prior art is solved, the timing accuracy is improved, the occurrence of violations is reduced, and the cost of re-wiring is saved.

CN119087848APending Publication Date: 2024-12-06SHENZHEN PANGO MICROSYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411096396.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing technology lacks timing considerations in the process of establishing control signal chains, which leads to the control signal chains that may be too long, timing violations occur, and cannot be repaired through subsequent optimization and re-wiring, which is time-consuming and cost-effective.

Method used

In the control signal chain establishment method, the timing margin of each logic processing unit is determined in sequence according to the signal transmission direction, and combined with chain length changes, circuit connection changes and internal delays, the timing margin calculation is optimized to ensure timing accuracy and reduce the Violations occur.

Benefits of technology

The accuracy of timing margin calculation of control signal chains is improved, the occurrence of violations is reduced, the resources for rewiring are saved, and the efficiency of the establishment process is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119087848A_ABST
    Figure CN119087848A_ABST
Patent Text Reader

Abstract

The invention provides a method and a system for establishing a control signal chain. The method comprises the following steps of: determining the stage number of each logic processing unit; according to the transmission direction of the control signal, sequentially determining a time sequence margin after link establishment of the 0th-level logic processing unit to the Nth-level logic processing unit, N being determined by the number of the logic processing units; and for the ith-level logic processing unit, according to the delay change caused by the chain length change of the control signal chain, the circuit connection change of the control signal caused by the chain establishment and the internal delay of the ith-level logic processing unit, determining the time sequence margin of the ith-level logic processing unit after the chain establishment. The embodiment of the invention is mainly based on time sequence driving, the time sequence influence is fully considered when the control signal chain is established, and the control signal chain is established under the condition of no violation by accurately calculating the time sequence margin of the control signal chain. Wiring resources are saved as much as possible, and occurrence of time sequence violation is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a method and system for establishing a control signal chain. Background Art

[0002] Control signal chain is a common concept in the fields of electronic systems, communication systems and automatic control. It refers to a chain formed by a series of interrelated control signals that are transmitted in sequence. These control signals are usually used to coordinate and manage the operation of various components or modules in the system. For example, in an integrated circuit, the control signal chain may include clock signals, enable signals, reset signals, etc. The clock signal is used to synchronize the operation rhythm of various components; the enable signal determines whether a module is in working state; and the reset signal initializes the system or module to a known initial state.

[0003] In the prior art, during the process of establishing a control signal chain, there is a lack of consideration for timing or insufficient consideration of the impact of timing, which may result in the control signal chain being too long and then causing timing violations. Moreover, once a timing violation occurs, it usually cannot be repaired through subsequent optimization and can only be re-wired, consuming a lot of time and cost. Summary of the invention

[0004] The present invention provides a method and system for establishing a control signal chain, the main purpose of which is to optimize the process of establishing the control signal chain, thereby effectively improving the accuracy of timing margin calculation and reducing the probability of control signal chain violation.

[0005] In a first aspect, an embodiment of the present invention provides a method for establishing a control signal chain, based on a signal source unit and at least one logic processing unit, wherein the signal source unit is used to provide an input signal to each logic processing unit, and each logic processing unit is connected in sequence according to the transmission direction of the control signal, and the establishment method includes:

[0006] Determining the number of levels of each logical processing unit;

[0007] According to the transmission direction of the control signal, sequentially determine the timing margin after the 0th level logic processing unit to the Nth level logic processing unit establish a chain, where N is determined by the number of the logic processing units and is a positive integer;

[0008] Among them, for the i-th level logic processing unit, the timing margin of the i-th level logic processing unit after chain establishment is determined according to the delay change caused by the change in the chain length of the control signal chain, the circuit connection change of the control signal caused by chain establishment, and the delay inside the i-th level logic processing unit, where i is an integer, 0≤i≤N.

[0009] Further, determining the timing margin of the i-th level logic processing unit after the chain is established according to the delay change caused by the change in the chain length of the control signal chain, the circuit connection change of the control signal caused by the chain establishment, and the delay inside the i-th level logic processing unit includes:

[0010] Determine the initial value of the timing margin of the i-th level logic processing unit according to the timing margin before and after the control signal chain is established;

[0011] In combination with the influence of the chain length change on the circuit connection of the control signal, the initial value of the timing margin is optimized to determine the intermediate value of the timing margin of the i-th level logic processing unit;

[0012] In combination with the internal delay of the i-th level logic processing unit, the intermediate value of the timing margin is optimized again to determine the timing margin of the i-th level logic processing unit.

[0013] Further, after optimizing the intermediate value of the timing margin again in combination with the delay inside the i-th level logic processing unit to determine the timing margin of the i-th level logic processing unit, the method further includes:

[0014] In combination with the difference of the 0th-level logic processing unit, the timing margin of the i-th-level logic processing unit is adjusted, and the adjusted timing margin is used as the timing margin of the i-th-level logic processing unit again.

[0015] Furthermore, the intermediate value of the timing margin is optimized again in combination with the internal delay of the i-th level logic processing unit to determine the timing margin of the i-th level logic processing unit. The calculation formula is as follows:

[0016] slack new (i) = slack old (i)+T setup +T ac (i)-(i-1)T chain -T c ' hain -T s ' etup ;

[0017] Among them, Slack new (i) represents the timing margin after the i-th level logic processing unit is chained, slack old (i) represents the timing margin of the i-th level logic processing unit before link establishment, T setup It represents the establishment time of the internal control signal of the i-th level logic processing unit before link establishment, T ac (i) represents the arrival time of the control signal in the i-th level logic processing unit before link establishment, T chain It represents the delay time of the internal control signal of the i-th level logic processing unit before link establishment, T c' hain It represents the delay time of the internal control signal of the i-th level logic processing unit after link establishment, T s ' etup Indicates the establishment time of the internal clock signal of the i-th level logic processing unit after the link is established.

[0018] Further, determining the timing margin of the i-th level logic processing unit after the chain is established according to the delay change caused by the change in the chain length of the control signal chain, the circuit connection change of the control signal caused by the chain establishment, and the delay inside the i-th level logic processing unit includes:

[0019] The timing margin of the i-th level logic processing unit after link establishment is determined according to the timing margin of the i-th level logic processing unit before link establishment, the establishment time of the internal control signal of the i-th level logic processing unit before link establishment, the arrival time of the control signal in the i-th level logic processing unit before link establishment, the arrival time of the control signal in the 0-th level logic processing unit, the delay time of the internal control signal of the i-th level logic processing unit before link establishment, the delay time of the internal control signal of the i-th level logic processing unit after link establishment, and the establishment time of the internal clock signal of the i-th level logic processing unit after link establishment.

[0020] Furthermore, according to the delay change caused by the change in the length of the control signal chain, the circuit connection change of the control signal caused by the chain establishment, and the delay inside the i-th level logic processing unit, the timing margin after the i-th level logic processing unit is established is determined, and the calculation formula is as follows:

[0021] slack new (i) = slack old (i)+T setup +T ac (i)-T ab -(i-1)T chain -T′ chain -T′ setup ;

[0022] Among them, Slack new (i) represents the timing margin after the i-th level logic processing unit is chained, slack old (i) represents the timing margin of the i-th level logic processing unit before link establishment, T setup It represents the establishment time of the internal control signal of the i-th level logic processing unit before link establishment, T ac (i) represents the arrival time of the control signal in the i-th level logic processing unit before link establishment, T ab represents the arrival time of the control signal in the 0th level logic processing unit, T chain It represents the delay time of the internal control signal of the i-th level logic processing unit before link establishment, T c ' hainIt represents the delay time of the internal control signal of the i-th level logic processing unit after link establishment, T s ' etup Indicates the establishment time of the internal clock signal of the i-th level logic processing unit after the link is established.

[0023] Furthermore, the timing margin of the i-th level logic processing unit before link establishment is calculated by the following formula:

[0024] slack old (i) = T re (i)-T ac (i);

[0025] Among them, T re (i) represents the theoretical time for the control signal to reach the i-th level logic processing unit, T ac (i) represents the actual time when the control signal reaches the i-th level logic processing unit.

[0026] In a second aspect, an embodiment of the present invention provides a system for establishing a control signal chain, based on a signal source unit and at least one logic processing unit, wherein the signal source unit is used to provide an input signal to each logic processing unit, and each logic processing unit is connected in sequence according to the transmission direction of the control signal, and the establishment system includes:

[0027] A level module, used to determine the level of each logical processing unit;

[0028] An establishment module, used to determine the timing margin after the chain is established from the 0th level logic processing unit to the Nth level logic processing unit in sequence according to the transmission direction of the control signal, where N is determined by the number of the logic processing units and is a positive integer;

[0029] Among them, for the i-th level logic processing unit, the timing margin of the i-th level logic processing unit after chain establishment is determined according to the delay change caused by the change in the chain length of the control signal chain, the circuit connection change of the control signal caused by chain establishment, and the delay inside the i-th level logic processing unit, where i is an integer, 0≤i≤N.

[0030] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for establishing a control signal chain when executing the computer program.

[0031] In a fourth aspect, an embodiment of the present invention provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for establishing a control signal chain are implemented.

[0032] The embodiment of the present invention proposes a method and system for establishing a control signal chain. When establishing a control signal chain, according to the transmission direction of the control signal, the timing margin of the 0th level logic processing unit is first determined, and then the timing margin of each subsequent level of logic processing unit is determined in turn. Since the timing margin is calculated in accordance with the transmission direction of the control signal, the timing margin can be calculated according to the real-time input signal of each logic processing unit, thereby improving the calculation accuracy of the timing margin; in addition, the embodiment of the present invention also takes into account the influence of the control signal chain before and after the establishment on the connection relationship of the internal components of the logic processing unit. The logic processing units before and after the chain is established are considered in the timing margin calculation, further improving the calculation accuracy of the timing margin. The embodiment of the present invention is mainly based on timing drive. When establishing a control signal chain, the timing influence is fully considered. By accurately calculating the timing margin of the control signal chain, it is ensured that the control signal chain is established without violations, thereby improving the calculation accuracy of the timing margin, reducing the occurrence of violations, thereby reducing rewiring after violations, and saving wiring resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flow chart of a method for establishing a control signal chain is provided for an embodiment of the present invention;

[0034] Figure 2 A hardware structure block diagram of a method for establishing a control signal chain provided by an embodiment of the present invention;

[0035] Figure 3 A schematic diagram of the structure of a system for establishing a control signal chain provided by an embodiment of the present invention;

[0036] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention.

[0037] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0038] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0039] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0040] In the embodiments of the present application, at least one refers to one or more; multiple refers to two or more. In the description of the present application, words such as "first", "second", "third", etc. are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0041] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include a particular feature, structure or characteristic described in conjunction with the embodiment. Thus, in this specification, the terms "include", "comprises", "has" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0042] It should be noted that in the embodiments of the present application, "connection" can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.

[0043] In the prior art, the timing margin is established in a top-down manner. Top-down means that the timing margin of the Nth level logic processing unit is determined first, and then the timing margins of the N-1th level, ..., and the 0th level logic processing units are determined in sequence. This top-down establishment method allows the control signal to enter the control signal starting from the Nth level logic processing unit. When calculating the timing margin of the 0th level logic processing unit, its input is fixed, which is inconsistent with the actual situation, resulting in that the timing margin of each level of the logic processing unit may be an example, resulting in low calculation accuracy; and in the process of calculating the timing margin, there is a lack of consideration for the arrival time of the control signal. After the control signal reaches each level of the logic processing unit, it will affect the connection relationship of its internal components, thereby affecting the internal delay time of the logic processing unit, but this is not taken into consideration in the prior art.

[0044] In response to the above problems, Figure 1 A flow chart of a method for establishing a control signal chain is provided for an embodiment of the present invention, such as Figure 1 As shown, the establishment method is based on a signal source unit and at least one logic processing unit, the signal source unit is used to provide an input signal for each logic processing unit, and each logic processing unit is connected in sequence according to the transmission direction of the control signal. The establishment method includes:

[0045] The method for establishing the control signal chain can be applied in FPGA (Field Programmable Gate Array) wiring to achieve control signal path planning.

[0046] Figure 2 A hardware structure block diagram of a method for establishing a control signal chain provided by an embodiment of the present invention, such as Figure 2 As shown, it includes a signal source unit and multiple logic processing units, the signal source unit is connected to each logic processing unit respectively, and the signal source unit is used to provide an input signal for each logic processing unit, wherein the input signal provided to each logic processing unit can be the same or different, which can be determined according to actual conditions. This embodiment does not make specific limitations on this. For example, the input signal can be a control signal; the logic processing units are connected end to end in sequence.

[0047] S110, determining the level of each logical processing unit;

[0048] In the embodiment of the present invention, the level of each logic processing unit is first determined according to the transmission direction of the control signal. Specifically, the level of each logic processing unit is determined according to the order in which the logic processing units receive the control signals. The logic processing unit that first receives the control signal is called the 0th-level logic processing unit, and the logic processing unit that receives the output signal of the 0th-level logic processing unit is called the 1st-level logic processing unit. By analogy, the logic processing unit that finally receives the control signal is called the Nth-level logic processing unit.

[0049] Wherein, N is the number of all logical processing units minus 1, and N is a positive integer.

[0050] S120, determining the timing margin after linking the 0th-level logic processing unit to the Nth-level logic processing unit in sequence according to the transmission direction of the control signal, where N is determined by the number of the logic processing units and is a positive integer;

[0051] Among them, for the i-th level logic processing unit, the timing margin of the i-th level logic processing unit after chain establishment is determined according to the delay change caused by the change in the chain length of the control signal chain, the circuit connection change of the control signal caused by chain establishment, and the delay inside the i-th level logic processing unit, where i is an integer, 0≤i≤N.

[0052] In the embodiment of the present invention, according to the transmission direction of the control signal, the 0th level logic processing unit to the Nth level logic processing unit are determined in sequence, and when determining the timing margin of each level of logic processing unit, the timing margin of the 0th level logic processing unit is determined first, and then the timing margin of the 1st level logic processing unit is determined, and so on, until the timing margin of the Nth level logic processing unit is determined. In the embodiment of the present invention, the method of first determining the timing margin of the 0th level logic processing unit is called a bottom-up method. When calculating the timing margin of each level of logic processing unit, the input signal of each level of logic processing unit is real-time, so that when calculating the timing margin of each level of logic processing unit, the change of the input signal can be considered in real time. Compared with the bottom-up method in the prior art, the timing margin of each level of logic processing unit can be determined more accurately, thereby ensuring that each level of logic processing unit is not in violation.

[0053] In addition, in the embodiment of the present invention, the connection relationship of the components inside the logic processing unit is different before and after the control signal reaches the logic processing unit, so the delay time of the logic processing unit before and after the chain is established is different. Therefore, when determining the timing margin of each level of logic processing unit, for each level of logic processing unit, this embodiment also considers the impact of establishing a control signal chain on the internal timing of the logic processing unit, the delay change caused by the change in the chain length of the control signal chain, and the delay inside the logic processing unit. After comprehensive consideration of various aspects, the timing margin of each level of logic processing unit after the control signal chain is established is determined.

[0054] It should be noted that the timing margin in the embodiment of the present invention refers to the setup time margin, which refers to the difference between the minimum time that data needs to be prepared in advance before reaching the subsequent register at the rising edge of the clock and the actual arrival time. If the setup time margin is a positive value, it means that the data can arrive stably before the specified setup time, meeting the setup time requirement of the subsequent register; if it is a negative value, it means that the data arrives too late, which may cause a setup time violation, thereby affecting the normal operation of the circuit.

[0055] Timing violation refers to the failure to meet the time requirements for signal transmission in digital circuits, which may cause the circuit to malfunction or errors. Timing violations are mainly divided into setup time violations and hold time violations. Setup time violations are usually caused by too long processing time for combinational logic, resulting in insufficient time for data to stabilize before the rising edge of the clock.

[0056] The embodiment of the present invention proposes a method for establishing a control signal chain. When establishing the control signal chain, according to the transmission direction of the control signal, the timing margin of the 0th level logic processing unit is first determined, and then the timing margin of each subsequent level of logic processing unit is determined in turn. Since the timing margin is calculated in accordance with the transmission direction of the control signal, the timing margin can be calculated according to the real-time input signal of each logic processing unit, thereby improving the calculation accuracy of the timing margin; in addition, the embodiment of the present invention also takes into account the influence of the establishment of the control signal chain on the connection relationship of the internal components of the logic processing unit before and after the establishment of the control signal chain. The logic processing units before and after the chain establishment are considered in the timing margin calculation, further improving the calculation accuracy of the timing margin. The embodiment of the present invention is mainly based on timing drive. When establishing the control signal chain, the timing influence is fully considered. By accurately calculating the timing margin of the control signal chain, it is ensured that the control signal chain is established without violations, thereby improving the calculation accuracy of the timing margin, reducing the occurrence of violations, thereby reducing rewiring after violations, and saving wiring resources.

[0057] In some embodiments, determining the timing margin of the i-th level logic processing unit after the chain is established according to the delay change caused by the change in the chain length of the control signal chain, the circuit connection change of the control signal caused by the chain establishment, and the delay inside the i-th level logic processing unit includes:

[0058] Determine the initial value of the timing margin of the i-th level logic processing unit according to the timing margin before and after the control signal chain is established;

[0059] In combination with the influence of the chain length change on the circuit connection of the control signal, the initial value of the timing margin is optimized to determine the intermediate value of the timing margin of the i-th level logic processing unit;

[0060] In combination with the internal delay of the i-th level logic processing unit, the intermediate value of the timing margin is optimized again to determine the timing margin of the i-th level logic processing unit.

[0061] In the embodiment of the present invention, the timing margin initial value of the i-th level logic processing unit is determined according to the timing margin calculation formula before and after the control signal chain is established, wherein the timing margin calculation formula before the control signal chain is established is shown as (1):

[0062] slack old (i) = T re (i)-T ac (i); (1)

[0063] Among them, Slack old (i) represents the timing margin before the control signal chain is established, Tre(i) represents the time when the control signal theoretically reaches the i-th level logic processing unit, T ac(i) represents the time when the control signal actually reaches the i-th level logic processing unit.

[0064] The timing margin of the i-th level logic processing unit after the chain control signal chain is established is shown in formula (2):

[0065] slack new (i) = T re (i)-T ab -T chain ; (2)

[0066] Among them, Slack new (i) represents the timing margin after the control signal chain is established, Tab represents the time when the control signal reaches the 0th level logic processing unit, T chain It represents the internal delay of the i-th level logic processing unit before establishing the control signal chain. It is easy to understand that the internal delay means that after the control signal reaches the i-th level logic processing unit, it takes a certain amount of time to take effect. The time required from the control signal to the control signal taking effect is called the internal delay.

[0067] In this embodiment, it is considered that before and after the control signal chain is established, if the timing margin of the i-th level logic processing unit remains unchanged, the initial value of the timing margin can be obtained as shown in formula (3):

[0068] slack new1 (i) = slack old (i)+T ac (i)-T ab -T chain ; (3)

[0069] Among them, Slack new1 (i) represents the initial value of the timing margin of the i-th level logic processing unit, T ac (i) represents the time when the control signal reaches the i-th level logic processing unit before the control signal chain is established.

[0070] In the embodiment of the present invention, the influence of the chain length change on the circuit connection of the control signal is also considered. In the process of establishing the timing margin of each level of logic processing unit, the time for the signal to reach the bottom of the signal chain remains unchanged. Only the delay caused by the chain length change is changed. The optimization is performed on the basis of the initial value of the timing margin. Therefore, the intermediate value of the timing margin of the i-th level logic processing module is shown in formula (4):

[0071] slack new2 (i) = slack old (i)+T ac (i)-T ab -nT chain ; (4)

[0072] The calculation method of formula (4) is further refined. In actual applications, it is found that the circuit connection of the control signal in the i-th level logic processing unit changes due to the link establishment. Therefore, after the control signal is input to the i-th level logic processing unit, it will affect the delay time inside the i-th level logic processing unit. Based on this, the timing requirements are further refined as shown in formula (5):

[0073] T re =T clk -T setup ; (5)

[0074] Among them, T clk is the time when the clock signal reaches the i-th level logic processing unit, T setup It is the establishment time of the control signal in the i-th level logic processing unit. Link establishment will cause the establishment time to change. It should be noted that the establishment time can be understood as the effective time of the control signal.

[0075] It should be noted that in this embodiment, the control signal chain includes a clock signal and a control signal. The clock signal can be a signal generated by a clock crystal oscillator, and the control signal includes an enable signal, a reset signal, etc. In the same field, the delay time of the clock signal inside the logic processing unit is not affected by the chain establishment, while the chain establishment will affect the connection relationship of the circuit in the logic processing unit, thereby affecting the delay inside the logic processing unit, and then the establishment time of the control signal in the logic processing unit will be affected by the chain establishment. The establishment time can be understood as the effective time of the control signal inside the logic processing unit. Based on this, the intermediate value of the timing margin is optimized again, as shown in formula (6):

[0076] slack new3 (i) = slack old (i)+T setup +T ac (i)-T ab -nT chain -T s ' etup ; (6)

[0077] Among them, Slack new3 (i) represents the timing margin of the i-th level logic processing unit after further optimization.

[0078] As an implementation manner, after optimizing the intermediate value of the timing margin again in combination with the delay inside the i-th level logic processing unit to determine the timing margin of the i-th level logic processing unit, the method further includes:

[0079] In combination with the difference of the 0th level logic processing unit, the timing margin of the i-th level logic processing unit is optimized, and the optimized timing margin is used as the timing margin of the i-th level logic processing unit again.

[0080] In order to take into account the differences of the 0th-level logic processing units in the embodiment of the present invention, the timing margin of the i-th-level logic processing unit finally obtained by combining the above is shown in formula (7):

[0081] slack new (i) = slack old (i)+T setup +T ac (i)-T ab -(n-1)T chain -T′ chain -T′ setup ; (7)

[0082] Among them, Slack new (i) represents the timing margin after the i-th level logic processing unit is chained, slack old (i) represents the timing margin of the i-th level logic processing unit before link establishment, T setup It represents the establishment time of the internal control signal of the i-th level logic processing unit before link establishment, T ac (i) represents the arrival time of the control signal in the i-th level logic processing unit before link establishment, T ab represents the arrival time of the control signal in the 0th level logic processing unit, T chain It represents the delay time of the internal control signal of the i-th level logic processing unit before link establishment, T c ' hain It represents the delay time of the internal control signal of the i-th level logic processing unit after link establishment, T s ' etup Indicates the establishment time of the internal clock signal of the i-th level logic processing unit after the link is established.

[0083] The embodiment of the present invention derives the timing relationship in the establishment of a control signal chain in detail, optimizes the chain establishment method, improves the accuracy of timing calculation, and reduces the occurrence of control signal chain violations; and in the control signal chain optimization process of software wiring, a new timing-driven control signal chain establishment method is adopted, and its impact on timing is analyzed during chain establishment. By sensing the timing changes, the length of the established signal chain is controlled to avoid timing violations while building the chain as much as possible.

[0084] Figure 3 A schematic diagram of a control signal chain establishment system provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, based on a signal source unit and at least one logic processing unit, the signal source unit is used to provide an input signal to each logic processing unit, and each logic processing unit is connected in sequence according to the transmission direction of the control signal. The establishment system includes:

[0085] A level module 310, for determining the level of each logical processing unit;

[0086] An establishing module 320, configured to determine, in accordance with the transmission direction of the control signal, the timing margin after the chain is established from the 0th level logic processing unit to the Nth level logic processing unit, where N is determined by the number of the logic processing units and is a positive integer;

[0087] Among them, for the i-th level logic processing unit, the timing margin of the i-th level logic processing unit after chain establishment is determined according to the delay change caused by the change in the chain length of the control signal chain, the circuit connection change of the control signal caused by chain establishment, and the delay inside the i-th level logic processing unit, where i is an integer, 0≤i≤N.

[0088] This embodiment is a system embodiment corresponding to the above method embodiment, and its specific implementation process is the same as that of the above method embodiment. For details, please refer to the above method embodiment, and this system embodiment does not make specific limitations on this.

[0089] Each module in the above control signal chain establishment system can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0090] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention, the computer device may be a server, and its internal structure diagram may be as follows Figure 4 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a computer storage medium and an internal memory. The computer storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the computer storage medium. The database of the computer device is used to store data generated or obtained during the execution of a method for establishing a control signal chain, such as a timing margin. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for establishing a control signal chain is implemented.

[0091] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a method for establishing a control signal chain in the above embodiment are implemented. Alternatively, when the processor executes the computer program, the functions of each module / unit in the embodiment of a system for establishing a control signal chain are implemented.

[0092] In one embodiment, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of a method for establishing a control signal chain in the above embodiment are implemented. Alternatively, when the computer program is executed by a processor, the functions of each module / unit in the embodiment of the system for establishing a control signal chain are implemented.

[0093] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0094] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0095] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for establishing a control signal chain, It is characterized in that Based on a signal source unit and at least one logic processing unit, the signal source unit is used to provide an input signal to each logic processing unit, and each logic processing unit is connected in sequence according to the transmission direction of the control signal, the establishment method includes: Determining the number of levels of each logical processing unit; According to the transmission direction of the control signal, sequentially determine the timing margin after the 0th level logic processing unit to the Nth level logic processing unit establish a chain, where N is determined by the number of the logic processing units and is a positive integer; Among them, for the i-th level logic processing unit, the timing margin of the i-th level logic processing unit after chain establishment is determined according to the delay change caused by the change in the chain length of the control signal chain, the circuit connection change of the control signal caused by chain establishment, and the delay inside the i-th level logic processing unit, where i is an integer, 0≤i≤N.

2. The method for establishing a control signal chain according to claim 1, It is characterized in that The determining of the timing margin of the i-th level logic processing unit after the chain is established according to the delay change caused by the change of the chain length of the control signal chain, the circuit connection change of the control signal caused by the chain establishment, and the delay inside the i-th level logic processing unit includes: Determine the initial value of the timing margin of the i-th level logic processing unit according to the timing margin before and after the control signal chain is established; In combination with the influence of the chain length change on the circuit connection of the control signal, the initial value of the timing margin is optimized to determine the intermediate value of the timing margin of the i-th level logic processing unit; In combination with the internal delay of the i-th level logic processing unit, the intermediate value of the timing margin is optimized again to determine the timing margin of the i-th level logic processing unit.

3. The method for establishing a control signal chain according to claim 2, It is characterized in that After optimizing the intermediate value of the timing margin again in combination with the delay inside the i-th level logic processing unit to determine the timing margin of the i-th level logic processing unit, the method further includes: In combination with the 0th-level logic processing unit, the timing margin of the i-th-level logic processing unit is adjusted, and the adjusted timing margin is used again as the timing margin of the i-th-level logic processing unit.

4. The method for establishing a control signal chain according to claim 2, It is characterized in that The timing margin intermediate value is optimized again in combination with the internal delay of the i-th level logic processing unit to determine the timing margin of the i-th level logic processing unit. The calculation formula is as follows: slack new (i)=slack old (i)+T setup +T ac (i)-(i-1)T chain -T′ chain -T′ setup ; Among them, Slack new (i) represents the timing margin after the i-th level logic processing unit is chained, slack old (i) represents the timing margin of the i-th level logic processing unit before link establishment, T setup It represents the establishment time of the internal control signal of the i-th level logic processing unit before link establishment, T ac (i) represents the arrival time of the control signal in the i-th level logic processing unit before link establishment, T chain It represents the delay time of the internal control signal of the i-th level logic processing unit before link establishment, T c ' hain It represents the delay time of the internal control signal of the i-th level logic processing unit after link establishment, T s ' etup Indicates the establishment time of the internal clock signal of the i-th level logic processing unit after the link is established.

5. The method for establishing a control signal chain according to claim 1, It is characterized in that The determining of the timing margin of the i-th level logic processing unit after the chain is established according to the delay change caused by the change of the chain length of the control signal chain, the circuit connection change of the control signal caused by the chain establishment, and the delay inside the i-th level logic processing unit includes: The timing margin of the i-th level logic processing unit after link establishment is determined according to the timing margin of the i-th level logic processing unit before link establishment, the establishment time of the internal control signal of the i-th level logic processing unit before link establishment, the arrival time of the control signal in the i-th level logic processing unit before link establishment, the arrival time of the control signal in the 0-th level logic processing unit, the delay time of the internal control signal of the i-th level logic processing unit before link establishment, the delay time of the internal control signal of the i-th level logic processing unit after link establishment, and the establishment time of the internal clock signal of the i-th level logic processing unit after link establishment.

6. The method for establishing a control signal chain according to claim 5, It is characterized in that According to the delay change caused by the change in the length of the control signal chain, the circuit connection change of the control signal caused by the chain establishment, and the delay inside the i-th level logic processing unit, the timing margin after the i-th level logic processing unit is established is determined, and the calculation formula is as follows: slack new (i)=slack old (i)+T setup +T ac (i)-T ab -(i-1)T chain -T′ chain -T′ setup ; Among them, Slack new (i) represents the timing margin after the i-th level logic processing unit is chained, slack old (i) represents the timing margin of the i-th level logic processing unit before link establishment, T setup It represents the establishment time of the internal control signal of the i-th level logic processing unit before link establishment, T ac (i) represents the arrival time of the control signal in the i-th level logic processing unit before link establishment, T ab represents the arrival time of the control signal in the 0th level logic processing unit, T chain It represents the delay time of the internal control signal of the i-th level logic processing unit before link establishment, T c ' hain It represents the delay time of the internal control signal of the i-th level logic processing unit after link establishment, T s ' etup Indicates the establishment time of the internal clock signal of the i-th level logic processing unit after the link is established.

7. The method for establishing a control signal chain according to claim 6, It is characterized in that The timing margin of the i-th level logic processing unit before link establishment is calculated by the following formula: slack old (i)=T re (i)-T ac (i); Among them, T re (i) represents the theoretical time for the control signal to reach the i-th level logic processing unit, T ac (i) represents the actual time when the control signal reaches the i-th level logic processing unit.

8. A system for establishing a control signal chain, It is characterized in that Based on a signal source unit and at least one logic processing unit, the signal source unit is used to provide an input signal to each logic processing unit, and each logic processing unit is connected in sequence according to the transmission direction of the control signal, the establishment system includes: A level module, used to determine the level of each logical processing unit; An establishment module, used to determine the timing margin after the chain is established from the 0th level logic processing unit to the Nth level logic processing unit in sequence according to the transmission direction of the control signal, where N is determined by the number of the logic processing units and is a positive integer; Among them, for the i-th level logic processing unit, the timing margin of the i-th level logic processing unit after chain establishment is determined according to the delay change caused by the change in the chain length of the control signal chain, the circuit connection change of the control signal caused by chain establishment, and the delay inside the i-th level logic processing unit, where i is an integer, 0≤i≤N.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method for establishing a control signal chain according to any one of claims 1 to 7 are implemented.

10. A computer storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method for establishing a control signal chain according to any one of claims 1 to 7 are implemented.