An optical signal processing apparatus includes a first optical waveguide
and a first slab waveguide configured to equally distribute an output
light of the first optical waveguide. A first arrayed waveguide includes
an aggregate of optical waveguides changing in optical length by a
constant interval for dividing the output light. A second slab waveguide
focuses the optical output of the first arrayed waveguide. A spatial
filter receives incident light focused by the second slab waveguide and
distributes the incident light on a straight line. The spatial filter also
modulates the light into a desired amplitude according to the position on
the straight line. The apparatus also includes a second arrayed waveguide
and an aggregate of optical waveguides changing in optical length by a
constant interval for applying light modulated by the spatial filter to
the second arrayed waveguide. Structure is provided for converging the
output light of said second arrayed waveguide to a single point. The
resulting output light is then appiled to a second optical waveguide.