The invention discloses a reconfigurable optical all-pass filter. The reconfigurable optical all-pass filter comprises three optical couplers, N+2 optical phase shifters and N micro-rings, wherein the output end of the first
optical coupler, the input end of the second
optical coupler and the first optical phase shifter form an MZI1 structure, and the output end of the second
optical coupler, the input end of the third optical coupler, the second optical phase shifter, the third optical phase shifter and the first micro-ring form an MZI2 structure. The interference characteristic of a Mach-Zehnder interferometer and the
resonance characteristic of a micro-ring are utilized, a
signal is input into a
chip and is divided into two paths through an MZI1 structure to be input into an MZI2 structure, one path of
signal is filtered by the micro-ring, and the other path of
signal passes through the phase shifters and a
waveguide, the two paths of signals are interfered by the third optical coupler, are processed by the plurality of cascaded all-pass micro-rings, and are finally output from the second
coupling grating. By changing the
amplitude ratio and the
phase difference of the two paths of signals and adjusting the
coupling coefficient of the micro-ring, flat amplitude-
frequency response is realized, so that the all-pass filter is realized.