A thin-film magnetic has a coil toroidally wound around a magnetic layer.
The coil includes a plurality of first coil segments that cross over the
magnetic layer; a coil insulating layer covering the first coil segments,
the magnetic layer being formed on the coil insulating layer; a plurality
of second coil segments that cross over the magnetic layer, the second
coil segments being formed on the coil insulating layer; and a plurality
of bank layers disposed at two sides of the magnetic layer in the track
width direction, the bank layers being electrically connected with ends
of the first coil segments. Each second coil segment in the track width
direction are electrically connected with upper faces of the bank layers
to connect ends of the adjacent first coil layers with each other via the
second coil segments. According to this structure, the second coil
segments can be accurately formed by patterning.