METHOD FOR OPTIMIZING CIRCUIT TIMING BASED ON FLEXIBLE REGISTER TIMING LIBRARY

20230214567 · 2023-07-06

    Inventors

    Cpc classification

    International classification

    Abstract

    Disclosed in the present invention is a method for optimizing circuit timing based on a flexible register timing library. First, registers are simulated respectively in a case of a plurality of groups of an input signal conversion time, a clock signal conversion time, and a register load capacitance, corresponding actual propagation delays at this time are obtained by changing setup slack and hold slack of the registers, and actual propagation delays of the registers under specific input signal conversion time, clock signal conversion time, register load capacitances, setup slack, and hold slack are obtained through linear interpolation, to establish a flexible register timing library; and then static timing analysis is performed on all register paths in a circuit by using the library, a minimum clock cycle under a condition of satisfying that a setup time margin and a hold time margin are both greater than zero is found by changing the setup slack and hold slack of the registers, thereby improving the performance of the circuit without changing the design of the circuit and without increasing the area overheads of the circuit.

    Claims

    1. A method for optimizing circuit timing based on a flexible register timing library, wherein a setup time T.sub.setup, a hold time T.sub.hold, and a propagation delay T.sub.cq of a register respectively refer to a shortest time within which input data needs to be kept stable before a clock signal jump, a shortest time within which the input data needs to be kept stable after the clock signal jump, and a time interval from the clock signal jump to output data under a specific combination of an input signal conversion time S.sub.data, a clock signal conversion time S.sub.ck, and a register load capacitance C.sub.L in a conventional register timing library; setup slack T.sub.setup.sup.s, hold slack T.sub.hold.sup.s, and an actual propagation delay T.sub.cq.sup.s of the register respectively refer to a time within which the input data is actually kept stable before the clock signal jump, a time within which the input data is actually kept stable after the clock signal jump, and a time interval from the clock signal jump to the output data in a case of specific setup slack T.sub.setup.sup.s and hold slack T.sub.hold.sup.s under the specific combination of the input signal conversion time S.sub.data, the clock signal conversion time S.sub.ck, and the register load capacitance C.sub.L; the flexible register timing library refers to a plurality of corresponding different combinations of the setup slack T.sub.setup.sup.s, the hold slack T.sub.hold.sup.s, and the actual propagation delay T.sub.cq.sup.s under the specific combination of the input signal conversion time S.sub.data, the clock signal conversion time S.sub.ck, and the register load capacitance C.sub.L; a register path refers to a data path with registers as a start point and an end point in a circuit, wherein a start point register is denoted as FF.sup.i, an end point register is denoted as FF.sup.j, i and j are respectively sequence numbers of the start point register and the end point register, 1≤i, j≤N.sub.FF, and N.sub.FF is a quantity of registers in the circuit; for a register path between the start point register FF.sup.i and the end point register FF.sup.j, a setup time margin S.sub.setup.sup.(i,j) and a hold time margin S.sub.hold.sup.(i,j) based on the conventional register timing library are respectively (1) and (2) as follows:
    S.sub.setup.sup.(i,j)=T.sub.ck.sup.(j)+T−T.sub.setup.sup.(j)−T.sub.ck.sup.(i)−T.sub.cq.sup.(i)−T.sub.path.sup.(i,j)max  (1), and
    S.sub.hold.sup.(i,j)=T.sub.ck.sup.(i)+T.sub.cq.sup.(i)+T.sub.path.sup.(i,j)min−T.sub.ck.sup.(j)−T.sub.hold.sup.(j)  (2), where T represents a clock cycle, T.sub.ck.sup.(i) and T.sub.ck.sup.(j) respectively represent a time for a clock signal to reach the start point register FE and a time for the clock signal to reach the end point register FF.sup.j, T.sub.path.sup.(i,j)max and T.sub.path.sup.(i,j)min respectively represent the start point register FF.sup.i and the end point register FF.sup.j between a maximum delay and a minimum delay of the data path in all register paths, T.sub.setup.sup.(j) and T.sub.hold.sup.(j) respectively represent a setup time and a hold time of the end point register FF.sup.j, and T.sub.cq.sup.(i) represents a propagation delay of the start point register FF.sup.i; for the register path between the start point register FF.sup.i and the end point register FF.sup.j, a setup time margin S.sub.setup.sup.(i,j)s and a hold time margin S.sub.hold.sup.(i,j)s based on the flexible register timing library are respectively (3) and (4) as follows:
    S.sub.setup.sup.(i,j)s=T.sub.ck.sup.(j)+T−T.sub.setup.sup.(j)s−T.sub.ck.sup.(i)−T.sub.cq.sup.(i)s−T.sub.path.sup.(i,j)max  (3), and
    S.sub.hold.sup.(i,j)s=T.sub.ck.sup.(i)+T.sub.cq.sup.(i)s+T.sub.path.sup.(i,j)min−T.sub.ck.sup.(j)−T.sub.hold.sup.(j)s  (4), where T.sub.setup.sup.(j)s, and T.sub.hold.sup.(j)s respectively represent setup slack and hold slack of the end point register FF.sup.j, and T.sub.cq.sup.(i)s represents an actual propagation delay of the start point register FF.sup.i, and changes along with the setup slack and the hold slack of the register; and the method comprises: S1: for all registers in the circuit, determining ranges of the input signal conversion time S.sub.data, the clock signal conversion time S.sub.ck, and the register load capacitance C.sub.L of the registers, selecting a plurality of combinations of the input signal conversion time, the clock signal conversion time, and the register load capacitance from the ranges, and performing simulation to obtain all valid setup slack and hold slack, and corresponding actual propagation delays; and S2: for all register paths in the circuit, changing the setup slack and the hold slack of each of the start point registers and end point registers according to the input signal conversion time S.sub.data, the clock signal conversion time S.sub.ck, and the register load capacitance CI of the start point register or the end point register, and minimizing the clock cycle in a case that it is satisfied that the setup time margin and the hold time margin of each register path based on the flexible register timing library are both greater than zero.

    2. The method for optimizing circuit timing based on a flexible register timing library according to claim 1, wherein in step S1, for each combination of the input signal conversion time, the clock signal conversion time, and the register load capacitance in the conventional register timing library, it is determined that valid ranges of the setup slack T.sub.setup and the hold slack T.sub.hold.sup.s are T.sub.setup.sup.s(min)≤T.sub.setup.sup.s≤T.sub.setup.sup.s(max) and T.sub.hold.sup.s(min)≤T.sub.hold.sup.s≤T.sub.hold.sup.s(max), T.sup.s(min)≤T.sup.s, and a specific method is: first, performing simulation by taking sufficiently large values of the setup slack T.sub.setup.sup.s and the hold slack T.sub.hold.sup.s to obtain a corresponding actual propagation delay T.sub.cq.sup.s, where the sufficiently large value refers to that T.sub.cq.sup.s no longer decreases when T.sub.setup.sup.s or T.sub.hold.sup.s continues to increase; then, performing simulation by keeping T.sub.hold.sup.s unchanged and reducing T.sub.setup.sup.s until T.sub.cq.sup.s starts to increase, wherein in this case, corresponding T.sub.setup.sup.s is T.sub.setup.sup.s(max); performing simulation by keeping T.sub.setup.sup.s unchanged and reducing T.sub.hold.sup.s, until T.sub.cq.sup.s starts to increase, wherein in this case, corresponding T.sub.hold.sup.s is T.sub.hold.sup.s(max); then, performing simulation by keeping T.sub.hold.sup.s unchanged and continuing to reduce T.sub.setup.sup.s, wherein T.sub.cq.sup.s continues to increase until simulation fails, that is, the output data cannot be obtained during the clock signal jump of the register, and in this case, corresponding T.sub.setup.sup.s is T.sub.setup.sup.s(min); and performing simulation by keeping T.sub.setup.sup.s unchanged and continuing to reduce T.sub.hold.sup.s, wherein T.sub.cq.sup.s continues to increase until simulation fails, and in this case, corresponding T.sub.hold.sup.s is T.sub.hold.sup.s(min).

    3. The method for optimizing circuit timing based on a flexible register timing library according to claim 2, wherein in step S1, for each combination of the input signal conversion time, the clock signal conversion time, and the register load capacitance in the conventional register timing library, simulation is performed in in the valid ranges of T.sub.setup.sup.s and T.sub.hold.sup.s to obtain corresponding T.sub.cq.sup.s under all valid combinations of T.sub.setup.sup.s and T.sub.hold.sup.s, and a specific method is: first, selecting simulation points from the valid ranges of T.sub.setup.sup.s and T.sub.hold.sup.s with T.sub.step as an interval, where N.sub.setup T.sub.setup.sup.s simulation points are provided, and are respectively T.sub.setup.sup.s(min)+n.sub.setup×T.sub.step, where 0≤n.sub.setup≤N.sub.setup−1, n.sub.setup is an n.sup.th T.sub.setup.sup.s simulation point, N.sub.setup is a maximum positive integer satisfying T.sub.setup.sup.s(min)+(N.sub.setup−1)×T.sub.step≤T.sub.setup.sup.s(max), N.sub.hold T.sub.hold.sup.s simulation points are provided, and are respectively T.sub.hold.sup.s(min)+n.sub.hold×T.sub.hold, wherein 0≤n.sub.hold≤N.sub.hold−1, n.sub.hold is an n.sup.th T.sub.hold.sup.s simulation point, and N.sub.hold is a maximum positive integer satisfying T.sub.hold.sup.s(min)+(N.sub.hold−1)×T.sub.step≤T.sub.hold.sup.s(max); and then, combining the N.sub.setup T.sub.setup.sup.s simulation points and the N.sub.hold T.sub.hold.sup.s simulation points two by two, and performing simulation under all combinations to obtain corresponding T.sub.cq.sup.s.

    4. The method for optimizing circuit timing based on a flexible register timing library according to claim 1, wherein in step S2, for all register paths in the circuit, timing analysis is performed by using the conventional register timing library, to obtain the clock cycle T of the circuit, and for the register path between the start point register FE and the end point register FF.sup.j, the setup time margin S.sub.setup.sup.(i,j) and the hold time margin S.sub.hold.sup.(i,j), the maximum delay T.sub.path.sup.(i,j)max and the minimum delay T.sub.path.sup.(i,j)min of the data path, the setup time T.sub.setup.sup.(j) and the hold time T.sub.hold.sup.(j) of the end point register FF.sup.j, a propagation delay T.sub.cq.sup.(i) of the start point register FF.sup.i, an input signal conversion time S.sub.data.sup.(i), a clock signal conversion time S.sub.ck.sup.(i), and a load capacitance C.sub.L.sup.(i) of the start point register FF.sup.i, and an input signal conversion time S.sub.data.sup.(j), the clock signal conversion time S.sub.ck.sup.(i), and the load capacitance C.sub.L.sup.(j) of the end point register j are obtained; when setup slack and hold slack of the start point register FF.sup.i obtained by performing interpolation calculation according to all the input signal conversion time, clock signal conversion time, and register load capacitances in the conventional register timing library and all the valid setup slack and hold slack and the corresponding actual propagation delays obtained through simulation in step S1 are respectively T.sub.setup.sup.(i)s and T.sub.hold.sup.(i)s, the corresponding actual propagation delay is T.sub.cq.sup.(i)s, and a specific process is: first, an input signal conversion time S.sub.data that is closest to S.sub.data.sup.(i) and is less than S.sub.data.sup.(i), a clock signal conversion time S.sub.ck that is closest to S.sub.ck.sup.(i) and is less than S.sub.ck.sup.(i), and a load capacitance C.sub.L that is closest to C.sub.L.sup.(i) and is less than C.sub.L.sup.(i) in the conventional register timing are selected; and an input signal conversion time S.sub.data that is closest to S.sub.data.sup.(i) and is greater than S.sub.data.sup.(i), a clock signal conversion time S.sub.ck that is closest to S.sub.ck.sup.(i) and is greater than S.sub.ck.sup.(i), and a load capacitance C.sub.L that is closest to C.sub.L.sup.(i) and is greater than C.sub.L.sup.(i) in the conventional register timing are selected; then, when the setup slack and the hold slack of the register FF.sup.i are respectively T.sub.setup.sup.(i)s and T.sub.hold.sup.(i)s, setup slack T.sub.setup.sup.s that is closest to T.sub.setup.sup.(i)s and is less than T.sub.setup.sup.(i)s in the N.sub.setup T.sub.setup.sup.s simulation points is selected, and setup slack T.sub.hold.sup.s that is closest to T.sub.hold.sup.(i)s and is less than T.sub.hold.sup.(i)s in the N.sub.hold T.sub.hold.sup.s simulation points is selected; and setup slack T.sub.setup.sup.s that is closest to T.sub.setup.sup.(i)s and is greater than T.sub.setup.sup.(i)s in the N.sub.setup T.sub.setup.sup.s simulation points is selected, and setup slack T.sub.hold.sup.s that is closest to T.sub.hold.sup.(i)s and is greater than T.sub.hold.sup.(i)s in the N.sub.hold T.sub.hold.sup.s simulation points is selected; and finally the corresponding actual propagation delay T.sub.cq.sup.(i)s of the register FE when the input signal conversion time is S.sub.data.sup.(i), the clock signal conversion time is S.sub.ck.sup.(i), the register load capacitance is C.sub.L.sup.(i), the setup slack is T.sub.setup.sup.(i)s, and the hold slack T.sub.hold.sup.(i)s is obtained in a linear interpolation mode according to the actual propagation delays of the register in a total of 32 cases in which the input signal conversion time is respectively S.sub.data and S.sub.data, the clock signal conversion time is respectively S.sub.ck and S.sub.ck, the register load capacitance is respectively C.sub.L and C.sub.L, the setup slack is respectively T.sub.setup.sup.s, and T.sub.setup.sup.s, and the hold slack is respectively T.sub.hold.sup.s and T.sub.hold.sup.s.

    5. The method for optimizing circuit timing based on a flexible register timing library according to claim 4, wherein in step S2, for all register paths in the circuit, the corresponding actual propagation delay T.sub.cq.sup.(i)s is obtained by performing interpolation calculation by changing the setup slack T.sub.setup.sup.(j)s and the hold slack T.sub.hold.sup.(j)s as of the end point register FF.sup.j and simultaneously changing the setup slack T.sub.setup.sup.(i)s and the hold slack T.sub.hold.sup.(i)s of the start point register FF.sup.i, so that in a case that it is satisfied that the setup time margin S.sub.setup.sup.(i,j)s and the hold time margin S.sub.hold.sup.(i,j)s of each register path based on the flexible register timing library are greater than zero, the clock cycle can be changed to be minimal, that is, a minimum value of the clock cycle T is taken.

    6. The method for optimizing circuit timing based on a flexible register timing library according to claim 4, wherein the linear interpolation mode is specifically: a first step: each combination of the 32 combinations and a target combination are considered as one spatial coordinate, any two spatial coordinates at most has four same coordinate values, propagation delays of the register corresponding to two coordinates in this case are denoted as T.sub.cq.sup.t and T.sub.cq.sup.t+1, one-dimensional linear interpolation is performed on each pair in a different dimension of the coordinate values, the pair are respectively denoted as x.sub.t.sup.1 and x.sub.t+1.sup.1, in the different dimension, and x.sup.1 is used to represent a coordinate value of the target combination in the dimension, to obtain a new interpolation coordinate and a delay T.sub.cw.sup.1_i of the register corresponding to the interpolation coordinate, 1≤i≤16, and the formula is as follows: T cq 1 _ i = T cq t + ( x 1 - x t 1 ) T cq t + 1 - ( x 1 - x t 1 ) T cq t x t + 1 1 - x t 1 , t = 1 , 3 , 5 , .Math. , 31 , ( 5 ) a second step: in 16 spatial coordinates obtained in the first step, any two spatial coordinates still at most has the same value in four dimensions, and one common dimension of two coordinates satisfying the condition is a value of the target combination, different dimensions of coordinate values of the two coordinates are denoted as x.sub.i.sup.2 and x.sub.i+1.sup.2, x.sup.2 is used to represent a coordinate value of the target combination in the dimension, and one-dimensional linear interpolation is performed to obtain a new spatial coordinate and a corresponding propagation delay T.sub.cq.sup.2_j of the register, 1≤j≤8, and the formula is as follows: T cq 2 _ j = T cq 1 _ i + ( x 2 - x i 2 ) T cq 1 _ i + 1 - ( x 2 - x i 2 ) T cq 1 _ i x i + 1 2 - x i 2 , i = 1 , 3 , .Math. , 15 , ( 6 ) a third step: in 8 spatial coordinates obtained in the second step, any two spatial coordinates still at most has the same value in four dimensions, and two common dimensions of two coordinates satisfying the condition are the value of the target combination, different dimensions of coordinate values of the two coordinates are denoted as x.sub.j.sup.3 and x.sub.j+1.sup.3, x.sup.3 is used to represent a coordinate value of the target combination in the dimension, and one-dimensional linear interpolation is performed to obtain a new spatial coordinate and a corresponding propagation delay T.sub.cq.sup.3_m of the register, 1≤m≤4, and the formula is as follows: T cq 3 _ m = T cq 2 _ j + ( x 3 - x j 3 ) T cq 2 _ j + 1 - ( x 3 - x j 3 ) T cq 2 _ j x j + 1 3 - x j 3 , j = 1 , 3 , .Math. , 7 , ( 7 ) a fourth step: in 4 spatial coordinates obtained in the second step, any two spatial coordinates still at most has the same value in four dimensions, and three common dimensions of two coordinates satisfying the condition are the value of the target combination, different dimensions of coordinate values of the two coordinates are denoted as x.sub.m.sup.4 and x.sub.m+1.sup.4, x.sup.4 is used to represent a coordinate value of the target combination in the dimension, and one-dimensional linear interpolation is performed to obtain a new spatial coordinate and a corresponding propagation delay T.sub.cq.sup.4_n of the register, 1≤n≤2, and the formula is as follows: T cq 4 _ n = T cq 3 _ m + ( x 4 - x m 4 ) T cq 3 _ m + 1 - ( x 4 - x m 4 ) T cq 3 _ m x m + 1 4 - x m 4 , m = 1 , 3 , ( 8 ) a fifth step: two coordinates are obtained in the fourth step, the two coordinates only have different values in one dimension, and the values of the remaining four dimensions are the same as values of the target combination, dimensions with different coordinate values in the two coordinates are denoted as x.sub.n.sup.5 and x.sub.n+1.sup.5, x.sup.5 is used to represent a coordinate value of the target combination in the dimension, and interpolation is performed on the dimensions with different coordinate values, to obtain an interpolation target T.sub.cq.sup.(i)s: T cq ( i ) s = T cq 4 _ n + ( x 5 - x n 5 ) T cq 4 _ n + 1 - ( x 5 - x j 5 ) T cq 4 _ n x n + 1 5 - x n 5 , n = 1. ( 9 )

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0017] FIG. 1 is a schematic diagram register of a setup time, a hold time, setup slack, hold slack, and a propagation delay;

    [0018] FIG. 2 is a schematic diagram of the correlation among setup slack (setup slack), hold slack (hold slack), and an actual propagation delay (clock-to-q delay) of a register; and

    [0019] FIG. 3 is a schematic diagram of adjacent register paths.

    DETAILED DESCRIPTION

    [0020] The present invention is further described below with reference to the accompanying drawings.

    [0021] A method for optimizing circuit timing based on a flexible register timing library, where a setup time T.sub.setup, a hold time T.sub.hold, and a propagation delay T.sub.cq of a register respectively refer to a shortest time within which input data needs to be kept stable before a clock signal jump, a shortest time within which the input data needs to be kept stable after the clock signal jump, and a time interval from the clock signal jump to output data under a specific combination of an input signal conversion time S.sub.data, a clock signal conversion time S.sub.ck, and a register load capacitance C.sub.L in a conventional register timing library.

    [0022] Setup slack T.sub.setup.sup.s, hold slack T.sub.hold.sup.s, and an actual propagation delay T.sub.cq.sup.s of the register respectively refer to a time within which the input data is actually kept stable before the clock signal jump, a time within which the input data is actually kept stable after the clock signal jump, and a time interval from the clock signal jump to the output data in a case of specific setup slack T.sub.setup.sup.s and hold slack T.sub.hold.sup.s under the specific combination of the input signal conversion time S.sub.data, the clock signal conversion time S.sub.ck, and the register load capacitance C.sub.L.

    [0023] The flexible register timing library refers to a plurality of corresponding different combinations of the setup slack T.sub.setup.sup.s, the hold slack T.sub.hold.sup.s, and the actual propagation delay T.sub.cq.sup.s under the specific combination of the input signal conversion time S.sub.data, the clock signal conversion time S.sub.ck, and the register load capacitance C.sub.L.

    [0024] A register path refers to a data path with registers as a start point and an end point in a circuit, where a start point register is denoted as FF.sup.i, an end point register is denoted as FF.sup.j, i and j are respectively sequence numbers of the start point register and the end point register, 1≤i, j≤N.sub.FF, and N.sub.FF is a quantity of registers in the circuit.

    [0025] For a register path between the start point register FF.sup.i and the end point register FF.sup.j, a setup time margin S.sub.setup.sup.(i,j) and a hold time margin S.sub.hold.sup.(i,j) based on the conventional register timing library are respectively (1) and (2) as follows:


    S.sub.setup.sup.(i,j)=T.sub.ck.sup.(j)+T−T.sub.setup.sup.(j)−T.sub.ck.sup.(i)−T.sub.cq.sup.(i)−T.sub.path.sup.(i,j)max  (1), and


    S.sub.hold.sup.(i,j)=T.sub.ck.sup.(i)+T.sub.cq.sup.(i)+T.sub.path.sup.(i,j)min−T.sub.ck.sup.(j)−T.sub.hold.sup.(j)  (2),

    [0026] where T represents a clock cycle, T.sub.ck.sup.(i) and T.sub.ck.sup.(j) respectively represent a time for a clock signal to reach the start point register FE and a time for the clock signal to reach the end point register FF.sup.j, T.sub.path.sup.(i,j)max and T.sub.path.sup.(i,j)min respectively represent the start point register FF.sup.i and the end point register FF.sup.j between a maximum delay and a minimum delay of the data path in all register paths, T.sub.setup.sup.(j) and T.sub.hold.sup.(j) respectively represent a setup time and a hold time of the end point register FF.sup.j, and T.sub.cq.sup.(i) represents a propagation delay of the start point register FF.sup.i.

    [0027] For the register path between the start point register FF.sup.i and the end point register FF.sup.j, a setup time margin S.sub.setup.sup.(i,j)s and a hold time margin S.sub.hold.sup.(i,j)s based on the flexible register timing library are respectively (3) and (4) as follows:


    S.sub.setup.sup.(i,j)s=T.sub.ck.sup.(j)+T−T.sub.setup.sup.(j)s−T.sub.ck.sup.(i)−T.sub.cq.sup.(i)s−T.sub.path.sup.(i,j)max  (3), and


    S.sub.hold.sup.(i,j)s=T.sub.ck.sup.(i)+T.sub.cq.sup.(i)s+T.sub.path.sup.(i,j)min−T.sub.ck.sup.(j)−T.sub.hold.sup.(j)s  (4),

    [0028] where T.sub.setup.sup.(j)s, and T.sub.hold.sup.(j)s respectively represent setup slack and hold slack of the end point register FF.sup.j, and T.sub.cq.sup.(i)s represents an actual propagation delay of the start point register FF.sup.i, and changes along with the setup slack and the hold slack of the register; and

    [0029] The method for optimizing circuit timing based on a flexible register timing library includes:

    [0030] S1: For all registers in the circuit, determine ranges of the input signal conversion time S.sub.data, the clock signal conversion time S.sub.ck, and the register load capacitance C.sub.L of the registers, select a plurality of combinations of the input signal conversion time, the clock signal conversion time, and the register load capacitance from the ranges, and perform simulation to obtain all valid setup slack and hold slack, and corresponding actual propagation delays.

    [0031] S2: For all register paths in the circuit, change the setup slack and the hold slack of each of the start point registers and end point registers according to the input signal conversion time S.sub.data, the clock signal conversion time S.sub.ck, and the register load capacitance C.sub.L of the start point register or the end point register, and minimize the clock cycle in a case that it is satisfied that the setup time margin and the hold time margin of each register path based on the flexible register timing library are both greater than zero.

    [0032] In step S1, for each combination of the input signal conversion time, the clock signal conversion time, and the register load capacitance in the conventional register timing library, it is determined that valid ranges of the setup slack T.sub.setup.sup.s and the hold slack T.sub.hold.sup.s are T.sub.setup.sup.s(min)≤T.sub.setup.sup.s≤T.sub.setup.sup.s(max) and T.sub.hold.sup.s(min)≤T.sub.hold.sup.s≤T.sub.hold.sup.s(max), and a specific method is: first, performing simulation by taking sufficiently large values of the setup slack T.sub.setup.sup.s and the hold slack T.sub.hold.sup.s to obtain a corresponding actual propagation delay T.sub.cq.sup.s, where the sufficiently large value refers to that T.sub.cq.sup.s no longer decreases when T.sub.setup.sup.s or T.sub.hold.sup.s continues to increase; then, performing simulation by keeping T.sub.hold.sup.s unchanged and reducing T.sub.setup.sup.s until T.sub.cq.sup.s starts to increase, where in this case, corresponding T.sub.setup.sup.s is T.sub.setup.sup.s(max); performing simulation by keeping T.sub.setup.sup.s unchanged and reducing T.sub.hold.sup.s, until T.sub.cq.sup.s starts to increase, where in this case, corresponding T.sub.hold.sup.s is T.sub.hold.sup.s(max); then, performing simulation by keeping continuing to reduce T.sub.hold.sup.s, where T.sub.cq.sup.s continues to increase until simulation fails, that is, the output data cannot be obtained during the clock signal jump of the register, and in this case, corresponding T.sub.setup.sup.s is T.sub.setup.sup.s(min); and performing simulation by keeping T.sub.setup.sup.s unchanged and continuing to reduce T.sub.hold.sup.s, where T.sub.cq.sup.s continues to increase until simulation fails, and in this case, corresponding T.sub.hold.sup.s is T.sub.hold.sup.s(min).

    [0033] In step S1, for each combination of the input signal conversion time, the clock signal conversion time, and the register load capacitance in the conventional register timing library, simulation is performed in the valid ranges of T.sub.setup.sup.s and T.sub.hold.sup.s to obtain corresponding T.sub.cq.sup.s under all valid combinations of T.sub.setup.sup.s and T.sub.hold.sup.s, and a specific method is: first, selecting simulation points from the valid ranges of T.sub.setup.sup.s and T.sub.hold.sup.s with T.sub.step as an interval, where N.sub.setup T.sub.setup.sup.s simulation points are provided, and are respectively T.sub.setup.sup.s(min)+n.sub.setup×T.sub.step, where 0≤n.sub.setup≤N.sub.setup−1, n.sub.setup is an n.sup.th T.sub.setup.sup.s simulation point, N.sub.setup is a maximum positive integer satisfying T.sub.setup.sup.s(min)+(N.sub.setup−1)×T.sub.step≤T.sub.setup.sup.s(max), N.sub.hold T.sub.hold.sup.s simulation points are provided, and are respectively T.sub.hold.sup.s(min)+n.sub.hold×T.sub.hold, where 0≤n.sub.hold≤N.sub.hold−1, n.sub.hold is an n.sup.th T.sub.hold.sup.s simulation point, and N.sub.hold is a maximum positive integer satisfying T.sub.hold.sup.s(min)+(N.sub.hold−1)×T.sub.step≤T.sub.hold.sup.s(max); and then, combining the N.sub.setup T.sub.setup.sup.s simulation points and the N.sub.hold T.sub.hold.sup.s simulation points two by two, and performing simulation under all combinations to obtain corresponding T.sub.cq.sup.s.

    [0034] In step S2, for all register paths in the circuit, timing analysis is performed by using the conventional register timing library, to obtain the clock cycle T of the circuit, and for the register path between the start point register FF.sup.i and the end point register FF.sup.j, the setup time margin S.sub.setup.sup.(i,j and the hold time margin S.sub.hold.sup.(i,j), the maximum delay T.sub.path.sup.(i,j)max and the minimum delay T.sub.path.sup.(i,j)min of the data path, the setup time T.sub.setup.sup.(j) and the hold time T.sub.hold.sup.(j) of the end point register FF.sup.j, a propagation delay T.sub.cq.sup.(i) of the start point register FF.sup.i, an input signal conversion time S.sub.data.sup.(i), a clock signal conversion time S.sub.ck.sup.(i), and a load capacitance C.sub.L.sup.(i) of the start point register FF.sup.i, and an input signal conversion time S.sub.data.sup.(j), the clock signal conversion time S.sub.ck.sup.(j), and the load capacitance C.sub.L.sup.(j) of the end point register j are obtained.

    [0035] When setup slack and hold slack of the start point register FF.sup.i obtained by performing interpolation calculation according to all the input signal conversion time, clock signal conversion time, and register load capacitances in the conventional register timing library and all the valid setup slack and hold slack and the corresponding actual propagation delays obtained through simulation in step S1 are respectively T.sub.setup.sup.(i)s and T.sub.hold.sup.(i)s, the corresponding actual propagation delay is T.sub.cq.sup.(i)s and a specific process is:

    [0036] first, an input signal conversion time S.sub.data that is closest to S.sub.data.sup.(i) and is less than S.sub.data.sup.(i), a clock signal conversion time S.sub.ck that is closest to S.sub.ck.sup.(i) and is less than S.sub.ck.sup.(i), and a load capacitance C.sub.L that is closest to C.sub.L.sup.(i) and is less than C.sub.L.sup.(i) in the conventional register timing are selected; and an input signal conversion time S.sub.data that is closest to S.sub.data.sup.(i) and is greater than S.sub.data.sup.(i), a clock signal conversion time S.sub.ck that is closest to S.sub.ck.sup.(i) and is greater than S.sub.ck.sup.(i), and a load capacitance C.sub.L that is closest to C.sub.L.sup.(i) and is greater than C.sub.L.sup.(i) in the conventional register timing are selected;

    [0037] then, when the setup slack and the hold slack of the register FF.sup.i are respectively T.sub.setup.sup.(i)s and T.sub.hold.sup.(i)s, setup slack T.sub.setup.sup.s that is closest to T.sub.setup.sup.(i)s and is less than T.sub.setup.sup.(i)s in the N.sub.setup T.sub.setup.sup.s simulation points is selected, and setup slack T.sub.hold.sup.s that is closest to T.sub.hold.sup.(i)s and is less than T.sub.hold.sup.(i)s in the N.sub.hold T.sub.hold.sup.s simulation points is selected; and setup slack T.sub.setup.sup.s that is closest to T.sub.setup.sup.(i)s and is greater than T.sub.setup.sup.(i)s in the N.sub.setup T.sub.setup.sup.s simulation points is selected, and setup slack T.sub.hold.sup.s that is closest to T.sub.hold.sup.(i)s and is greater than T.sub.hold.sup.(i)s in the N.sub.hold T.sub.hold.sup.s simulation points is selected; and

    [0038] finally the corresponding actual propagation delay T.sub.cq.sup.(i)s of the register FE when the input signal conversion time is S.sub.data.sup.(i), the clock signal conversion time is S.sub.ck.sup.(i), the register load capacitance is C.sub.L.sup.(i), the setup slack is T.sub.setup.sup.(i)s, and the hold slack T.sub.hold.sup.(i)s is obtained in a linear interpolation mode according to the actual propagation delays of the register in a total of 32 cases in which the input signal conversion time is respectively S.sub.data and S.sub.data, the clock signal conversion time is respectively S.sub.ck and S.sub.ck, the register load capacitance is respectively C.sub.L and C.sub.L, the setup slack is respectively T.sub.setup.sup.s, and T.sub.setup.sup.s, and the hold slack is respectively T.sub.hold.sup.s and T.sub.hold.sup.s.

    [0039] The linear interpolation mode is specifically:

    [0040] a first step: each combination of the 32 combinations and a target combination are considered as one spatial coordinate, any two spatial coordinates at most has four same coordinate values, propagation delays of the register corresponding to two coordinates in this case are denoted as T.sub.cq.sup.t, and T.sub.cq.sup.t+1, one-dimensional linear interpolation is performed on each pair in a different dimension of the coordinate values, the pair are respectively denoted as x.sub.t.sup.1 and x.sub.t+1.sup.1, in the different dimension, and x.sup.1 is used to represent a coordinate value of the target combination in the dimension, to obtain a new interpolation coordinate and a delay T.sub.cq.sup.1_i of the register corresponding to the interpolation coordinate, 1≤i≤16, and the formula is as follows:

    [00001] T cq 1 _ i = T cq t + ( x 1 - x t 1 ) T cq t - 1 - ( x 1 - x t 1 ) T cq t x t + 1 1 - x t 1 , t = 1 , 3 , 5 , .Math. , 31 , ( 5 )

    [0041] a second step: in 16 spatial coordinates obtained in the first step, any two spatial coordinates still at most has the same value in four dimensions, and one common dimension of two coordinates satisfying the condition is a value of the target combination, different dimensions of coordinate values of the two coordinates are denoted as x.sub.i.sup.2 and x.sub.i+1.sup.2, x.sup.2 is used to represent a coordinate value of the target combination in the dimension, and one-dimensional linear interpolation is performed to obtain a new spatial coordinate and a corresponding propagation delay T.sub.cq.sup.2_j of the register, 1≤j≤8, and the formula is as follows:

    [00002] T cq 2 _ j = T cq 1 _ i + ( x 2 - x t 2 ) T cq 1 _ i + 1 - ( x 2 - x t 2 ) T cq 1 _ i x i + 1 2 - x i 2 , i = 1 , 3 , .Math. , 15 , ( 6 )

    [0042] a third step: in 8 spatial coordinates obtained in the second step, any two spatial coordinates still at most has the same value in four dimensions, and two common dimensions of two coordinates satisfying the condition are the value of the target combination, different dimensions of coordinate values of the two coordinates are denoted as x.sub.j.sup.3 and x.sub.j+1.sup.3, x.sup.3 is used to represent a coordinate value of the target combination in the dimension, and one-dimensional linear interpolation is performed to obtain a new spatial coordinate and a corresponding propagation delay T.sub.cq.sup.3_m of the register, 1≤m≤4, and the formula is as follows:

    [00003] T cq 3 _ m = T cq 2 _ j + ( x 3 - x j 3 ) T cq 2 _ j + 1 - ( x 3 - x j 3 ) T cq 2 _ i x j + 1 3 - x j 3 , j = 1 , 3 , .Math. , 7 , ( 7 )

    [0043] a fourth step: in 4 spatial coordinates obtained in the second step, any two spatial coordinates still at most has the same value in four dimensions, and three common dimensions of two coordinates satisfying the condition are the value of the target combination, different dimensions of coordinate values of the two coordinates are denoted as x.sub.m.sup.4 and x.sub.m+1.sup.4, x.sup.4 is used to represent a coordinate value of the target combination in the dimension, and one-dimensional linear interpolation is performed to obtain a new spatial coordinate and a corresponding propagation delay T.sub.cq.sup.4_n of the register, 1≤n≤2, and the formula is as follows:

    [00004] T cq 4 _ n = T cq 3 _ m + ( x 4 - x m 4 ) T cq 3 _ m + 1 - ( x 4 - x m 4 ) T cq 3 _ m x m + 1 4 - x m 4 , m = 1 , 3 , ( 8 )

    [0044] a fifth step: two coordinates are obtained in the fourth step, the two coordinates only have different values in one dimension, and the values of the remaining four dimensions are the same as values of the target combination, dimensions with different coordinate values in the two coordinates are denoted as x.sub.n.sup.5 and x.sub.n+1.sup.5, x.sup.5 is used to represent a coordinate value of the target combination in the dimension, and interpolation is performed on the dimensions with different coordinate values, to obtain an interpolation target T.sub.cq.sup.(i)s is:

    [00005] T cq ( i ) s = T cq 4 _ n + ( x 5 - x n 5 ) T cq 4 _ n + 1 - ( x 5 - x j 5 ) T cq 4 _ n x n + 1 5 - x n 5 , n = 1. ( 9 )

    [0045] In step S2, for all register paths in the circuit, the corresponding actual propagation delay T.sub.cw.sup.(i)s is obtained by performing interpolation calculation by changing the setup slack T.sub.setup.sup.(j)s and the hold slack T.sub.hold.sup.(j)s of the end point register FF.sup.j and simultaneously changing the setup slack T.sub.slack.sup.(i)s and the hold slack T.sub.hold.sup.(i)s of the start point register FF.sup.i, so that in a case that it is satisfied that the setup time margin S.sub.setup.sup.(i,j)s and the hold time margin S.sub.hold.sup.(i,j)s of each register path based on the flexible register timing library are greater than zero, the clock cycle can be changed to be minimal, that is, a minimum value of the clock cycle T is taken in a case that both (10) and (11) are satisfied, where change ranges of the setup slack and the hold slack of the start point register i and the end point register j satisfy (12) and (13).


    S.sub.setup.sup.(i,j)≥0,∀1≤i,j≤N.sub.FF  (10),


    S.sub.hold.sup.(i,j)≥0,∀1≤i,j≤N.sub.FF  (11),


    T.sub.setup.sup.s(min)≤T.sub.setup.sup.(i)s,T.sub.setup.sup.(i)s≤T.sub.setup.sup.s(max),∀1≤i,j≤N.sub.FF  (12), and


    T.sub.hold.sup.s(min)≤T.sub.hold.sup.(i)s,T.sub.hold.sup.(j)s≤T.sub.hold.sup.s(max),∀1≤i,j≤N.sub.FF  (13).

    [0046] In this embodiment, a data signal conversion time is set to 50 ps to 800 ps. Values are evenly taken in the range with a step size of 50 ps, and there are a total of 16 value points. A clock signal conversion time is set to 100 ps to 500 ps. Similarly, values are evenly taken in the range with a step size of 50 ps, and there are a total of 5 value points. A register load capacitance is set to 1 fF to 5 fF. Values are evenly taken in the range with a step size of 1 fF, and there are a total of 5 value points. 400 combinations may be obtained by combining the foregoing values in any manner.

    [0047] For each combination, setup slack of a register is set to 3 ns, and hold slack is gradually reduced from 3 ns to 100 ps. The hold slack when a propagation delay of the register just starts to increase and the hold slack when simulation fails are recorded. That is, a range of the hold slack is recorded, and is 200 ps to 1000 ps. The hold slack of the register is set to 3 ns. The setup slack is gradually reduced from 3 ns to 100 ps. The setup slack when the propagation delay of the register just starts to increase and the setup slack when simulation fails are recorded. That is, a range of the setup slack is recorded, and is 200 ps to 1000 ps. Values are taken for the setup slack and the hold slack with a step size of 20 ps. There are a total of 1296 combinations. The propagation delays of the register under all combinations are obtained through simulation.

    [0048] To obtain the propagation delay of the register under that the data signal conversion time is 153 ps, the clock signal conversion time is 247 ps, the register load capacitance is 2.1 fF, the setup slack is 284 ps, and the hold slack is 384 ps, first, a combination that the data signal conversion time is 150 ps, the clock signal conversion time is 200 ps, the register load capacitance is 2 fF, and the setup slack and the hold slack are respectively 280 ps and 380 ps and a combination that the data signal conversion time is 200 ps, the clock signal conversion time is 250 ps, the register load capacitance is 3 fF, and the setup slack and the hold slack are respectively 300 ps and 400 ps are selected from the foregoing combinations. Linear interpolation is performed by using these data as interpolation points to obtain the propagation delay of the register under a target combination.

    [0049] Connection paths of registers in FIG. 3 are used for description. A cycle of a clock signal is 5 ns. No setup time violation occurs in a path from a register DFF1 to a register DFF2. A setup time margin of the path is 0.785 ns. A setup time violation occurs in a path from the register DFF2 to a register DFF3. A setup time margin is −0.917 ns. For the register DFF1, a setup time T.sub.setup.sup.(1) is 422 ps, a hold time T.sub.hold.sup.(1), is 300 ps, an input signal conversion time S.sub.data.sup.(1) is 307 ps, a clock signal conversion time S.sub.ck.sup.(1) is 181 ps, a register load capacitance C.sub.L.sup.(1) is 2 fF, and a corresponding propagation delay of the register T.sub.cq.sup.(1) is 2.066 ns. For the register DFF2, a setup time T.sub.setup.sup.(2) is 457 ps, a hold time T.sub.hold.sup.(2) is 213 ps, an input signal conversion time S.sub.data.sup.(2) is 160 ps, a clock signal conversion time S.sub.ck.sup.(2) is 197 ps, a register load capacitance C.sub.L.sup.(2) is 2fF, and a corresponding propagation delay of the register T.sub.cq.sup.(2) is 1.818 ns. For the register DFF3, a setup time T.sub.setup.sup.(3) is 388 ps, a hold time T.sub.hold.sup.(3), is 100 ps, an input signal conversion time S.sub.data.sup.(3), is 267 ps, a clock signal conversion time S.sub.ck.sup.(3) is 224 ps, a register load capacitance C.sub.L.sup.(3) is 2fF, and a corresponding propagation delay of the register T.sub.cq.sup.(3) is 2.038 ns. The input signal conversion time, the clock signal conversion time, and the register load capacitance of the three registers are respectively kept unchanged. The setup slack T.sub.setup.sup.s(1) and the hold slack T.sub.hold.sup.s(1) of DFF1 are respectively 930 ps and 500 ps, and interpolation is performed by using a flexible register timing library to obtain the corresponding actual propagation delay T.sub.cq.sup.s(1) of the register is 2.065 ns under the values. The setup slack T.sub.setup.sup.s(2) and the hold slack T.sub.hold.sup.s(2) of DFF2 are respectively 950 ps and 950 ps, and interpolation is performed by using a flexible register timing library to obtain the corresponding actual propagation delay T.sub.cq.sup.s(2) of the register is 1.533 ns under the values. The setup slack T.sub.setup.sup.s(3) and the hold slack T.sub.hold.sup.s(3) of DFF3 are respectively 300 ps and 540 ps, and interpolation is performed by using a flexible register timing library to obtain the corresponding actual propagation delay T.sub.cq.sup.s(3) of the register is 3.082 ns under the values. The foregoing values change the setup time margins of the path from the register DFF1 to the register DFF2 and the path from the register DFF2 to the register DFF3 to 893 ps and 56 ps respectively, thereby eliminating a timing violation. In this case, it can be obtained that a minimum value T.sup.min of the clock cycle is 5.6 ns. Compared with that a clock cycle minimum value required for eliminating a timing violation is 5.917 ns based on a conventional register timing library, a decrease of 5.4% is reached.

    [0050] The foregoing is only preferred implementations of the present invention. It should be pointed out that for a person of ordinary skill in the art that several improvements and modifications may be further made without departing from the principle of the present invention, and these improvements and modifications shall also be construed as falling within the protection scope of the present invention.