The invention discloses a method for generating a code pattern for
signal integrity analysis, which comprises the following steps of reading a
signal full-link S parameter model, determining a
crosstalk sequence of bits in each high-speed interface, and determining an attacked person corresponding to each
signal line according to the maximum number of attacked persons of a victim signal, generating a PRBS seed code pattern to enable the PRBS seed code pattern to contain the worst inter-code interference effect, and
rewriting the PRBS seed code pattern into a code pattern a, taking the code pattern a as a seed code pattern, and generating a code pattern b containing
crosstalk of each signal, and reading the S parameter model or the PDN impedance resonant frequency of the PDN link, and carrying out post-
processing on the code pattern b to generate a code pattern c comprising worst power supply
noise. According to the method, the worst result of the PRBS code pattern theory can be simulated, the
signal quality of the full link of the high-speed interface can also be accurately simulated, the defects that power supply
noise cannot be considered and the precision problem exists in a traditional method are overcome, the acceptance design basis of the full link of the high-speed interface is more reliable, over-design or under-design is avoided, and the design cost is saved.