The invention provides a method for generating a Turbo code interleaver, which comprises the following steps of: inputting N and M, setting L, satisfying L = NM, setting Dmin and Smin, randomly generating S (x), enabling S (x) to satisfy the constraint that D is greater than or equal to Dmin, and calculating a
distance spectrum when S is greater than or equal to Smin; when the S is smaller than the Smin, continuing to execute the steps until a
distance spectrum is calculated, judging whether the performance of the interleaver meets a specified standard or not according to the
distance spectrum; when the performance of the interleaver meets the specified standard, performing PER
simulation; when the performance of the interleaver does not meet the specified standard, resetting new Dmin andSmin, and continuing to execute the steps; judging whether the result of PER
simulation meets the specified requirements or not, generating S (x) when the result of PER
simulation meets the specifiedrequirements, and resetting new Dmin and Smin to continue to execute the above steps when the result of PER simulation does not meet the specified requirements. The technical scheme has the beneficialeffects that the error rate after final error correction can be effectively reduced, and the error code performance is improved.